Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Custom Navbar Links Details »»
Custom Navbar Links
Version: 1.20, by harmor19 harmor19 is offline
Developer Last Online: May 2023 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 10-20-2005 Last Update: 07-06-2006 Installs: 219
DB Changes Uses Plugins Template Edits
Additional Files  
No support by the author.

Author: Andrew Harmor
Version: 1.20
File Edits: 0
Template Edits: 1
Difficulty: Easy

Please click



Description:
Adds a drop down menu on your navbar which contains links you add through the ACP.


################################################## ###############
FAQ


Q: The link doesn't look right on the navbar
A: While on your forums view the source and search for id="navbar_search"
To the right should be "class" (For the default skin the class is "vbmenu_control")

Edit the navbar template
Find:
PHP Code:
<td id="custom_links" class="vbmenu_control"
Replace the "class" so it's the same as the search's class.
Let's say you're class is "nav_element" then it should look like this
PHP Code:
 <td id="custom_links" class="nav_element"
Open the product xml in an editor
Find:
PHP Code:
<td class='vbmenu_control'
Replace with your class.
PHP Code:
<td class='nav_element'
################################################## ###############

To get this to work with CMPS (Thanks To: drl2005)
Code:
In your CMPS settings under Portal Output Global Variables place:
custom_droplinks
custom_singlelinks
###########Changelog################

1.00
Initial Release

1.02
All Phrases are now in the product xml
The option to have link open in new window

1.03
Option to add new links on navbar as a stand alone link or in the drop down menu.

1.04
Sort the display order of links in the drop down menu.

1.05
16x16 images can be added to both stand-alone and drop down links

1.06
Templates are now cached


1.07
Fixed bug in product.
Changed the maximum characters for "name" from "20" to "100"

1.20
Usergroup permissions per link

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 10-24-2005, 01:31 AM
G_Gekko G_Gekko is offline
 
Join Date: Jun 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice work
Just one question. How do i change the name of the dropdown menu from "Extras" to something else?
Reply With Quote
  #53  
Old 10-24-2005, 01:34 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by G_Gekko
Nice work
Just one question. How do i change the name of the dropdown menu from "Extras" to something else?
crap, I forgot to add that in the phrases.

open navbar and find "Extras"
just replace it with whatever you want
Reply With Quote
  #54  
Old 10-24-2005, 02:20 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eNforce
A nice feature would be to be able to sort the order of the links in the drop down menu, like you would your forums and categories.

Edit: When adding a link with too much text the drop down menu does not expand in width.

Edit 2: How about an option to add categories in the drop down menu? lol I have too many ideas i'll shutup now.
I'd already got the sort feature coded.

I can make categories manually but I don't know how to go about making them automatically.
I'll brainstorm and see if something comes to mind, if not then I'll upload the files.
Reply With Quote
  #55  
Old 10-24-2005, 02:22 AM
G_Gekko G_Gekko is offline
 
Join Date: Jun 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks

That solves the problem with the name in the Nav bar put it still has Extras in first position in the drop down menu.
Reply With Quote
  #56  
Old 10-24-2005, 02:28 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by G_Gekko
Thanks

That solves the problem with the name in the Nav bar put it still has Extras in first position in the drop down menu.
sorry pal,
look for "Extras" again. (there's two instances of the word.)
Reply With Quote
  #57  
Old 10-24-2005, 02:32 AM
G_Gekko G_Gekko is offline
 
Join Date: Jun 2005
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am the one that should sorry. I looked for another Extras but was blind ;-)

I appriciate if you provide the information on how to create categories manually if you fail to find a way to do it from the adminCP.

Regards and thanks for a great hack
Reply With Quote
  #58  
Old 10-24-2005, 02:52 AM
twitch's Avatar
twitch twitch is offline
 
Join Date: Apr 2005
Posts: 260
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very cool extension
Reply With Quote
  #59  
Old 10-24-2005, 07:08 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You can now sort the display order in the drop down menu.
New screen shots posted

I still cannot figure out how I would do categories with mysql.
I was so close but I couldn't get it.
Reply With Quote
  #60  
Old 10-24-2005, 02:46 PM
TygerTyger TygerTyger is offline
 
Join Date: Aug 2005
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... I have this in the forum itself error (with either version of the XML) after uploading:

Database error in vBulletin 3.5.0:

Invalid SQL:
SELECT * FROM vb_custom_singlelinks WHERE linkid ORDER BY number ASC;

MySQL Error : Unknown column 'number' in 'order clause'
Error Number : 1054
Date : Monday, October 24th 2005 @ 04:39:30 PM
Script : http://www.xxx.co.uk/index.php
Referrer : http://www.xxx.co.uk/showthread.php?t=90
IP Address : Bzzt.
Username : TygerTyger
Classname : vb_database

and this error in the Product Manager itself when uploading:

MySQL Error : You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the

right syntax to use near '-End Error Mess = 'a:4:{s:17:\"custom_link_added\";s:44:\"The c
Error Number : 1064
Date : Monday, October 24th 2005 @ 04:39:23 PM
Script : http://www.xxxr.co.uk/admincp/plugin.php
Referrer : http://www.xxx.co.uk/admincp/plugin.php?do=productadd
IP Address : Bzzt.
Username : TygerTyger
Classname : vb_database

I also have the vbFavorites mod installed, which adds to the navbar as well in case that is relevant.
Reply With Quote
  #61  
Old 10-24-2005, 03:12 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Re-download the zip and replace "admin_custom_links.php" and import the product. xml.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:42 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.04896 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_php
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete