Announcement

Collapse
No announcement yet.

[How Do I?] Make Link Only Visible To Logged Users?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    ReZsuRecKShuN
    Member

  • ReZsuRecKShuN
    replied
    Thanks ^ i've done it now, i appreciate all the help.

    Leave a comment:

  • Dan
    Senior Member

  • Dan
    replied
    locate this in the navbar template
    HTML Code:
    <td class="vbmenu_control"><a href="faq.php$session[sessionurl_q]" accesskey="5">$vbphrase[faq]</a></td>
    and add
    HTML Code:
    <if condition="$bbuserinfo[userid]"><td class="vbmenu_control"><a href="link.php">text</a></td></if>
    That should work fine as long as you change the link.php and the text.

    Good luck

    Leave a comment:

  • ReZsuRecKShuN
    Member

  • ReZsuRecKShuN
    replied
    Thank you for your replies, but i have ONE more question ;p
    Where do i put the code, so the link shows in between the FAQ & Member List links in the navbar?

    Thanks once again for the help!

    Leave a comment:

  • Zachery
    Former vBulletin Support

  • Zachery
    replied
    <if condition="$bbuserinfo[userid]"><a href="link.php">text</a></if>

    Leave a comment:

  • ReZsuRecKShuN
    Member

  • ReZsuRecKShuN
    replied
    Where would i place the TEXT for the link though? Say for example i want the link to display as "Radio"...???

    Thanks.

    Leave a comment:

  • Zachery
    Former vBulletin Support

  • Zachery
    replied
    You would wrap

    <if condition="$bbuserinfo[userid]"> link here</if> around the link.

    Leave a comment:

  • ReZsuRecKShuN
    Member

  • [How Do I?] Make Link Only Visible To Logged Users?

    How do i make a link in the navbar only available/viewable to users who are logged in?

    So a guest can't see that the link is in the navbar, only logged in members can?

    Any help is appreciated, thanks.
widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
Working...
X