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
  #22  
Old 10-21-2005, 06:51 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yinyang
how many extra queries does this run? (if any)
Only one on the board and admin panel


Quote:
Originally Posted by Cyricx
Just add the phrases and in the product drop down select your product, then when you export your product it'll have it in the xml
I looked at another plugin and noticed the <phrasetype> tags.
Reply With Quote
  #23  
Old 10-21-2005, 07:20 PM
Phlex's Avatar
Phlex Phlex is offline
 
Join Date: Jul 2005
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

great mod !!
Reply With Quote
  #24  
Old 10-21-2005, 11:36 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Realist
The instructions state:



The instructions should state the following:


Laters
Error Messages is in fact the correct name for the phrasegroup - Your's is called Front-End Error Messages because you upgraded from vB 3.0.x and the phrasegroup name has not been altered correctly

Chris
Reply With Quote
  #25  
Old 10-22-2005, 09:10 AM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wrong, I was originally using 3.5.0 and installed this hack ands phrases manually because thats how the developer produced the install file.

Then the developer introduced the hack as a plugin so I removed the manual entries and used the new install system and thats when I got the database erors.

Laters

Quote:
Originally Posted by Chris M
Error Messages is in fact the correct name for the phrasegroup - Your's is called Front-End Error Messages because you upgraded from vB 3.0.x and the phrasegroup name has not been altered correctly

Chris
Reply With Quote
  #26  
Old 10-22-2005, 11:22 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@The Realist

hmmm,
Did you uninstall the product from the product manager then re-upload the xml?
If not please do so and report back with your results.
Reply With Quote
  #27  
Old 10-22-2005, 02:45 PM
Chris M's Avatar
Chris M Chris M is offline
 
Join Date: Dec 2001
Location: Northampton, England
Posts: 6,186
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by The Realist
Wrong, I was originally using 3.5.0 and installed this hack ands phrases manually because thats how the developer produced the install file.

Then the developer introduced the hack as a plugin so I removed the manual entries and used the new install system and thats when I got the database erors.

Laters
Has your forum, at any point, been 3.0.x?

A completely fresh installation of vB 3.5.x will name the phrasegroup as "Error Messages", which is what the correct name is - If you have, at any point, used the 3.0.x database to upgrade to the 3.5 BETAs, then that is why your phrasegroup is called "Front-End Error Messages" (Mike Sullivan @ vB.com - http://www.vbulletin.com/forum/showp...06&postcount=3)

Chris
Reply With Quote
  #28  
Old 10-22-2005, 09:04 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have added the option to have the link as a stand alone or in the drop down menu.
Look at the last screen shot
Reply With Quote
  #29  
Old 10-22-2005, 09:46 PM
srh srh is offline
 
Join Date: Feb 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When trying to import the xml file in "manage product" this happens

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 'Messages = 'a:4:{s:17:\"custom_link_added\";s:44:\"The custom l
Error Number : 1064
Date : Sunday, October 23rd 2005 @ 12:41:57 AM
Referrer : https://xxxxxx-xxxxxx.dk/admincp/plu...?do=productadd

UPDATE language SET title = title, phrasegroup_user = 'a:226:{s:21:\"activate_your_account\";s:17:\"Akti ver din konto\";s:15:\"activation_code\";s:15:\"Aktivering skode\";s:20:\"add_x_to_ignore_list\";s:35:\"Tilf? j %1$s til din \"Ignorer liste\"\";s:23:\"add_x_to_your_buddylist\";s:33:\" Tilf?j %1$s til din \'Buddy Liste\'\";s:22:\"additional_information\";s:28:\"Y derligere brugerinformation\";s:16:\"additional_users\";s:18 :\"Yderligere brugere\";s:29:\"administrators_may_send_email\";s :175:\"Engang i mellem vil Forum Admin gerne ha lov til at sende dig E-mail.<br />\r\n <br />\r\n Hvis du ikke ?nsker at modtage E-mail fra Forum Admin, frav?lg denne mulighed.\";s:15:\"aim_screen_name\";s:14:\"AIM Brugernavn\";s:3:\"all\";s:4:\"Alle\";s:27:\"allow _daylight_savings_time\";s:53:\"<br>Ydeligere, kan du indstille til sommertid<br><br>\";s:28:\"allow_members_send_you_ email\";s:50:\"Du kan tillade andre brugere at sende dig E-mails.\";s:20:\"allow_vcard_download\";s:21:\"Till ad vCard download\";s:25:\"anyone_free_to_join_group\";s:53 :\"Alle har tilladelse til at indg? i denne brugergruppe\";s:30:\"are_you_sure_you_want_to_add _x\";s:26:\"Tilf?j %1$s til din liste?\";s:33:\"are_you_sure_you_want_to_remove_x\ ";s:25:\"Fjern %1$s fra din liste?\";s:23:\"attachments_posted_by_x\";s:28:\"V edh?ftninger postet af %1$s\";s:33:\"automatically_detect_dst_settings\"; s:28:\"Automatisk indstil sommertid\";s:6:\"avatar\";s:6:\"Avatar\";s:15:\"a vatar_category\";s:15:\"Avatar kategori\";s:28:\"avatars_small_graphics_short\";s :90:\"En Avatar, er et lille billede der kan vises sammen med dit brugernavn hvergang du poster.\";s:28:\"basic_editor_simple_text_box\";s: 35:\"Simpel Editor - standard tekst boks\";s:10:\"birth_date\";s:10:\"F?dselsdag\";s:8 :\"birthday\";s:10:\"F?dselsdag\";s:31:\"board_can _be_shown_any_language\";s:133:\"Vores forum kan ikke overs?tte det egentlige indhold af indl?g, men indstillinger og hj?lpetekster kan bliver vist p? f?lgende sprog.\";s:14:\"board_language\";s:15:\"Forum sprogvalg\";s:10:\"board_skin\";s:12:\"Forum \'Skin\'\";s:30:\"browsing_when_receive_pm_popup\" ;s:113:\"Hvis du l?ser i forummet og du modtager D-mail, kan du bede om notifikation i form af en popup, om de nye D-mail.\";s:27:\"can_automatically_subscribe\";s:229 :\"N?r du laver eller svare p? et nyt indl?g kan du v?lge automatisk at tilf?je det din liste over <a href=\"%1$s\">Abonnerede tr?de</a>.<br><br>\r\nDette giver dig ogs? mulighed for tilsendelse

......... and so on (maybe forever) Please help...
Reply With Quote
  #30  
Old 10-22-2005, 10:01 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry I cannot reproduce that error.
Perhaps trying to upload the product again.

Is anybody else recieving and such error?
Reply With Quote
  #31  
Old 10-23-2005, 05:30 AM
srh srh is offline
 
Join Date: Feb 2005
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Tried to uninstall and reupload files, with exact same result

BTW in the control panel, it displays strange, text is missing

In "Add" no text are displayed

In modify/delete it only displays this
Code:
test [] [] [Drop]
[] [] [Single]
[] [] [Single]
[] [] [Single]
(links I've tried make)

- the button, "extras" in navbar is existant and displays at drop-down, named "extras"

Any help would be much appreciated.

TIA
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:29 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.08105 seconds
  • Memory Usage 2,330KB
  • 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
  • (2)bbcode_code
  • (4)bbcode_php
  • (5)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