The Arcive of vBulletin Modifications Site. |
|
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 |
|
#2
|
||||
|
||||
|
Sounds cool. A screenshot would be nice.
|
|
#3
|
||||
|
||||
|
Thank you Michael Morris, I may use this
|
|
#4
|
||||
|
||||
|
Quote:
Note, minor glitch found for RC4 - you can't have user input fields beyond 500 characters or so (odd). I presume this is fixed in later versions. |
|
#5
|
||||
|
||||
|
Could this be domain specific (ie it can only be your domain they link to?
|
|
#6
|
||||
|
||||
|
Not without major recoding. This simply takes advantage of an existing vbulletin mechanic (the url tag) and uses it to create the links for a new feature.
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
||||
|
||||
|
nice hack
|
|
#9
|
||||
|
||||
|
works nicely. Only thing I've found is that if you don't put bb codes in that box correctly, it can make your browser hang up. Otherwise, nice addition.
|
|
#10
|
|||
|
|||
|
Nice Hack!!!!!!!!
(cool, you're from Enworld? We have our banner on your webring. That's awesome.) |
![]() |
|
|