Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Automatic UserCP Navbar Menu Details »»
Automatic UserCP Navbar Menu
Version: 1.00, by Atakan KOC Atakan KOC is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Category: End-User Options - Version: 3.7.0 Rating:
Released: 05-08-2008 Last Update: Never Installs: 97
Uses Plugins Template Edits Auto-Templates
 
No support by the author.

Automatic UserCP Navbar Menu

his hack is made for to put tp the navbar the usercp as default whici will not effect by the template changes. I made this hack because sometimes I am so busy to edit the templates so I made navbar default templates. Hope you like it.

install

Go to your admin cp, then:
Plugin System -> Manage Products -> [Add/Import Product] -> Select 'product-usercpnavbarmenu.xml' from your computer then press 'Import'

Modifications Info

Plugin : 2
Phrases : 0
Template : 1
Setting : 0

Versions:
v1.0 - 5 May 2008
-First release

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 05-20-2008, 11:06 PM
ExTincTi0N ExTincTi0N is offline
 
Join Date: Mar 2008
Location: Texas
Posts: 332
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #23  
Old 05-23-2008, 08:40 PM
Derekclarke's Avatar
Derekclarke Derekclarke is offline
 
Join Date: Dec 2005
Location: N.Devon
Posts: 194
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works Great... As per the post by Super Jinni it would be good to get this working on Vbadvanced.
Reply With Quote
  #24  
Old 05-27-2008, 12:55 PM
sdavis2702 sdavis2702 is offline
 
Join Date: Apr 2008
Posts: 116
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't know why I never thought to do this already. Thanks!
Reply With Quote
  #25  
Old 06-15-2008, 08:41 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #26  
Old 06-15-2008, 01:12 PM
delibakis delibakis is offline
 
Join Date: Jan 2007
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Atakan cok sagol süper olmus
Reply With Quote
  #27  
Old 06-27-2008, 10:53 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheInsaneManiac View Post
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>
Reply With Quote
  #28  
Old 06-28-2008, 12:12 AM
tazzarkin tazzarkin is offline
 
Join Date: Nov 2007
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #29  
Old 06-28-2008, 01:23 AM
tazzarkin tazzarkin is offline
 
Join Date: Nov 2007
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #30  
Old 06-28-2008, 01:33 AM
tazzarkin tazzarkin is offline
 
Join Date: Nov 2007
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #31  
Old 06-30-2008, 06:18 PM
RedGTiVR6 RedGTiVR6 is offline
 
Join Date: Dec 2006
Location: Little Elm, TX
Posts: 817
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hrmmm - sure would be nice to be able to easily add links to this drop down....
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:50 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.06005 seconds
  • Memory Usage 2,304KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete