vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=236)
-   -   Forum Home Enhancements - Dropdown Menu box for Links/Urls (https://vborg.vbsupport.ru/showthread.php?t=200283)

down.low 04-19-2009 12:20 AM

UKBL,.- another thing you can do is put them between an <li> tag on one of your blacktabs.

Noosphere 04-19-2009 01:24 AM

Quote:

To Open in new Browser Window

To get the link to open in a new browser window, what you do is add the target="_blank" attribute to your link tag, like this in your Menu Links area

<option value="http://www.ukbusinesslive.co.uk" target="_blank">UKBusinesslive Store</option>

If you do that to the ones that you want to open in a new window, then you don't navigate away from your site
I love this mod - but the above is not working for me. Even when I cut and paste exactly as you have it there, it does not open a new window. Can someone take a look at that and see if there is a tweak to make this work? I really need it to open a new browser window versus navigating away from my site.

Thanks in advance!

Noosphere 04-19-2009 03:48 PM

Btw, in relation to the target="_blank" coding tweak not working for me (to have links open up in a new browser window), I am running vb 3.8.2 if it matters.

I'd also like to know if it's possible to have any of the links in the dropdown list show up as bolded or with colored text?

Noosphere 04-20-2009 09:46 AM

Anyone with a suggestion out there?

TheLastSuperman 04-20-2009 02:34 PM

Quote:

Originally Posted by Noosphere (Post 1794492)
Btw, in relation to the target="_blank" coding tweak not working for me (to have links open up in a new browser window), I am running vb 3.8.2 if it matters.

I'd also like to know if it's possible to have any of the links in the dropdown list show up as bolded or with colored text?

You can do that via the css (have not DL'd the mod but I assume it has a css file) OR by adding in <font> tags to specify color/bold/italic etc etc. I'll check on you later today after work as I'm enjoying lunch :p

Noosphere 04-22-2009 02:59 AM

I am not familiar with the whole CSS thing...I haven't been able to get tags to work for color or bold fonts...doesn't seem like it should be hard, but so far no luck.

I'm really more interested in the code to have the link open up a new browser window when clicked. Anyone got suggestions on that?

Thanks in advance!

Noosphere 04-25-2009 10:53 AM

Still looking for help with the code text to get the drop-down link to open a new browser window guys? I've inserted the target="_blank" text exactly as shown, and it doesn't work.

Anyone have suggestions?

UKBusinessLive 04-26-2009 08:51 AM

Hi,

This is how it looks without the target blank

Code:

<option value="http://www.ukbusinesslive.co.uk">UKBusinesslive Store</option>
and this is where you add the target blank, to get the link to open into a new page, highligted in blue

Code:

<option value="http://www.ukbusinesslive.co.uk" target="_blank" >UKBusinesslive Store</option>
you need to make sure that its the same layout as above and that you have all the " in the right place. Theres no real reason for it not to work as its basic HTML

Let me know how you got on, or perhaps post your code here and we'll take a look

;)

Noosphere 05-02-2009 03:10 PM

Quote:

Originally Posted by UKBusinessLive (Post 1799193)
Hi,

This is how it looks without the target blank

Code:

<option value="http://www.ukbusinesslive.co.uk">UKBusinesslive Store</option>
and this is where you add the target blank, to get the link to open into a new page, highligted in blue

Code:

<option value="http://www.ukbusinesslive.co.uk" target="_blank" >UKBusinesslive Store</option>
you need to make sure that its the same layout as above and that you have all the " in the right place. Theres no real reason for it not to work as its basic HTML

Let me know how you got on, or perhaps post your code here and we'll take a look

;)

Unless I'm blind, that's how I have a couple of the links formatted. Here's the initial snippet of code showing one of the links setup as you've instructed (but it doesn't perform any differently than the other links when clicked by opening a new window):

Code:

<div id="drop_box_nav"><form action="#" onsubmit="return go_nav();"><select name="my_links" id="my_links" align="center">
<option value="http://www.dabearz.com/forums/" target="_blank" >Bears/DaBears</option>
<option value="http://www.chicagobears.com/">Bears/Team Site</option>
<option value="http://forums.bengalszone.com/">Bengals/BengalsZone</option>

Appreciate the help!

UKBusinessLive 05-02-2009 04:12 PM

Hi

heres your code

Code:

<option value="http://www.dabearz.com/forums/" target="_blank">Bears/DaBears</option>
<option value="http://www.chicagobears.com/">Bears/Team Site</option>
<option value="http://forums.bengalszone.com/">Bengals/BengalsZone</option>

You'll see that there are some errors in your code, if you look at what you need to have shown below, i will highlight in red the errors in your code which you'll need to delete for your menu to open in a new window

So this is what it should look like

<option value="http://www.ukbusinesslive.co.uk" target="_blank" >UKBusinesslive Store</option>

and this is where you've gone wrong, highlighted in red

<div id="drop_box_nav"><form action="#" onsubmit="return go_nav();"><select name="my_links" id="my_links" align="center">
<option value="http://www.dabearz.com/forums/" target="_blank" >Bears/DaBears</option>
<option value="http://www.chicagobears.com/">Bears/Team Site</option>
<option value="http://forums.bengalszone.com/">Bengals/BengalsZone</option>

You seem to have a forward slash "/" at the end of your urls, Delete that and the target="_blank" should work ;)


All times are GMT. The time now is 07:58 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.01280 seconds
  • Memory Usage 1,751KB
  • 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
  • (6)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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