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 |
#32
|
||||
|
||||
*click*
|
#33
|
||||
|
||||
Quote:
Quote:
Quote:
Quote:
John |
#34
|
||||
|
||||
I don't think so - but I'm soon to find out. I have to install vbadvanced links directory to ENWorld next month I'll let you know if I hit any snags.
|
#35
|
||||
|
||||
Got an answer from Brian over at vbadvanced. Everything in your coding is fine. The includes/functions_links.php constructs the navbar. The links scripts read the PHPINCLUDE_START template but you have to include $mylinks in the global line and then the "My Links" shows in the navbar on the links directory pages. The only changes in the array section would be if a user did not write in a full url path in the My Links text box. Such would be the case as in [ post=475]Post #475[/post]. The url would show in the "Directory" navbar with the "links directory folder in front of showthread.php - /links/showthread.php etc.. of course being wrong. One fix is to include showthread.php in the array:
Try replacing that function in includes/functions_links.php with this: Quote:
BTW Michael - you may find other scripting problems in the vbadvanced links program where the links directory folder is placed in front of a typical forum file path - /forum/links/member.php? for example. Look in any array section in the links php files (like browslinks.php, showlink.php, misc.php, etc) that deal with a forum function(member.php is one). Had that problem when I first installed "Links Directory". Brian has cleaned up a lot of the code, but you may hit a snag. Thanks and have a Happy New Year!! John |
#36
|
|||
|
|||
I'm having a simliar problem in the vba Gallery -- I put in the steps above (but of course reflected for the gallery portion), but for some reason, it's not showing up. Any ideas??
|
#37
|
|||
|
|||
Hello,
I'm wondering, would it be possible for an option to click an "Add to Links" button in threads, so it would add a link to the thread to your menu? A member of my team suggested it, I think it could be useful.. but I don't know how to do it myself. |
#38
|
|||
|
|||
I can't get it to show on my navbar. I'm not running Vbadvanced. What's the deal?
|
#39
|
|||
|
|||
If i use this link:
PHP Code:
PHP Code:
|
#40
|
|||
|
|||
I use vB 3.0.3 without the vbadvanced hack. I entered the information exactly as outlined in the instructions and read every single post in this thread even remotely related to my dilemma, but the link is just not appearing on my navbar.
Can someone -- anyone -- help? |
#41
|
||||
|
||||
Check to make sure there isn't a parse error in your PHPINCLUDE_START template. To do this, put this in your footer.
$phpinclude_output Then, if there's a parse error, it will appear in your footer. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|