![]() |
|
#1
|
||||
|
||||
|
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? |
|
#2
|
|||
|
|||
|
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!
|
|
#3
|
||||
|
||||
|
a bumpety bump......
|
|
#4
|
||||
|
||||
|
Which link to the site on what page (there are quite a few).
|
|
#5
|
|||
|
|||
|
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?
|
|
#6
|
|||
|
|||
|
I also want to open my link to be open in the new window is anyone has the upadate please?
|
|
#7
|
||||
|
||||
|
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> 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> Last edited by Brian; 10-03-2006 at 02:41 PM. |
|
#8
|
|||
|
|||
|
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. |
|
#9
|
||||
|
||||
|
Yes, that change will already be made for the next version.
|
|
#10
|
|||
|
|||
|
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
|
|
#11
|
|||
|
|||
|
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. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |