vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced Links Directory > vBa Links Directory v2.0 Support > "How Do I..." Questions

Reply
 
Thread Tools Display Modes
  #1  
Old 08-19-2006, 02:14 PM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Question Links open in new window?

On the version for 3.5, when a link was clicked it opened in a new window. Now it doesn't and I don't want people to go from the site.

Is there a way to have links open in a new window, or is there a setting i've missed?
Reply With Quote
  #2  
Old 09-02-2006, 10:23 PM
adwade adwade is offline
Member
 
Join Date: Aug 2006
Location: Tennessee
Posts: 41
Default Re: Links open in new window?

No idea of the answer, but I'm as interested as you are to find out. I figured there'd be a button to toggle such a feature on/off, but I haven't found it. Hope it's possible!
Reply With Quote
  #3  
Old 09-07-2006, 10:55 AM
nealparry's Avatar
nealparry nealparry is offline
England
 
Join Date: Mar 2004
Location: Lancashire
Posts: 122
Default Re: Links open in new window?

a bumpety bump......
Reply With Quote
  #4  
Old 09-07-2006, 06:57 PM
Zachery's Avatar
Zachery Zachery is offline
Super Moderator
 
Join Date: Jan 2004
Posts: 3,158
Default Re: Links open in new window?

Which link to the site on what page (there are quite a few).
__________________
Zachery
vBadvanced Support & SysAdmin

Reply With Quote
  #5  
Old 09-07-2006, 07:09 PM
adwade adwade is offline
Member
 
Join Date: Aug 2006
Location: Tennessee
Posts: 41
Default Re: Links open in new window?

I'm most interested in the LINKs I add into my vBadvanced Links Directory Product. What could I do to cause them all to be opened in new windows vs. opening in the current window as my users peruse the links I've added?
Reply With Quote
  #6  
Old 10-03-2006, 12:01 AM
ang2el ang2el is offline
Member
 
Join Date: Oct 2005
Posts: 44
Default Re: Links open in new window?

I also want to open my link to be open in the new window is anyone has the upadate please?
Reply With Quote
  #7  
Old 10-03-2006, 02:33 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Links open in new window?

You're referring to the "View Site" link that appears in the drop-down menu, right? If so, it looks like vB has changed the way their drop-down menus work so that the 'target="_blank" attribute no longer has any effect with links. The javascript that vB uses could probably be modified to allow for this by someone who knows javascript, but that's not exactly one of my stronger points.

*Edit*
Upon further investigation, it looks like there's an easy way to "trick" the javascript so the target attribute will still work. For those having this problem, edit your adv_links_linkbit template and look for this code:
Code:
<td align="$stylevar[left]" class="vbmenu_option"><a href="showlink.php?l=$link[linkid]" target="_blank"<if condition="$show['nofollow']"> rel="nofollow"</if>>$vbphrase[view_site]</a></td>
Replace with this:
Code:
<td align="$stylevar[left]" class="vbmenu_option falseclass"><a href="showlink.php?l=$link[linkid]" target="_blank"<if condition="$show['nofollow']"> rel="nofollow"</if>>$vbphrase[view_site]</a></td>
And that should take care of the problem.

Last edited by Brian; 10-03-2006 at 02:41 PM.
Reply With Quote
  #8  
Old 10-03-2006, 10:47 PM
ang2el ang2el is offline
Member
 
Join Date: Oct 2005
Posts: 44
Default Re: Links open in new window?

Thanks Brian, it solved my problem.

Will it be pre-installed in the final version of Links Directory v2.0 or we will have to do the edit as soon as we install newer version in the future.
Reply With Quote
  #9  
Old 10-04-2006, 01:46 PM
Brian's Avatar
Brian Brian is offline
Administrator
 
Join Date: Jan 2004
Location: Georgia, USA
Posts: 34,240
Default Re: Links open in new window?

Yes, that change will already be made for the next version.
Reply With Quote
  #10  
Old 10-04-2006, 11:14 PM
ang2el ang2el is offline
Member
 
Join Date: Oct 2005
Posts: 44
Default Re: Links open in new window?

that is awesome thanks a lot brain if you have time could you please visit this link http://www.vbadvanced.com/forum/show...91&postcount=7
Reply With Quote
  #11  
Old 08-12-2007, 07:22 AM
rotor rotor is offline
Member
 
Join Date: Aug 2007
Posts: 43
Default Re: Links open in new window?

I had the same problem however in Links Directory v2.0.1, the code that you suggested by replaced -

<td align="$stylevar[left]" class="vbmenu_option"><a href="showlink.php?l=$link[linkid]" target="_blank"<if condition="$show['nofollow']"> rel="nofollow"</if>>$vbphrase[view_site]</a></td>

could not be found. Instead I found this which appears to have been modified to include the "falseclass" I presume variable (excuse my programming ignorance). Here it is:

<td align="$stylevar[left]" class="vbmenu_option falseclass"><a href="showlink.php?$session[sessionurl]l=$link[linkid]" target="_blank"<if condition="$show['nofollow']"> rel="nofollow"</if>>$vbphrase[view_site]</a></td>

As you can see it is slightly different from both the codes - the one to find and the one to replace.

So after replacing it with the code you suggest above, it now opens a new window!! Hope this is ok??

Thanks

Last edited by rotor; 08-12-2007 at 07:26 AM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
open BB in same window ryanC "How Do I..." Questions 7 11-18-2008 03:55 PM
Make links open in new window for one page Joey805 "How Do I..." Questions 9 04-18-2006 11:02 AM
I would like to have all links open in the same window on New Module gyankow "How Do I..." Questions 4 12-22-2005 01:46 PM
Open Links in New Window (Site Navigation Module) matmen "How Do I..." Questions 1 07-22-2005 07:43 PM
Preset links to open in new window? ncangler "How Do I..." Questions 9 01-07-2005 12:03 PM


All times are GMT -4. The time now is 05:51 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.