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)

Noosphere 05-02-2009 08:50 PM

Quote:

Originally Posted by UKBusinessLive (Post 1803126)
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 ;)

Yeah, I'd thought of that and removed them. Tried it again just now. Same result. Mind-boggling...

Noosphere 05-07-2009 06:50 PM

UK - any thoughts on why I'm still not able to get the links to open to a new browser window? Thanks in advance...

UKBusinessLive 05-07-2009 08:48 PM

Quote:

Originally Posted by Noosphere (Post 1806536)
UK - any thoughts on why I'm still not able to get the links to open to a new browser window? Thanks in advance...

Hi Mate, I'm looking into this, seems strange, will post back here when i've done my testing ;)

Noosphere 05-08-2009 11:38 PM

Quote:

Originally Posted by UKBusinessLive (Post 1806584)
Hi Mate, I'm looking into this, seems strange, will post back here when i've done my testing ;)

The code supplied (to make a clicked url open in a new browser window) obviously works generally ....just not in this situation.

If it helps, I'm using this code in a 'BB Code' module on the CMPS homepage of my forum. For whatever reason, it isn't working.

RichieBoy67 05-31-2009 02:10 PM

This is just what I need! Thanks--Installing it right now..

Rich
webdevoman

BGObsession 07-05-2009 01:58 PM

UK - I've got 4 different modules set up on my CMPS page using your mod here - it's great, but the code snippet still isn't resulting in url's opening in a separate window. I know it should, but it doesn't. I thought maybe because I had them set up as 'bb modules' that this might be the issue, but even when I convert them to 'php modules', the result is the same, clicking on a url takes me away from my site, it does not open a new browser window.

Help :)

deadlySniper 07-05-2009 02:02 PM

This is a very nice mod. Thank you!

BGObsession 07-05-2009 02:40 PM

I need one of you javascript experts to help figure out how to get the urls to open in a new window in this mod! I've done some google-hunting, and found lots of info, but it's mind-boggling to someone not javascript savvy...

betts02 08-01-2009 08:09 PM

i have installed as you posted,tried without the / at the end of the links but when any members tried to click the url it just reloads my forum page ?
any ides ?

Sunka 08-02-2009 01:44 AM

Installed, but also NOT open link in new tab.
Tried with and without / in the end of link, but it is same...link open in same window.
I think that is something within javascript where should be fix that.

UKBusinessLive 08-03-2009 02:36 PM

Quote:

Originally Posted by Sunka (Post 1859872)
Installed, but also NOT open link in new tab.
Tried with and without / in the end of link, but it is same...link open in same window.
I think that is something within javascript where should be fix that.

There is a bit of a nightmare getting the link to open in a new window, its a javascript problem and i've tried all different methods of opening a new window using javascript but i can't seem to hit the nail on the head, so if one of you brilliant JS coders could take a look :o

betts02 08-04-2009 07:38 PM

for some reason with or without the / when clicked it just re-freshes my page.nothing else.any help please ?

betts02 08-05-2009 10:00 PM

anyone know why above is happening and it is not working for me ?

UKBusinessLive 08-05-2009 11:38 PM

Quote:

Originally Posted by betts02 (Post 1862189)
anyone know why above is happening and it is not working for me ?

Not heard of that one before, Are you sure you've installed it correctly?

betts02 08-06-2009 06:34 PM

<a href="http://nextgenerationgamers.co.uk/forums/" target="_blank">http://nextgenerationgamers.co.uk/forums/</a>

as you can see i have it all set up mate,installed it as posted but nothing works.any help or advice would be great,click installed,etc when it works for me.

UKBusinessLive 08-07-2009 04:59 AM

Quote:

Originally Posted by betts02 (Post 1862723)
http://nextgenerationgamers.co.uk/forums/

as you can see i have it all set up mate,installed it as posted but nothing works.any help or advice would be great,click installed,etc when it works for me.

Did you copy the 1st code into a new file called subnav.js ?? and uploaded this to your forum root?? Or use the one in the zip file ;) ?

The problem you have is the HTML code part (the second code ) cannot see the javascript file in your forums root (subnav.js)

Nice forum by the way :up:

;)

betts02 08-07-2009 07:23 AM

got it working,my fault.put it in wrong section in root.
anyway is it possible to have it so it shows links in alphabetical order without doing it yourself ?

UKBusinessLive 08-07-2009 02:26 PM

Quote:

Originally Posted by betts02 (Post 1862965)
got it working,my fault.put it in wrong section in root.
anyway is it possible to have it so it shows links in alphabetical order without doing it yourself ?

Glad you got it working :cool: Don't forget to to click installed ;)

You'll need to arrange them in alphabetical order yourself i'm afriad, shouldn't take long with cut and paste ;)

betts02 08-08-2009 08:53 PM

cheers mate.
tagged
installed
nominated

dentopolis 08-08-2009 09:59 PM

Hello,

Excuse me, What is the name of the template of example's picture at first page?

Thank you

realdx 09-17-2009 11:50 AM

Anyway to implent the target_blank option in the vbadvanced module? I tried but with no results.. :( thanks!!

Alucard^ 10-25-2009 07:07 PM

Good man, installed... I love it.

The only problem that I have, is that doesn't open in a new browser window. And I am using this:

PHP Code:

<div id="drop_box_nav">
<
form action="#" onsubmit="return go_nav();">
<
select name="my_links" id="my_links">
  <
option value="http://www.google.com" target="_blank">Google</option>
  <
option value="http://www.google.com" target="_blank">Google</option>
  <
option value="http://www.google.com" target="_blank">Google</option>
  <
option value="http://www.google.com" target="_blank">Google</option>
</
select>
&
nbsp;&nbsp;
<
input type="submit" name="sub_nav" id="sub_nav" value="Go to URL" />
</
form>
</
div>
<
script type="text/javascript" src="subnav.js"></script


Cla75 05-28-2012 11:16 AM

Hi guys, I need your help
I uploaded the file in the root ... subnav.js
I opened a new forum and I have included in the description field

HTML Code:

<div id="drop_box_nav">
<form action="#" onsubmit="return go_nav();">
<select name="my_links" id="my_links">
<option value="http://www.GOOGLE.com" target="_blank">GOOGLE</option>
</select>
&nbsp;&nbsp;
<input type="submit" name="sub_nav" id="sub_nav" value="Go to URL" />
</form>
</div>
<script type="text/javascript" src="subnav.js"></script>

on index the dropdown menu is visible, I see all the sub-menus, but if you click on "Go to URL" reload the forum index

why? can anyone help me please?

thanks


All times are GMT. The time now is 01:33 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.01551 seconds
  • Memory Usage 1,786KB
  • 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
  • (1)bbcode_html_printable
  • (1)bbcode_php_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (23)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