Keyword

How can i hide k2 item attachment for guests

  • tural73
  • tural73's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91904 by tural73
Hi everybody...

 

I wanna hide my attachments for site guests.. I need the attachment will show only registered users..

How can i do it?Thnks..

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

More
13 years 9 months ago #91905 by william white
Replied by william white on topic How can i hide k2 item attachment for guests
You can test for the user with getuser( 

if the user = 1 dont display it

otherwize show it

This should be done inan override of itemp.php and attachments should be set not to show in the item view in category listings.

pm me if you need help

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

  • tural73
  • tural73's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91906 by tural73
Replied by tural73 on topic How can i hide k2 item attachment for guests
sorry but i dont know how it's written.. can you write it for me pls..  and wich item.php ?   ...site/component/com_k2/templates/default/item.php    ?? and wich line i must to write it...???

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

More
13 years 9 months ago #91907 by william white
Replied by william white on topic How can i hide k2 item attachment for guests
send me a friend request and a pm

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

  • tural73
  • tural73's Avatar Topic Author
  • Offline
  • New Member
More
13 years 9 months ago #91908 by tural73
Replied by tural73 on topic How can i hide k2 item attachment for guests
Mr.William pls help me... this is very important for me.. send me pls the right php code.. and explain where i must copy it..

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


Powered by Kunena Forum