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 |
#62
|
|||
|
|||
Morris does this work with 3.5?
|
#63
|
|||
|
|||
It does not work with 3.5. Primarily because there is no longer a PHP_Include template
Code syntax for parsing bbcode has also changed in 3.5 https://vborg.vbsupport.ru/showthread.php?t=82693 <--- thread on how to parse bbcode in 3.5 I tried for awhile to get this to work, but was unsuccessful. I'd love it if someone would port this to 3.5. If they could fix the problem with parsing dynamic url's as well, then that would be even more swell. |
#64
|
||||
|
||||
I'm sorry for the lateness in my reply, I've been tied up as of late. I'm currently working on a boards conversion for a major client but as soon as that is done I'll start doing some hack ports, probably starting with this one.
|
#65
|
|||
|
|||
I like this hack, thumbs up!
The problem: When inserting links with the & character (post link for example) and then visit that page from within the quick links menu it brings you there. If you visit that link again, that particular post shows your "my links" links in the post area instead of the original post content (edit, save post fixes this until you visit the my links link again). I think it could be omitted by parsing the & character differently perhaps? The request: Could you add a javascript to each post (thread) so users can click it to add that link to their my links menu? |
#66
|
|||
|
|||
Let me rephrase the problem,
The content of a post is replaced by the mylinks url's if that post appears in your mylinks due to the bbcodeparse. |
#67
|
|||
|
|||
Quote:
|
#68
|
|||
|
|||
Quote:
I partially prevented that from happening by replacing & with %26 (ascii), but that's not the best solution...... |
#69
|
|||
|
|||
Did anyone ever get this working on 3.6.x ?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|