Sign Up! Login: Password: New User? Forgot? Support
Top Mods!
Wowhead Search
by sonofsamedi
Digital Clock
by Wolfar15
Admin Forums
Welcome to the GuildPortal Help Community! These forums are for admin-to-admin help.
Available Forums
Forums : Voodoo Tech and Scripter's Den of Scriptniquity > Help With Defaulting Links to New Window
Valdaglerion (Guild Admin) 2/14/2013 12:23 PM EST : Help With Defaulting Links to New Window
Valdaglerion
Posts: 2473
Zomgawsh Poster

Is there a way (via css or script) to make all my site links open in a new window/tab by default, rather than having to set them link by link?  I normally set links to open in a new window rather than having a viewer leave my site and this would save a lot of effort over time.
TopBottom

Mottie (MVP) 2/15/2013 8:46 AM EST : RE: Help With Defaulting Links to New Window
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

Would the code from this post work for you?... I'm assuming you mean within the forums?
TopBottom

Valdaglerion (Guild Admin) 2/15/2013 8:54 PM EST : RE: Help With Defaulting Links to New Window
Valdaglerion
Posts: 2473
Zomgawsh Poster

Thanks Mottie!  I'll give that a shot.  One question about the script:

this.href.match(guild)

On guildportal, you can log into our website using the custom name Remnant.guildportal.com and also via www.guildportal.com/Guild.aspx?GuildID=171949.  Will that script work regardless of which address they use to access the site?
TopBottom

Mottie (MVP) 2/16/2013 7:43 AM EST : RE: Help With Defaulting Links to New Window
GuildPortal MVP
Mottie
Posts: 3883
Zomgawsh Poster

It should, because it is only looking for the GuildID in the URL and not the subdomain. That being said, if you link back to your own site with only the subdomain "mysite.guildportal.com" and nothing after it, it'll treat that as an external link.
TopBottom

Admins Online
There are   members online.
So-and-so has logged on!
%title%
%message%