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)

nine45 10-24-2005 12:09 AM

Quote:

Originally Posted by aflax045
Another problem:
The "Open link in new window" option doesn't seem to work. Whatever I select, it always opens in a new window. Thoughts?

Same problem here

aflax045 10-24-2005 12:11 AM

Aside from the minor bugs. This is a great add-on. It makes adding links to the navbar idiot-proof.

harmor19 10-24-2005 12:35 AM

About the links opening in new window.
I have fixed the problem

Redownload the zip and re-upload the xml product.

@aflax045:
Make sure you upload "product-custom_links(front-end_error_messages.xml"

eNforce 10-24-2005 12:39 AM

I get this error when uploading the product xml

Code:

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 @ 08:36:36 PM
Script      : http://www.***.com/admincp/plugin.php
Referrer    : http://www.***.com/admincp/plugin.php?do=productadd
IP Address  : 137.186.156.***
Username    : Brad
Classname    : vB_Database


harmor19 10-24-2005 12:45 AM

Quote:

Originally Posted by eNforce
I get this error when uploading the product xml

Code:

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 @ 08:36:36 PM
Script      : http://www.***.com/admincp/plugin.php
Referrer    : http://www.***.com/admincp/plugin.php?do=productadd
IP Address  : 137.186.156.***
Username    : Brad
Classname    : vB_Database


Try the solution on post# 37.

aflax045 10-24-2005 12:54 AM

Both problems fixed. Great :)

eNforce 10-24-2005 12:54 AM

That worked, sorry for not reading.. I'm impatient and I was really really looking forward to a mod like this :D

Good work, this is awesome!

harmor19 10-24-2005 12:59 AM

@eNforce & aflax045
I'm glad to hear it.

I'll wait a couple more days and if no one reports any errors I'll take it out of beta.

eNforce 10-24-2005 01:01 AM

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.

harmor19 10-24-2005 01:12 AM

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.

1. I'll add the ability to sort the links in the drop down menu

2. it exapands for me (check the screen shot below)

3. I'll see how to make categories then I'll implement into my script.
Don't shut up, the more ideas the better.

G_Gekko 10-24-2005 01:31 AM

Nice work
Just one question. How do i change the name of the dropdown menu from "Extras" to something else?

harmor19 10-24-2005 01:34 AM

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

harmor19 10-24-2005 02:20 AM

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.

G_Gekko 10-24-2005 02:22 AM

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.

harmor19 10-24-2005 02:28 AM

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.)

G_Gekko 10-24-2005 02:32 AM

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

twitch 10-24-2005 02:52 AM

very cool extension

harmor19 10-24-2005 07:08 AM

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.

TygerTyger 10-24-2005 02:46 PM

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.

harmor19 10-24-2005 03:12 PM

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

TygerTyger 10-24-2005 03:29 PM

No dice I'm afraid, same again.

harmor19 10-24-2005 03:37 PM

I'm so tired so forgive me.

I'm looking for it.

TygerTyger 10-24-2005 03:40 PM

Do you not want the attachment then?

No worries mate, any and all help is appreciated. If it doesn't work it doesn't work, I'll live.

harmor19 10-24-2005 03:43 PM

Quote:

Originally Posted by TygerTyger
Do you not want the attachment then?

No worries mate, any and all help is appreciated. If it doesn't work it doesn't work, I'll live.

I don't even know why I asked for it.

re-download the zip and just re-import the product.

TygerTyger 10-24-2005 03:54 PM

Success! After the 10th-odd redownload and import or so it worked. Did you change anything or was that just weird.

harmor19 10-24-2005 04:03 PM

Quote:

Originally Posted by TygerTyger
Success! After the 10th-odd redownload and import or so it worked. Did you change anything or was that just weird.

I had to change something I overlooked.

TygerTyger 10-24-2005 04:05 PM

Oh well done, thank you. I have some more bad news though (sorry), the drop-down menu does not display added links. Standalone links display correctly. It just has the title Extras in the dropdown menu and then nothing. Not even a blank space.

harmor19 10-24-2005 04:11 PM

Open the product xml

PHP Code:

Find Remove:
$vbulletin->templatecache['custom_droplinks'] = str_replace('$custom_droplinks''$custom_droplinks Testing'$vbulletin->templatecache['custom_droplinks']); 

Re-import the xml using overwrite.


I was trying something while I was helping and forgot to remove it.

TygerTyger 10-24-2005 04:15 PM

Heh, no problem. Now working perfectly, thanks for the prompt help.

b6gm6n 10-24-2005 09:42 PM

Is there a way to catorgarize links with seperators? ...

If you entered some text for the cat heading but didn't enter a link then the seperator would appear! - sound good?

-b6

TygerTyger 10-24-2005 09:47 PM

There's on more minor bug, if you set the links to open in a new window, they only do so if you click on the link itself in the drop-down menu. Clicking the link background opens the link in the same window.

harmor19 10-24-2005 10:27 PM

Are yuou saying that links that are not in the drop down menu opens in a new window regardless of what setting you put them?

harmor19 10-24-2005 10:28 PM

Quote:

Originally Posted by b6gm6n
Is there a way to catorgarize links with seperators? ...

If you entered some text for the cat heading but didn't enter a link then the seperator would appear! - sound good?

-b6

you'll have to do it manually.
I'll make a tutorial that will show you how soon

harmor19 10-25-2005 01:55 AM

I have taken this hack out of beta.

Hopefully more people will check it out now.

Rhoads 10-25-2005 07:04 AM

Thnx harmor19, working perfectly.
Only in my CMPS it's not working, maby you have a fix for that :)

Edit: fixed, see below

TygerTyger 10-25-2005 07:12 AM

Quote:

Originally Posted by harmor19
Are yuou saying that links that are not in the drop down menu opens in a new window regardless of what setting you put them?

No, sorry mate. It's working perfectly, except if you click on the link background (the table cell bit that changes colour) it opens the link in the same window, even if it's set for a new window. If you click on the link text itself, it opens in a new window as it should. Very minor, really.

Something else which I believe might have been mentioned, but possibly not...I'm running the Microstats plugin and it is displaying this information:

(1 queries for uncached templates)
Uncached templates: custom_droplinks (1)

No clue if that's right or wrong or what, just FYI.

And I have a small suggestion in case you were interested, would be really nice to be able to specify a 16x16 icon to go with a link you have added as an option.

Thanks for the Extension again, really great stuff.

Rhoads 10-25-2005 07:22 AM

Oke I have already found a solution to work with CMPS.
In your CMPS settings under Portal Output Global Variables place:
custom_droplinks
custom_singlelinks

Now it's working with CMPS

harmor19 10-25-2005 07:38 AM

Quote:

No, sorry mate. It's working perfectly, except if you click on the link background (the table cell bit that changes colour) it opens the link in the same window, even if it's set for a new window. If you click on the link text itself, it opens in a new window as it should. Very minor, really.
I see what you mean, I don't know how to fix it.

Quote:

And I have a small suggestion in case you were interested, would be really nice to be able to specify a 16x16 icon to go with a link you have added as an option.
I'll think about it.

harmor19 10-25-2005 08:05 AM

Quote:

Originally Posted by drl2005
Oke I have already found a solution to work with CMPS.
In your CMPS settings under Portal Output Global Variables place:
custom_droplinks
custom_singlelinks

Now it's working with CMPS

I posted the solution on that hack info thingy at the top.

Neutral Singh 10-25-2005 08:36 AM

This is what i have been looking for, for a long long time, should be standard in vBulletin. Where can i edit the formatting of stand alone links? Thanks


All times are GMT. The time now is 07:41 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.01513 seconds
  • Memory Usage 1,836KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (13)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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