Announcement

Collapse
No announcement yet.

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

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

  • [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.

  • #2
    You would wrap

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

    Comment


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

      Thanks.

      Comment


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

        Comment


        • #5
          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!

          Comment


          • #6
            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

            Comment


            • #7
              Thanks ^ i've done it now, i appreciate all the help.

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              X