vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=242)
-   -   [HOW TO - vB4] How add sub-menu drop down to the navbar (tab Forum) (https://vborg.vbsupport.ru/showthread.php?t=232579)

Da-Vinci 04-08-2011 07:04 PM

Could anybody point me in the right direction of getting this effect?

https://vborg.vbsupport.ru/external/2011/04/17.jpg

Mustiii 04-27-2011 02:33 PM

I addet this but the Problem is that it is shown if i click on the "Forum" Button. I addet a "Portal"-Button. How can i make that it appears there and not by the Forum Button?

https://vborg.vbsupport.ru/external/2011/04/10.png

Lynne 04-27-2011 04:14 PM

This artilce is about adding the sub-menus, not the navtabs. You need to have the correct condition around your navtab to show it at the correct place. You should ask your question in the modification thread that you use for the navtab.

Mustiii 04-27-2011 06:58 PM

But this has nothing to do with the modification, because i am sure many persons want to add sub-menus as example under the standard buttons like "whats new" and the "blog" and not only by the "forum" button so the question is how to specify that

Lynne 04-28-2011 03:29 AM

And if you wrote the navtab correctly, then you would have the submenus showing. I have an article in my profile on how to correctly write a plugin to create a navtab with submenus.

Mustiii 04-28-2011 02:39 PM

Thank you very much Lynne your article was the perfect description to solve my problem. Only thing i still need is to know how to translate (add Phrases) to this new buttons. Because i am using a multilingual Forum

Lynne 04-28-2011 03:58 PM

Quote:

Originally Posted by Mustiii (Post 2189693)
Thank you very much Lynne your article was the perfect description to solve my problem. Only thing i still need is to know how to translate (add Phrases) to this new buttons. Because i am using a multilingual Forum

Instead of putting text for the links:
HTML Code:

<a href="link.php">My Link</a>
Use phrases (you will need to enter them into the phrase manager as global phrases):
HTML Code:

<a href="link.php">$vbphrase[my_link]</a>

Mustiii 04-28-2011 04:43 PM

Thank you i addet all the submenus i needet. Only two are making me problems

1. The "Who's Online" Menu. I get this Error Message showing if i write it like that

Code:

Parse error: syntax error, unexpected T_STRING in /www/htdocs/w00d3776/vbulletin/includes/class_bootstrap.php(537) : eval()'d code on line 84
If i write it like Whos Online without ' it makes no problems but why cant i write it like in the Original way?

2. The "Open Contacts Popup"

If i add the code like this

Code:

<li><a onclick="window.open(getBaseUrl() + 'misc.php?do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;" href="javascript://">Open Contacts Popup</a></li>
i get this error message

Code:

Parse error: syntax error, unexpected T_STRING in /www/htdocs/w00d3776/vbulletin/includes/class_bootstrap.php(537) : eval()'d code on line 82
hope that a solution for this problems exists thanks for any help

Lynne 04-28-2011 08:11 PM

If you are writing this in php output, you need to escape the character if that is what you have surrounding the output - \'

Mustiii 04-28-2011 08:30 PM

I am not sure how to do that i think i can solve the first problem with writing Whos Online and add the correct writing to phrases but i am not sure how to change the Open contacts popup to make it work

--------------- Added [DATE]1304101672[/DATE] at [TIME]1304101672[/TIME] ---------------

Adding the phrases is making me problems i did it step by step but it looks like this now

https://vborg.vbsupport.ru/external/2011/04/3.png

https://vborg.vbsupport.ru/external/2011/04/4.png

https://vborg.vbsupport.ru/external/2011/04/5.png


All times are GMT. The time now is 07:29 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02916 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
  • (3)bbcode_code_printable
  • (2)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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