Keyword

User Mod Blog links

  • Paul
  • Paul's Avatar Topic Author
  • Offline
  • Senior Member
More
14 years 7 months ago #89724 by Paul
User Mod Blog links was created by Paul
Trying to find an answer in the forums on this,On the K2 Users mod, how do you disable the link to go to the user blog page?I only want a certain group to be able to blog.?Also If i want to not let users have blogs, is there an option im missing to tick in the set up?So far enjoying the learningPaul

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

  • Yiota
  • Yiota's Avatar
  • Visitor
14 years 7 months ago #89725 by Yiota
Replied by Yiota on topic User Mod Blog links
You can modify the mod_k2_user file and make an if statement so the link will only be visible to the certain group.

Before modifying you have to override the mod_k2_user and have the file in your template.
Locate the $userName in line 26 and replace that block with the following.

if($user->group=="certain group"):

if($userName):
a class="ubUserName" href="echo $user->link;" title="echo K2HelperUtilities::cleanHtml($user->name);"> echo $user->name;
a
endif;

else:

if($userName): echo $user->name; endif;

endif;

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


Powered by Kunena Forum