vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   End-User Options - Automatic UserCP Navbar Menu (https://vborg.vbsupport.ru/showthread.php?t=178672)

ExTincTi0N 05-20-2008 11:06 PM

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.

Derekclarke 05-23-2008 08:40 PM

Works Great... As per the post by Super Jinni it would be good to get this working on Vbadvanced.

sdavis2702 05-27-2008 12:55 PM

I don't know why I never thought to do this already. Thanks!

TheInsaneManiac 06-15-2008 08:41 AM

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.

delibakis 06-15-2008 01:12 PM

Atakan cok sagol süper olmus

TheInsaneManiac 06-27-2008 10:53 AM

Quote:

Originally Posted by TheInsaneManiac (Post 1549769)
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.

Still need help on this. Here is my original way the template looks:
Code:

                <if condition="$show['member']">
                <td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>
                        <td align="center" class="h_nav"><a href="usercp.php$session[sessionurl_q]">$vbphrase[user_cp]</a></td>
                <td><img src="$stylevar[imgdir_misc]/nav_div.gif" alt="" /></td>

                                </if>


tazzarkin 06-28-2008 12:12 AM

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?

tazzarkin 06-28-2008 01:23 AM

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.

tazzarkin 06-28-2008 01:33 AM

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.

RedGTiVR6 06-30-2008 06:18 PM

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
  • Page Generation 0.01272 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete