Keyword

remove comment link

  • Pedro Ferreira
  • Pedro Ferreira's Avatar Topic Author
  • Offline
  • New Member
More
14 years 2 months ago #85943 by Pedro Ferreira
remove comment link was created by Pedro Ferreira
How can i change/remove the comment link?Thanks.

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

More
14 years 2 months ago #85944 by Simon Wells
Replied by Simon Wells on topic remove comment link
Hi,

There is no option to remove this within the K2 parameters, you would have to remove it from the item.php.
Do a search within the item.php for commentLink.
You will find a span with the code contained within it, either comment it out, or delete it.

Hope that helps.

Simon
K2 Support

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

More
14 years 1 month ago #85945 by Christian Ipanaque
Replied by Christian Ipanaque on topic remove comment link
It's actually in:

components/com_k2/views/item/view.html.php and
components/com_k2/views/item/view.raw.php

Erase this:

$comments[$i]->userLink = $comments[$i]->commentURL;

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

More
14 years 1 month ago #85946 by william white
Replied by william white on topic remove comment link
Simon is correct, Christian's comment may work, but changes the core files.
Best solution is do do as Simon says
also, learn to use an override and edit item.php in the override only - leave the core files alone if possible

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


Powered by Kunena Forum