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

I have finally upgraded my hack.

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

Download the zip file, extract, browse to "upgrades" and follow the text file.
Reply With Quote
  #133  
Old 12-31-2005, 03:11 PM
b6gm6n's Avatar
b6gm6n b6gm6n is offline
 
Join Date: Aug 2002
Location: UK
Posts: 691
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by harmor19
I have finally upgraded my hack.

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

Download the zip file, extract browse to "upgrades" and follow the text file.
very nice, exellent work!

-b6
Reply With Quote
  #134  
Old 01-02-2006, 10:55 PM
lfpm lfpm is offline
 
Join Date: Jan 2005
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can easily add a "Stand alone" link, but when i am adding a drop down link, this is what happens! :surprised:

PHP Code:
Database error in vBulletin 3.5.1:

Invalid SQL:

        
INSERT INTO custom_droplinks
        
(
            
url,
            
name,
            
new_window,
            
alt,
            
number,
            
image
        
VALUES (
   
'http://www.test.org',
   
'test.org Site'
   
''
   
'Official Site',
   
'',
   
''
   
);

MySQL Error  Unknown column 'image' in 'field list'
Error Number 1054
Date         
TuesdayJanuary 3rd 2006 12:53:41 AM
Script       
http://www.****.org/forum/admincp/admin_custom_links.php
Referrer     http://www.****.org/forum/admincp/admin_custom_links.php?do=add
IP Address   : ********
Username     : ****
Classname    vb_database 
Reply With Quote
  #135  
Old 01-03-2006, 03:55 AM
YOimYO YOimYO is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

updated with 3.5.0 Gold with no probs
Reply With Quote
  #136  
Old 01-03-2006, 04:26 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lfpm
I can easily add a "Stand alone" link, but when i am adding a drop down link, this is what happens! :surprised:

PHP Code:
Database error in vBulletin 3.5.1:

Invalid SQL:

        
INSERT INTO custom_droplinks
        
(
            
url,
            
name,
            
new_window,
            
alt,
            
number,
            
image
        
VALUES (
   
'http://www.test.org',
   
'test.org Site'
   
''
   
'Official Site',
   
'',
   
''
   
);

MySQL Error  Unknown column 'image' in 'field list'
Error Number 1054
Date         
TuesdayJanuary 3rd 2006 12:53:41 AM
Script       
http://www.****.org/forum/admincp/admin_custom_links.php
Referrer     http://www.****.org/forum/admincp/admin_custom_links.php?do=add
IP Address   : ********
Username     : ****
Classname    vb_database 
I'm sorry about that
Run this query in your ACP
[sql]
ALTER TABLE custom_droplinks ADD vb_image varchar(60) DEFAULT '0' NOT NULL;
[/sql]
Change the prefix "vb_" to the prefix you're vbulletin is using.

If that doesn't work re-download the product, uninstall your current one and upload the newly downloaded one.
Reply With Quote
  #137  
Old 01-03-2006, 09:17 AM
YOimYO YOimYO is offline
 
Join Date: Oct 2005
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok. I upgraded last night. I went in to add a photo ( smilie ) as the pic.
but i get this error on submit. Now i cannot customize my links at all. no matter what changes i do. I stull get the same error :P


any suggestions ?

PHP Code:
Database error in vBulletin 3.5.0:

Invalid SQL:

                
UPDATE custom_droplinks
                SET url 
=  'http://www.******.com/Treasure/online.php',
                    
name =  'Who\'s Online',
                    
new_window =  '1',
                    
alt =  'Who is Visiting the board Right now',
                    
number '0',
                    
image '0',
                    
WHERE linkid 4;

MySQL Error  You have an error in your SQL syntax near 'WHERE linkid = 4  
                   ' 
at line 9
Error Number 
1064
Date         
TuesdayJanuary 3rd 2006 06:15:54 AM
Script       
http://www.******.com/Treasure/admincp/admin_custom_links.php
Referrer     http://www.******.com/Treasure/admincp/admin_custom_links.php?do=edit&linkid=4
IP Address   : **.64.**.194
Username     
: ******
Classname    vb_database 
thx
Reply With Quote
  #138  
Old 01-03-2006, 08:27 PM
LockeAG's Avatar
LockeAG LockeAG is offline
 
Join Date: Aug 2005
Location: Mexico, DF
Posts: 64
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by YOimYO
ok. I upgraded last night. I went in to add a photo ( smilie ) as the pic.
but i get this error on submit. Now i cannot customize my links at all. no matter what changes i do. I stull get the same error :P


any suggestions ?

PHP Code:
Database error in vBulletin 3.5.0:
 
Invalid SQL:
 
                
UPDATE custom_droplinks
                SET url 
'http://www.******.com/Treasure/online.php',
                 
name 'Who\'s Online',
         
new_window '1',
         
alt 'Who is Visiting the board Right now',
         
number '0',
         
image '0',
     
WHERE linkid 4;
 
MySQL Error You have an error in your SQL syntax near 'WHERE linkid = 4 
                 ' 
at line 9
Error Number 
1064
Date 
TuesdayJanuary 3rd 2006 06:15:54 AM
Script 
http://www.******.com/Treasure/admincp/admin_custom_links.php
Referrer http://www.******.com/Treasure/admincp/admin_custom_links.php?do=edit&linkid=4
IP Address : **.64.**.194
Username 
: ******
Classname vb_database 
thx
Same Problem... but its weird, 'cos when I apply the quarry the problem began.
Reply With Quote
  #139  
Old 01-03-2006, 08:35 PM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm sorry again, hopefully people will install this hack despite my mistakes.

@YOimYO and LockeAG
Re-download the zip and upload "admin/admin_custom_links.php"
Reply With Quote
  #140  
Old 01-03-2006, 10:04 PM
JohnBee JohnBee is offline
 
Join Date: Oct 2004
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simply AMAZING!
This is one great and useful hack! - thanks for this, installed...
Reply With Quote
  #141  
Old 01-04-2006, 04:21 AM
harmor19 harmor19 is offline
 
Join Date: Apr 2005
Posts: 1,324
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess I fixed the errors since no one reported any.

I'm kind of debating on adding stuff to this hack or make another one.
I have no idea how I would go about making it permission based.
I am brainstorming on how I would have it so you can add multiple drop down lists.

I guess I can start with Admin Permissions, like what admin(s) can add, edit, and delete the links.

Thank all of you for liking my hack
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 04:52 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.06372 seconds
  • Memory Usage 2,363KB
  • 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
  • (8)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
  • (2)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