View Full Version : hiperlink open in a new window
Anonymous
02-17-2005, 06:48 AM
how I have to do to set every external hyperlink to open in a new window? for example in the comments pop up i'd like that every link to the commenters site should be open as new window. can someone help me?
gabriele
--------------------------
www.aboutpictures.com
--------------------------
Zlato
02-17-2005, 08:06 AM
Hi Gabriele it's pretty simple in fact you have to go in your index php at line 332 (or close to that) :
$comment_name = "<a href='$comment_url' title='$lang_visit_homepage'target='_blank'><strong>$comment_name</strong></a>";
}
You see after title='$lang_visit_homepage
There is 'target='_blank'
If you don't have this, copy and paste 'target='_blank' after title='$lang_visit_homepage' so it's look like i wrote here...
Hope this help you if not, i can maybe explain better..
Connie
02-17-2005, 08:18 AM
There is also a very easy suggestion:
as explained in this forum before, you could add one line to the header of your templates:
<base target="_new">
so all links will start in a new window, you will find an explanation of this option in all HTML-tutorials :wink:
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.