- Posts: 7
COMMUNITY FORUM
[SOLVED] Comments posted by link
- skise
- Topic Author
- Offline
- New Member
Less
More
11 years 4 months ago - 11 years 4 months ago #114193
by skise
[SOLVED] Comments posted by link was created by skise
How do I remove the link to a user who posted a comment in the comments section
See attached image
See attached image
Please Log in or Create an account to join the conversation.
- skise
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
11 years 4 months ago #114194
by skise
Replied by skise on topic Re: Comments posted by link
Found the answer here
getk2.org/community/New-to-K2-Ask-here-first/178200-Item-Category-Page-Image
Tried it and i worked
getk2.org/community/New-to-K2-Ask-here-first/178200-Item-Category-Page-Image
Tried it and i worked
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 4 months ago - 11 years 4 months ago #114195
by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: Comments posted by link
Wrong link but that's ok.
You need to override your K2 Comments module (mod_k2_comments) locate the following code
You need to override your K2 Comments module (mod_k2_comments) locate the following code
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- skise
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
11 years 4 months ago #114196
by skise
Replied by skise on topic Re: Comments posted by link
Thanks Krikor
I will change to this
I will change to this
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 4 months ago #114197
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: [SOLVED] Comments posted by link
You 're welcome.
You get the picture, you just have to remove the if else statement which produces a link.
You get the picture, you just have to remove the if else statement which produces a link.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- skise
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
11 years 4 months ago #114198
by skise
Replied by skise on topic Re: [SOLVED] Comments posted by link
Which file is this found in the mod_k2_comments
Cant seem to find it
Cant seem to find it
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
11 years 4 months ago #114199
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Re: [SOLVED] Comments posted by link
Its comments.php
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- skise
- Topic Author
- Offline
- New Member
Less
More
- Posts: 7
11 years 4 months ago #114200
by skise
Replied by skise on topic Re: [SOLVED] Comments posted by link
The closest code I can find is
<?php if(isset($comment->userLink)): ?>
<a rel="author" href="<?php echo $comment->userLink; ?>"><?php echo $comment->userName; ?></a>
<?php elseif($comment->commentURL): ?>
<a target="_blank" rel="nofollow" href="<?php echo $comment->commentURL; ?>"><?php echo $comment->userName; ?></a>
<?php else: ?>
<?php echo $comment->userName; ?>
<?php endif; ?>
Sorry but I am a little confused as to what part to change if the above is the part to edit
<?php if(isset($comment->userLink)): ?>
<a rel="author" href="<?php echo $comment->userLink; ?>"><?php echo $comment->userName; ?></a>
<?php elseif($comment->commentURL): ?>
<a target="_blank" rel="nofollow" href="<?php echo $comment->commentURL; ?>"><?php echo $comment->userName; ?></a>
<?php else: ?>
<?php echo $comment->userName; ?>
<?php endif; ?>
Sorry but I am a little confused as to what part to change if the above is the part to edit
Please Log in or Create an account to join the conversation.