How to disable link to authro for NSP Modules

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.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?
User avatar
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 :

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;
User avatar
Platinum Boarder

GK User
Wed Aug 13, 2014 6:27 pm
Reply with quote
Report this post
Thanks a lot. It worked for me.
User avatar
Senior Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.