![]() |
Thanks man but I am using a template I got here and it doesn't work.
What do I need to change in the template you really didnt say what. |
Works Great... As per the post by Super Jinni it would be good to get this working on Vbadvanced.
|
I don't know why I never thought to do this already. Thanks!
|
I really like this, but unfortunately it does not work on one of my styles. So I was hoping you could just post the template edit and I manually add it to all my templates.
|
Atakan cok sagol süper olmus
|
Quote:
Code:
<if condition="$show['member']"> |
Okay. After experimenting with my custom styles, this is what I guessed...
Take the original "UserCP" in the NavBar: <td class="vbmenu_control"><a href="{$vbulletin->options[bburl]}/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td> And replace it with: <td id="usercpnmenu" class="vbmenu_control"><a href="{$vbulletin->options[bburl]}/usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a> <script type="text/javascript">vbmenu_register("usercpnmenu"); </script></td> This seems to make it work. (Took it from the xml file.) Is that correct? |
A second idea is to edit the template file and create a 2nd Global template called "Header_navbar_user_menu". So then there would be two global templates.
Then change every templatecache['navbar'] to templatecache['header']. This should make it search the header template as well as the navbar template. That's my guess, but I want to ask the author, Atakan KOC. Because many of our custom navbars are in the header template as well as the navbar template. I want to test it out, but I am a little afraid because I've never made an xml file before. Would that work? Could you make a new xml that would search the navbar template AND the header template? (might as well search the head include and footer too, since those are the main 4 templates they always use for custom styles) By the way, it's cool how you did this. In the future, I think I'll make an xml file/special template for all my dropdown menus. I need to practice a little though. One added note: It would be cool to make a mod that would make the xml file for any drop-down menu you choose. You would input the drop-down title, then drop-down items and links, and then the Title and Template name. Then you hit enter and it would make the xml file for you. That would be cool. |
Atakan KOC,
I talked about your xml file in this link: https://vborg.vbsupport.ru/showthread.php?t=183578 Based on this, I suggested a new mod that would make menu creation so easy. Do they have something like that? Okay... enough for one day. lol. |
Hrmmm - sure would be nice to be able to easily add links to this drop down....
|
All times are GMT. The time now is 11:30 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|