vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Custom Navbar Links (https://vborg.vbsupport.ru/showthread.php?t=98934)

harmor19 10-20-2005 10:00 PM

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

Please click https://vborg.vbsupport.ru/



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

SnowBot 10-21-2005 12:11 PM

Any screenshots mate?

harmor19 10-21-2005 12:12 PM

Just posted them, SnowBot

SnowBot 10-21-2005 12:13 PM

LOL yer i just hit refrsh :) OK mate gonna take a look but this is the sort of thing i have been looking for :)

jugo 10-21-2005 12:41 PM

LOL...dude...this is wonderful.

I think that the navbar should be fed from the admincp instead of a templet....it just makes more sense.

The Realist 10-21-2005 01:05 PM

Add The Following Phrases to Error Messages

What error mesages

Do you mean to add these new phrases to cp stop messages?

harmor19 10-21-2005 01:12 PM

Quote:

Originally Posted by The Realist
Add The Following Phrases to Error Messages

What error mesages

Do you mean to add these new phrases to cp stop messages?

I was looking at "faq.php" and I saw "saved_faq_x_successfully"
I search for it and I got the following results
Error Messages Phrases Containing 'saved_faq_x_successfully'
saved_faq_x_successfully Standard Phrase Saved FAQ <i>{1}</i> Successfully

and that isn't an error message as you can see.

I already tried "cp stop messages" but it didn't work.

The Realist 10-21-2005 01:19 PM

Same here M8

Quote:

Originally Posted by harmor19
I was looking at "faq.php" and I saw "saved_faq_x_successfully"
I search for it and I got the following results
Error Messages Phrases Containing 'saved_faq_x_successfully'
saved_faq_x_successfully Standard Phrase Saved FAQ <i>{1}</i> Successfully

and that isn't an error message as you can see.

I already tried "cp stop messages" but it didn't work.


nexialys 10-21-2005 01:25 PM

suggestion for the tool: - new structure for editing the links:

a: Name of the Link
b: URL of the link
c: TARGET (new window or not)
d: Title for the title tag when hovering

;)
HTML Code:

<a href="$url" target="$target" title="$title">$name</a>

harmor19 10-21-2005 01:29 PM

Quote:

Originally Posted by nexialys
suggestion for the tool: - new structure for editing the links:

a: Name of the Link
b: URL of the link
c: TARGET (new window or not)
d: Title for the title tag when hovering

;)
HTML Code:

<a href="$url" target="$target" title="$title">$name</a>

@c
I'll have to find the function for the radio buttons

@d
do you mean when hovering it shows text in the status bar?


All times are GMT. The time now is 06:34 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01344 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_html_printable
  • (4)bbcode_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete