1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Vbulletin forum menu change

Discussion in 'HTML & Website Design' started by powerlifer, Jan 15, 2009.

  1. #1
    Hey, i would like to change the bar at the top, you know the bar with usercp, search, new posts etc.

    Well id like to change one of them so that they say affiliates and go to either a post or a html page.

    Cheers
     
    powerlifer, Jan 15, 2009 IP
  2. Shadab

    Shadab Peon

    Messages:
    376
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You find the associated HTML codes in the 'navbar' template :

    AdminCP -> Style Manager -> <<>> for the style you want to edit
    Find the 'navbar' template from the long list and edit it. :)

    Need any further help? Ping me up.
     
    Shadab, Jan 15, 2009 IP
  3. powerlifer

    powerlifer Active Member

    Messages:
    2,002
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #3
    Thanks man, i take it you just through in a <a href= etc etc to point it to your own link.
     
    powerlifer, Jan 15, 2009 IP
  4. powerlifer

    powerlifer Active Member

    Messages:
    2,002
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #4
    I cant find the navbar template from the list hmmm.

    I did about a month ago.

    EDIT: Found it had to expand a section, but now on the code i cant find where to change the calender bit to affiliates.
     
    powerlifer, Jan 15, 2009 IP
  5. -Hammad-

    -Hammad- Peon

    Messages:
    37
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It depends on what skin you are using. If you are using the the vBulletin default skin, the code for the navbar is located within the 'navbar' template. If you are using a custom skin, it's either in the 'header' or in the navbar. You say you want to replace the 'Calendar' link to an 'Affiliates' page. Simply changing the link/caption won't help. The calendar is wrapped inside an 'if' statement, which determines whether the calendar is enabled. The code for the calendar starts at
    <if condition="THIS_SCRIPT == 'calendar'">
    PHP:
    and ends at the first 'if' statement
    </if>
    PHP:
    the full code for it's default would be
    <if condition="THIS_SCRIPT == 'calendar'">
    	<td class="vbmenu_page" style="cursor:hand;"  onclick="window.location.href='calendar.php$session[sessionurl_q]'"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    <else />
    	<td class="vbmenu_control" style="cursor:hand;" onmouseover="this.className='vbmenu_hover';" onmouseout="this.className='vbmenu_control';" onclick="window.location.href='calendar.php$session[sessionurl_q]'"><a href="calendar.php$session[sessionurl_q]">$vbphrase[calendar]</a></td>
    </if>
    PHP:
    just replace all that with anything you want, such as
    <a href="http://yoursite.com/yourpage.php">Affiliates</a>
    PHP:
    or if you want members only to view it, replace it with this
    <if condition="$show['member']"><a href="http://yoursite.com/yourpage.php">Affiliates</a></if>
    PHP:
    You get the picture. :p
     
    -Hammad-, Jan 15, 2009 IP
  6. powerlifer

    powerlifer Active Member

    Messages:
    2,002
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    78
    #6
    Im using some other skin i uploaded, but thats a great help cheers.

    That calender bit isnt in navbar so it must be in header.
     
    powerlifer, Jan 15, 2009 IP