vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Mini Mods - Advanced Navbar Links (https://vborg.vbsupport.ru/showthread.php?t=120517)

harmor19 07-06-2006 10:00 PM

Advanced Navbar Links
 
Author: Andrew Harmor
Version: 2.0.2
File Edits: 0
Template Edits: 2
Difficulty: Easy


Description:
You can add links or multiple menus to the navbar quickly through a form. Specify which usergroups can see each link via the permissions system.


F.A.Q.
Q: Why aren't the links showing?
A: Edit the link in your Admin CP and check the usergroup permissions

Q: All the links I made from the last version are gone
A: Go into phpmyadmin and select your vbulletin database.
Browse the table named "custom_droplinks". Change all the "catid's" with 0 to 1.
Go into your ACP --> Advanced Navbar Links --> Modify/Delete The links should show up under the first category. You can edit the links from here and select a different category to place it in.

Q: How do I get the links to appear on vBAdvanced?
A: Go into your ACP --> vBa CMPS --> Default Settings
Look for "Portal Output Global Variables". Add the following into the text area.
Code:

custom_singlelinks
custom_droplinks
custom_droplinks_cat



If you install this mod please press the "Install" button.

--Change Log--
1.0.0 - Initial Release

1.0.1 - took out the code that automatically added HTML to the navbar. I thought having it do it automatically was cool but can be annoying because you can't easily customize the class or placement

2.0.0 - Added the functionality to add multiple drop down menus

2.0.1 - Added missing table prefixes

harmor19 07-07-2006 12:10 AM

Some of you may know this hack from 3.5.x. When I first created this hack I slowly worked out the bugs. Let us pray that this hack runs smoothly on the 3.6 branch.
In the thread for the 3.5.x hack some members demanded usergroup permissions, seperators, and multiple drop down boxes. Well I didn't know how to go about it. I did however deliver on the usergroup permissions a few days ago but I have a feeling they're not going to be as excited as much as if I released closer to when they asked for it.

Atakan KOC 07-07-2006 05:40 AM

Nice. :)

sam anders 07-07-2006 05:56 AM

nice feature will install :)

Snake 07-07-2006 01:57 PM

Very nice! Thank you... :)

harmor19 07-07-2006 02:52 PM

I would like to improve this hack by adding user defined seperators to the drop down box.
Please read this thread

harmor19 07-07-2006 06:03 PM

I do not need help with with the seperators anymore because I have figured out how to do it.

What you can do is create a seperator and apply usergroup permissions to it.
So you could create a seperator called "Staff Links" and only allow admin, s-mods, and mods see it.
Then under the seperator have a link to the "Admin CP" and only allow admins to see the link.
I'll try to illustrate it for you people

[Staff Links] <-- Only viewable by Admins, S-Mods, and Mods
[Admin CP] <-- Only viewable by Admins
[ModCP] <-- Only viewable by S-Mods and Mods
[Fun Links] <-- Viewable by everyone
[Arcade] <-- Viewable by everyone except guests and banned users

I am coding everything I need to and I'll ship it out as soon as I'm sure it works correctly.

Tyegurl 07-10-2006 03:06 AM

thanks a bunch been looking for a way to do this kind of thing!

i am running beta 4 and i got nothing :( i have a "extra" button and then and "extra" header but no links.....i added them but they do not show

harmor19 07-11-2006 08:51 PM

Both "Stand Alone" and "Drop Down" links aren't showing?

dwbro1 07-12-2006 04:18 AM

mine either .. :(

Update:

It does show on the nav on the forums but not on the main vbadvanced page.. hmm

BTW can you assign multiple drop downs and stack links under them?

harmor19 07-12-2006 04:37 AM

You can only have one drop down menu but I'm planning on adding multile drop down menus as soon I figure out how to do seperators.

So they both work on the forums though?

harmor19 07-12-2006 07:23 AM

Quote:

Originally Posted by dwbro1
mine either .. :(

Update:

It does show on the nav on the forums but not on the main vbadvanced page.. hmm

BTW can you assign multiple drop downs and stack links under them?

Try this
Code:

In your CMPS settings under Portal Output Global Variables place:
custom_droplinks
custom_singlelinks


Neal-UK 07-13-2006 03:13 AM

didn't appear to be working properly in 3.6 rc1

Just got the drop down "Extras" on navbar and nothing showing in AdminCP.

XtremeOffroad 07-14-2006 02:26 AM

Seems fine with RC1 but links wont open in a new window even when checked to.
Any Ideas?
BTW nice addition, Thanks.
Clicks Install.

harmor19 07-15-2006 03:10 AM

Quote:

Originally Posted by Neal-UK
didn't appear to be working properly in 3.6 rc1
Just got the drop down "Extras" on navbar and nothing showing in AdminCP.

You migt have forgot to upload "cpnav_custom_links.xml" to includes/xml/


Quote:

Originally Posted by XtremeOffroad
Seems fine with RC1 but links wont open in a new window even when checked to.
Any Ideas?
BTW nice addition, Thanks.
Clicks Install.

When you click on the background the link is on it'll open on the same page. I don't know how to get around that.

TropicalFanta 07-25-2006 02:33 PM

When I Uploaded The Files Then Added The XML Plugin It Kept Putting A Drop Down List Called 'Extras' In The Nav Bar Which Cant Be Edited Or Removed

harmor19 07-25-2006 03:50 PM

It's supposed to. That's where the links will go.

I-Web 07-26-2006 05:55 PM

Really love this one so much so i have nominated it for Mod Of The Month

blawson12 07-26-2006 07:45 PM

Everything works fine for me except the Extra dropdown.
Its not on the Modify/Delete page. :-/

I followed all instructions. Any ideas?

Staxed 07-27-2006 05:03 AM

the option to open links in a new window isn't working properly for me, and also sometimes when i click the links i've added it logs me out...but not always...

Neo_Angelo 07-27-2006 06:37 AM

i'd like one like this only it creates a new navbar below the current on where i could add links and drop down menu's. that would be awsome ^_^

geovadim 07-27-2006 11:57 AM

I can't find from where to add custom links in the navbar.

Boinger 07-30-2006 08:29 AM

how do i change teh extra text? for the drop down menu?

harmor19 07-30-2006 02:14 PM

Quote:

Originally Posted by Boinger
how do i change teh extra text? for the drop down menu?

Search in the phrases.

Boinger 07-30-2006 09:59 PM

which phrases ?

i have searched in the templates and the product manager code i cant quite find it?

aggiefan 07-31-2006 01:08 PM

I would personally like to use this to manage all the links on my navbar.... not just one "extra" dropdown. the ability to create more than one dropdown would be much nicer.

ctrl-alt-del 07-31-2006 03:08 PM

I just installed this hack. Very nice. Thank you!

ctrl-alt-del 07-31-2006 05:46 PM

Quote:

Originally Posted by Irisfire
the option to open links in a new window isn't working properly for me, and also sometimes when i click the links i've added it logs me out...but not always...

Same here...the option to open the link in a new window doesn't work. It just opens the link in the same window.

harmor19 08-01-2006 11:47 PM

Quote:

Originally Posted by ctrl-alt-del
Same here...the option to open the link in a new window doesn't work. It just opens the link in the same window.

This is because vBulletin added something to one of their js files.

Read this thread
http://www.vbulletin.com/forum/showthread.php?t=191493

b6gm6n 08-03-2006 09:34 PM

Is this supposed to auto-edit the navbar template for you? - the install instructions don't indicate this... im using an old version from vB3.5.4 which was working... untill i reverted the template of course... then i thought good... the install instructions don't say about editing the navbar template... i'll upload... still nothing, i'll re add the code below to my navbar...but im sure i saw no drop downs...only the link to start it... maybe i need to refresh something...

Code:

<!-- CUSTOM -->
<td id="custom_links" class="vbmenu_control"><a href="#custom_links">$vbphrase[custom_links_link]</a> <script type="text/javascript"> vbmenu_register("custom_links"); </script></td>
$custom_singlelinks
<!-- CUSTOM -->

-b6

b6gm6n 08-03-2006 11:44 PM

I see that the template does get added automagically... my problem was permissions and not uploading the latest files (doh) then for some reason the 'link_perms' field wasn't being added to my database and causing errors when i try to enter permission values for links... added that missing field (it is in your installer but dunno why it didn't work) and alls ok now... and working on my vBa CMPS (with added global variables)

-b6

ctrl-alt-del 08-04-2006 02:25 AM

Quote:

Originally Posted by harmor19
This is because vBulletin added something to one of their js files.

Read this thread
http://www.vbulletin.com/forum/showthread.php?t=191493

Is this something that can be resolved?

harmor19 08-04-2006 05:49 AM

Sorry everyone but I've been distracted by another hack I'm working on.
I may have this hack removed until it's been tested better.

ctrl-alt-del,
I don't know how to get around it.

ctrl-alt-del 08-06-2006 03:43 PM

Thanks Andrew.

By the way, the install version says v1.6.0 when installed as opposed to the listed 1.0.0.

mschvili 08-06-2006 04:49 PM

Hi!
I really like the mod... if it worked! :) It's work perfectly with the Default skin. But I'm using another. Why doesn't it work with that one?

pauloo 08-07-2006 10:15 AM

Thank you

aycan555 08-08-2006 05:54 AM

Hi thank you for your hack, i have installed, it is working succesfully, but i want to open my links in target frames, how can i do that?

Freakpyromaniac 08-09-2006 07:39 PM

I have installed it and it works for 80%.

When i add links in the EXTRA dropdown who are normally in my regular menu and i erase them in the Navbar template then i loose everything. As the extra as some more links (buttons)

And please how can we change extra...


By the way i really love this mod..:cool:

dan325ci 08-09-2006 08:35 PM

Search for "Extras" in phrases. You can change it from there.

mahakala 08-09-2006 08:51 PM

is this project continued?
i'd would be fine if a (line) seperator or toppic (no link) could be entered.
i solved the seperator with an < hr > and an # as link, but it doesn't look fine.
better would be e.g. a simple blue box with text as seperator - like "quick links" in here on top (know what i mean)...

a
Code:

<div style="width:100%;background-color:darkblue;"><font color=white><b>Bilder</b></font><div>
looks aweful and i can't add enough code, cause it's cut of :(

cu,
thomas

(sorry my bad english)


All times are GMT. The time now is 12:44 PM.

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.02595 seconds
  • Memory Usage 1,819KB
  • 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
  • (4)bbcode_code_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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