Keyword

[SOLVED] Comments posted by link

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
Attachments:

Please Log in or Create an account to join the conversation.

More
11 years 4 months ago #114194 by skise
Replied by skise on topic Re: Comments posted by link

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
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
					
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114197 by Krikor Boghossian
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.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
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

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
11 years 4 months ago #114199 by Krikor Boghossian
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.

More
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

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum