Announcement

Collapse
No announcement yet.

How do I create a "home/forums" link?

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

  • How do I create a "home/forums" link?

    ... In the navbar?
    The url to the forum is:
    http://www.ordningsvakterna.se/forum

    The settings are:
    Forum URL: http://www.ordningsvakterna.se/forum
    Homepage URL: http://www.ordningsvakterna.se/forum/

    The code i'm using right now is: (it's not working, the "Forums" link links to Http://www.ordningsvakterna.se/forum?) (OBS: I'm using vBadvanced if it makes any differens)

    PHP Code:
      <!-- nav buttons bar -->
    <
    div align="center">
     <
    table class="tborder" cellpadding="$stylevar[cellpadding]cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
     <
    tr align="center"
      <
    td class="vbmenu_control"><if condition="THIS_SCRIPT == 'adv_index'"><a href="$vboptions[bburl]?$session[sessionurl]"Forums <else /> <a href="$vboptions[homeurl]?$session[sessionurl]"Home </if></a></td>  
      <if 
    condition="$show['member']">
       <
    td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
      </if>
      <if 
    condition="$show['registerbutton']">
       <
    td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
      </if>
      <
    td class="vbmenu_control"><a href="faq.php?$session[sessionurl]accesskey="5">$vbphrase[faq]</a></td>
      <
    td class="vbmenu_control"><a href="memberlist.php?$session[sessionurl]">$vbphrase[members_list]</a></td>
      <
    td class="vbmenu_control"><a href="calendar.php?$session[sessionurl]">$vbphrase[calendar]</a></td>
      <if 
    condition="$show['popups']">  
       <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>
       <if 
    condition="$bbuserinfo['userid']">
        <
    td id="usercptools" class="vbmenu_control"><a href="#usercptools">$vbphrase[quick_links]</a> <script type="text/javascript"vbmenu_register("usercptools"); </script></td>  
       </if>
      <else />  
       <if 
    condition="$show['searchbuttons']">
        <
    td class="vbmenu_control"><a href="search.php?$session[sessionurl]accesskey="4">$vbphrase[search]</a></td>
        <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 class="vbmenu_control"><a href="forumdisplay.php?$session[sessionurl]do=markread">$vbphrase[mark_forums_read]</a></td>
       <if 
    condition="$bbuserinfo['userid']">   
        <
    td class="vbmenu_control"><a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,me  nubar=no,toolbar=no,scrollbars=yes,resizable=yes,w  idth=250,height=300'); return false;">$vbphrase[open_buddy_list]</a></td>   
       </if>   
      </if>
      <if 
    condition="$bbuserinfo['userid']">
       <
    td class="vbmenu_control"><a href="login.php?$session[sessionurl]do=logout&amp;u=$bbuserinfo[userid]onclick="return log_out()">$vbphrase[log_out]</a></td>
      </if>
     </
    tr>
     </
    table>
    </
    div>
    <!-- / 
    nav buttons bar --> 
    /Anders

  • #2
    There is already code for a "Home" link in the navbar template, it's just commented out. Remove the comment tags:

    Code:
    </tr>
    </table>
    <!-- / breadcrumb, login, pm info -->
    
    <!-- nav buttons bar -->
    <div align="center">
    	<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="0" border="0" width="100%" align="center" style="border-top-width:0px">
    	<tr align="center">	
    		<!--<td class="vbmenu_control"><a href="$vboptions[forumhome].php?$session[sessionurl]">Home</a></td>-->
    		
    		<if condition="$show['member']">
    			<td class="vbmenu_control"><a href="usercp.php?$session[sessionurl]">$vbphrase[user_cp]</a></td>
    		</if>

    Comment


    • #3
      The problem is that I need a "forum" link, from the frontpage.
      btw. I use "vBadvanced CMPS v1.0.0"

      I got a link from the frontpage that should give the forums, but it only gives me a link to the frontpage (Http://www.ordningsvakterna.se/forum/?), I guess it should link to Http://www.ordningsvakterna.se/forum/forumdisplay.php and some sufix... (like forumdisplay.php?showalltheforums.. ) but I just can't get it right...
      Any ideas?
      Last edited by pyd; Tue 22nd Feb '05, 2:21pm.

      Comment


      • #4
        Please ask for help with this at the vBAdvanced forums. It is their code.
        Steve Machol, former vBulletin Customer Support Manager (and NOT retired!)
        Change CKEditor Colors to Match Style (for 4.1.4 and above)

        Steve Machol Photography


        Mankind is the only creature smart enough to know its own history, and dumb enough to ignore it.


        Comment


        • #5
          did you get it yet? I can give you the code if you still need it
          http://webdirectoryforums.com - Web Directory Forums - Coming soon!
          http://linkageplus.com - PR5

          Comment

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