The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Users Can create their own drop down list in navbar Details »» | |||||||||||||||||||||||||||
Users Can create their own drop down list in navbar
Developer Last Online: Jun 2009
This hack is part of Lesson #6 of my Using the PHPINCLUDE_START template" tutorial thread. It is presented here individually. While techinically a user feature, it is put here with mini-mods since it requires no code edits. Instead you have 2 template edits: navbar and phpinclude_start. You must also add a user profile field.
For a more complete explaination of the code please visit the tutorial thread. AND NOW THE HACK... To begin create a user profile field that is multiple text lines and has a character limit of at least 2000. Note the user profile field # the system assigns to the new field - you'll need it below. Once you do that crack into your navbar and look for this code: HTML Code:
<!-- nav buttons bar --> <div align="center"> <table class="thead" cellpadding="0" cellspacing="0" border="0" width="100%" align="center"> <tr align="center"> <if condition="$show['popups']"> HTML Code:
<if condition="!empty($mylinks)"> <td id="mylinks" class="vbmenu_control"><a href="#mylinks">My Links</a> <script type="text/javascript"> vbmenu_register("mylinks"); </script></td> </if> HTML Code:
<!-- / NAVBAR POPUP MENUS -->
HTML Code:
<if condition="!empty($mylinks)"> <!-- My Links Menu --> <div class="vbmenu_popup" id="mylinks_menu" style="display:none"> <table cellpadding="4" cellspacing="1" border="0"> $mylinks </table> </div> <!-- /My Links --> </if> PHP Code:
And with that you're done. Enjoy. Compatibility Note If you are running a version of vbulletin prior to version 3.0.3 you'll need to run a database query in order to have field lengths longer than 250 characters. This query is: ALTER TABLE userfield MODIFY COLUMN fieldX TEXT You'll need to change fieldX to the field# appropriate to your forums. Supporters / CoAuthors Show Your Support
|
Comments |
#12
|
|||
|
|||
I have it working in 3.0.0
I'm having trouble getting this to display on the navbar in my Vbadvanced CMPS index page though. Displays fine in the forum. Any ideas? |
#13
|
||||
|
||||
Quote:
Would be nice if this can be fixed |
#14
|
||||
|
||||
I'm not having this problem - but my dropdown system was moved to the header template.
I guess check to make sure your cmps page isn't using a different navbar from you're forums - and that both are executing the PHPINCLUDE_START template. Speaking of which - I intend to write a module that displays this information in vba cmps - eventually. |
#15
|
|||
|
|||
Sorry, but i need some help.
To begin create a user profile field that is multiple text lines and has a character limit of at least 2000. Note the user profile field # the system assigns to the new field - you'll need it below. Im not quite shure what this means. :blush: |
#16
|
||||
|
||||
Quote:
In brief, log in to your admincp and scroll down the left menu till you see "User Profile Fields" Expand that box, then click "Create New" In the first dialog select "Multiple line text box" On the next screen choose "2000" as the maximum length of user input, then set the last option to display on "Edit Options - Other" Leave everything else on their defaults. When you exit this screen you'll see a list of all the availabe user profile fields. Look at you're newly create one. You'll see an id#. Note that number and plug it into the phpinclude_start script above. |
#17
|
|||
|
|||
looks fantastic.
no queries aye? |
#18
|
||||
|
||||
No queries required. The data is stored in a custom user profile field.
|
#19
|
|||
|
|||
Michael, thanks for the reply.. I use the same navbar for CMPS as I do for the forum, other links I have added work fine in both sections. I'll look a little closer and see if I can get it to work..
|
#20
|
|||
|
|||
i did this, but nothing changed lol I will keep looking but.. havnt had this happen before..
|
#21
|
|||
|
|||
Ugh, I am pulling my hair out trying to get this to work with with CMPS. I still have my old VbAdvanced index page and when I call that page in a browser the "my links" displays fine! if I call up the vBa CMPS it's no dice. There must be a way to get this to work and I am overlooking it..
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|