Keyword

Hide K2 Comments for guests

  • TLWebdesign
  • TLWebdesign's Avatar Topic Author
  • Offline
  • New Member
More
11 years 9 months ago #108428 by TLWebdesign
Hide K2 Comments for guests was created by TLWebdesign
Hi Guys,

I need to hide the comments for guests. If i set parameter to Registered only. It still displays the posted comments to everyone. using JA Lens template. So i really don't want to use a ugly extension like JComments. Since K2 Comments is already styled completely like the template.

Hope someone can help me out. should be very simple to do. But got very limited coding skills.

Any help greatly appreciated!!

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

More
11 years 9 months ago #108429 by william white
Replied by william white on topic Re: Hide K2 Comments for guests
this may help
williamwhitejr.com/index.php/k2-tips/item/22-hiding-things-from-non-registared-users
feel free to contact me if you need help

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

  • TLWebdesign
  • TLWebdesign's Avatar Topic Author
  • Offline
  • New Member
More
11 years 9 months ago - 11 years 9 months ago #108430 by TLWebdesign
Replied by TLWebdesign on topic Re: Hide K2 Comments for guests
Thanks for the tip! Finally got it working. Used this code:

edited item.php

just after (around line 631):
Log in  or Create an account to join the conversation.