OS Property support center

Make certain tabs visible only for registred user

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 11 months ago #63362 by Stephen
Hi
Is it possible to make certain tabs only visible for registred users?
Tab´s like:
a) Add to compare list.
b) Print as PDF.
c) Print this page.

If this is possible how to accomplish this?
If this is not possible now, mybee it could be possible in a future release.

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

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

More
9 years 11 months ago #63370 by Mr. Dam
Hi Stephen,
You can make the those buttons to be visible with registered user by adding
Code:
$user = Jfactory::getUser(); if($user->id > 0){ //show buttons }
on those buttons. The source file is in: components > com_osproperty > templates > theme1 > details.html.tpl.php
Good luck
Dam

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

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 11 months ago #63389 by Stephen
Hi
Thank you for your answer, but since I´m not exactly 100% sure where to pu the code perhaps som guidance from your side could help me.
In picture, where should I put the code you mention above (in wich line).
Most greatful for any help.

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.
Attachments:

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

More
9 years 11 months ago #63399 by Mr. Dam
Hi,
You can put the code (IF statement) above the <LI> tag and end if at </LI> tag
Thanks
Dam

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

  • Stephen
  • Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
9 years 11 months ago #63410 by Stephen
Hi
Thank you for explaining but still no luck for me to do this, must have put it in the wrong place :(
Anyway no problem I can manage without this.

Once again thank you for all your help.
cheers

If the problem can be solved why worry? If the problem can not be solved, worrying will do you no good.

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

More
9 years 11 months ago #63460 by Mr. Dam
OK Stephen, if you need any help, you can use Ticket system
Thanks
Dam
The following user(s) said Thank You: Stephen

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

Moderators: Mr. DamNguyen Phu Quan