Announcement

Collapse
No announcement yet.

Editing the Nav template the Guests see

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

  • Editing the Nav template the Guests see

    Hi,

    Due to some load issues we want to turn off Search for Guests/Unregistered users, however we want them to realize that the function exists for registered users.

    What would like to do is have the Search link on the Navbar still appear, but take them to the standard "You must be logged in to use this function" page when they click on it. I've seen this on HowardForums.com for example.

    I'm not sure which templates to edit and what code to edit exactly to accomplish this.

    We're still running 3.06. (We're planning to upgrade to 3.5 in the near future)

    Thanks in advance.

  • #2
    This is for 3.0.13, but should work fine with 3.0.6 as well.
    Edit your navbar template.
    Find:

    Code:
                <if condition="$show['searchbuttons']">
                    <if condition="$show['member']">
                    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                    <else />
                    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                    </if>
                    <td id="navbar_search" class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
                </if>
    Replace that with:
    Code:
                <if condition="$show['searchbuttons']">
                    <if condition="$show['member']">
                    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getnew" accesskey="2">$vbphrase[new_posts_nav]</a></td>
                    <else />
                    <td class="vbmenu_control"><a href="search.php?$session[sessionurl]do=getdaily" accesskey="2">$vbphrase[todays_posts]</a></td>
                    </if></if>
                    <td id="navbar_search" class="vbmenu_control"><a href="search.php?$session[sessionurl]" accesskey="4">$vbphrase[search]</a> <script type="text/javascript"> vbmenu_register("navbar_search"); </script></td>
    Best Regards
    Colin Frei

    Please don't contact me per PM.

    Comment


    • #3
      It worked. Thanks!

      Comment

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