The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Need another set of eyes please!
I'm trying to add some links to the drop down UserCP menu in the navbar.
I've added the following in two places in the navbar template: Code:
<tr><td class="vbmenu_option"><a href="album.php?$session[sessionurl]do=addalbum">$vbphrase[add_album]</a></td></tr> <tr><td class="vbmenu_option"><a href="downloads.php?$session[sessionurl]do=my">$vbphrase[ecdownloads_my_files]</a></td></tr> Any ideas? |
#2
|
||||
|
||||
Please post your navbar template.
|
#3
|
|||
|
|||
Absolutely!
Code:
<div class="navbar"> <if condition="$vbulletin->options['mo37_navbar_home']!=''"> <a class="navbar" href="{$vbulletin->options['mo37_navbar_home']}$session[sessionurl_q]">Home</a> <else /> <a class="navbar" href="index.php$session[sessionurl_q]">Home</a> </if> <if condition="$show['member']"> <a class="navbar" href="search.php?$session[sessionurl]do=getnew">New Posts</a> <a class="navbar" href="usercp.php$session[sessionurl_q]"><if condition="$vbulletin->userinfo[pmunread]>0"><strong>*UserCP*</strong><else />UserCP</if></a><else /> <a class="navbar" href="search.php?$session[sessionurl]do=getdaily">Today's Posts</a> </if> <if condition="$vbulletin->options['mo37_default_style_link']==1"> <a class="navbar" href="{$vbulletin->options['mo37_navbar_home']}?$session[sessionurl]styleid={$vbulletin->options['mo37_default_style']}">PC Mode</a> </if> </div> $ad_location[ad_navbar_below] |
#4
|
||||
|
||||
You don't actually have any User CP dropdown code in there...
|
#5
|
|||
|
|||
I'm confused then.
I make the changes in there and they show up (well kind of). If I didn't have any drop down code in there, then how would they show up? I've disabled all plug-ins, and this same drop down shows up, with the blank spaces for my modifications. In a stock version of vBulletin 3.7.2, if I wanted to add this code, I would add it to this template, correct? Some observations while trying to mess with this: The link to add an album in this drop down, only shows up if I'm already in the UserCP. The link to check my downloads only shows up if I'm in the downloads section. If I could figure out what code to add to show these two links at all times, then I think it would solve it. |
#6
|
||||
|
||||
You have a custom style, on the default style, you would edit the navbar template to add links to navbar dropdowns, add links, etc.
|
#7
|
|||
|
|||
Strange - I'm using hte stock vbulletin skin, just changed the colors and buttons some.
Any ideas why the links I'm trying to add will show up when they do and not at other times? is it related? |
#8
|
|||
|
|||
So I reverted back to the original version of the template. No drop down.
Then I slowly added in the various changes I have and see where the drop down came to be: Code:
<td id="usercpoptions" class="vbmenu_control"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a> <script type="text/javascript"> vbmenu_register("usercpoptions"); </script></td> So, it's not a custom style, or anything. I just can't figure out why I can't get these two links to show up all the time. They are only showing up some of the time. I've attached 3 images. no_links shows up when you're just about anywhere in the forum. Go to the userCP page and album_link is what you see. If you go to the downloads page, files_link is what you see. Somehow, it's like there's a conditional going on....I just can't figure it out! |
#9
|
|||
|
|||
The phrases u are trying to use are not global phrases. With custom phrases from mods u can search for them in the phrase manager and make them global. You may need to be in debug mode to do this,
|
#10
|
|||
|
|||
That would explain the issue! Thanks!
hrmmm - is there an article on how to make a phrase global? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|