How to disable link to authro for NSP Modules
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Tue Aug 12, 2014 9:27 am
- Reply with quote
- Report this post
Good day.
I would like to disable the link associated with "Author" in articles displayed in NSP module. My url is www.myJCR.com. Under "Recent Articles" on the front page, the name of the Author can be clicked. I would like to remove the "clickability" or the link from the Author name. I want only the name to display but not for it to link to the Author's blog.
Please how do I achieve that?
I would like to disable the link associated with "Author" in articles displayed in NSP module. My url is www.myJCR.com. Under "Recent Articles" on the front page, the name of the Author can be clicked. I would like to remove the "clickability" or the link from the Author name. I want only the name to display but not for it to link to the Author's blog.
Please how do I achieve that?
-
- Senior Boarder
- GK User
- Wed Aug 13, 2014 8:49 am
- Reply with quote
- Report this post
Please open file /mod_news_pro_gk5/tmpl/com_k2/view.php and find this lines :
then replace it with :
- Code: Select all
$author_html = '<a href="'.urldecode(JRoute::_(K2HelperRoute::getUserRoute($item['author_id']))).'">';
$author_html .= $author_name;
$author_html .= '</a>';
then replace it with :
- Code: Select all
$author_html .= $author_name;
-
- Platinum Boarder
- GK User
- Wed Aug 13, 2014 6:27 pm
- Reply with quote
- Report this post
Thanks a lot. It worked for me.
-
- Senior Boarder
3 posts
• Page 1 of 1