* FAQ    * Search  * Register * Login 
Active topics
Unanswered topics

All times are UTC-06:00

Forum rules


Please click here to view the forum rules



Post new topic  Reply to topic  [ 24 posts ] 
Author Message
 Post subject: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 8:00 am 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
http://www.KoolBear.com if mod works link should open in a new window or tab.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 9:09 am 
Offline
DBB Grand Master
DBB Grand Master
User avatar

Joined: Thu Jun 28, 2001 2:01 am
Posts: 10324
Location: Earth
Opened in new window.

IE

_________________
.
When Republicans go low...Democrats go even lower.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 9:39 am 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
Opened in a new tab. Chrome 9.0.597.84 Linux

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 9:52 am 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
The forums should open in a new window or tab too.

Any other links that we think should open in a new window please point them out. I know I need to get the BBCode link this is the link that shows up within the Post Topic page. Man that's a frustrating one to hit while you are editing :)


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 10:54 am 
Offline
DBB Artist
DBB Artist
User avatar

Joined: Mon Aug 01, 2005 8:47 am
Posts: 7124
Location: Ơ̸̦͇̲̬̭̱̰͎̞͈̣͎͚̳ͬ͋̃̀̇͊͂͋͐ͦ̽ͣ̂ͥ͊̅̀̚͠ B̶͖̯͉̜̰̲̓̔͋̈́ͅ È̯ Y̪̤̼͉̠̙͝
This feature is one of my favorite things about this forum. Just about all the others I use don't have this.

_________________
s☼-£♦и̫͍ͥ̍ͪ͌̓͗͡о̡̹̱͊̅ͮ̓̕͢б̧̝̻̪̤̳̜͐̓̉ͤ͢͜ ͙̬͙̆̑ͮ̐ͭ̾̂́͘i̎̌̾̓̽̀̈̓̀҉͉̙̦͎̘̝͕f̻͕͔̘ͣͣ̓͊̿͢͜ ͍͔͈͕̮̫ͣ̆ͮ̊͋/♂6Æ!♪╩"▲L└уͭ̂͐̇҉̴̣̼̞̠̯͓̺̞ф̜̊͌̈́̋̏̐́ц̨͔̮̿̇ ̨̛͖̙͖̖̮̗̱ͩ̆͞ͅа̥͇̞̖͚̟̅͐ͤ͞͠͠э̜̘̩̳̬͔̾ͯ̀ͫ̒̐̿ͅͅг̭̖̀ͦ̒̑ͥ̌ͮͫ͞ё͔̟̃ͬ̾̓͟ё̦̞̙̫͔̩͑̀͂ͯ̄̔̃̑̀͠ͅͅ


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 1:03 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
why are you using javascript? target="_blank" will work


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 1:26 pm 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
I'm not doing anything it's the way phpbb is assembling the url it in the program... and obviously I'm not a programmer. :D


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 1:28 pm 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
Isaac wrote:
This feature is one of my favorite things about this forum. Just about all the others I use don't have this.


lol, that;s because most forums since 2008 have been using the new version of phpbb :D


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 2:26 pm 
Offline
DBB Database Master
DBB Database Master
User avatar

Joined: Sun Nov 29, 1998 3:01 am
Posts: 15144
ICQ: 46028958
Website: http://krom.d3k.org
AOL: dutenhnj
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
An alternative if you are a Firefox user is to install greasemonkey and set this as a user script:
Code:
// ==UserScript==
// @name           DescentBB.net set link target attribute
// @namespace      descentbb.net
// @description    Fix the target of hyperlinks so they open in a new tab/window
// @include        http://descentbb.net/viewtopic.php*
// @include        http://www.descentbb.net/viewtopic.php*
// ==/UserScript==
var a = document.getElementsByTagName('a');
for (i = 0; i < a.length; i++) a[i].setAttribute('target','_blank');

The added bonus is you can edit in more: // @include http://someotherphpbbsite.com to make other phpbb3 based forums behave the same way. Or you can edit the script and replace the '_blank' with '_self' to reverse the behavior on sites that use new tabs/windows when you don't want them to.

Also with a little tweaking of the browser Google Chrome users can use this script too.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 3:10 pm 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
Nice, any odea why XHTML dropped it? I guess it's a legacy feature and it has been replaced by something else?


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 3:27 pm 
Offline
DBB Friend
DBB Friend
User avatar

Joined: Fri Apr 23, 2004 7:27 am
Posts: 1604
ICQ: 243831557
Yahoo Messenger: AusRED5
AOL: AuzzieGeorge
Location: Adelaide, South Australia
KB, it's works.

Thank you! :)

_________________
Prepare for DESCENT!


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Wed Feb 09, 2011 4:32 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
KoolBear wrote:
Nice, any odea why XHTML dropped it? I guess it's a legacy feature and it has been replaced by something else?


Its valid in transitional XHTML/HTML4, but not the strict versions.

Its back in HTML5. Go figure. I wonder if they had second thoughts on that one.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 2:23 am 
Offline
DBB Friend
DBB Friend
User avatar

Joined: Fri Apr 23, 2004 7:27 am
Posts: 1604
ICQ: 243831557
Yahoo Messenger: AusRED5
AOL: AuzzieGeorge
Location: Adelaide, South Australia
hummm... The link to KB's website opened in a new tab, but why didn't this one do the same?

EDIT: Well I ended up using Krom's suggestion. It works too, but if click on New Post, New Reply, PM, Quote or even Edit (pretty much anything with a link). They will be opened in a new tab.... Doh! Not sure I like this! :lol:

_________________
Prepare for DESCENT!


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 6:59 am 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
did you just paste the url straight in or did u enter the bbcode?

This is the url only pasted below...
http://www.youtube.com/watch?v=h7eREddMjt4

EDITED 2/10/11 10am cst
Sorry my bad that was a stupid question obviously you used the bbcode, let me see what else I can do:P


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 8:21 am 
Offline
DBB Database Master
DBB Database Master
User avatar

Joined: Sun Nov 29, 1998 3:01 am
Posts: 15144
ICQ: 46028958
Website: http://krom.d3k.org
AOL: dutenhnj
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Yeah, that is the one downside of the script; its an all or nothing setting.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 12:16 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
try this:

Code:
// ==UserScript==
// @name           DescentBB.net set link target attribute
// @namespace      descentbb.net
// @description    Fix the target of hyperlinks so they open in a new tab/window
// @include        http://descentbb.net/viewtopic.php*
// @include        http://www.descentbb.net/viewtopic.php*
// ==/UserScript==
var a = document.getElementsByTagName('a');

for (i = 0; i < a.length; i++) if(a[i].className=='postlink') a[i].setAttribute('target','_blank');


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 12:22 pm 
Offline
DBB Database Master
DBB Database Master
User avatar

Joined: Sun Nov 29, 1998 3:01 am
Posts: 15144
ICQ: 46028958
Website: http://krom.d3k.org
AOL: dutenhnj
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
fliptw wrote:
try this:

That works perfectly, good idea on checking the class name.

One question then, is it possible to run that script automatically by editing it into the header without requiring an extra browser plugin?


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 12:34 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
You can.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 12:37 pm 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
fliptw wrote:
You can.


Will you share and I'll edited into the header.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 12:43 pm 
Offline
DBB DemiGod
DBB DemiGod
User avatar

Joined: Sat Oct 24, 1998 2:01 am
Posts: 6415
Location: Calgary Alberta Canada
Go ahead. Just put that code between the script tags and its golden.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 12:49 pm 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
fliptw wrote:
Go ahead. Just put that code between the script tags and its golden.


kool beans thanks


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 1:50 pm 
Offline
DBB Database Master
DBB Database Master
User avatar

Joined: Sun Nov 29, 1998 3:01 am
Posts: 15144
ICQ: 46028958
Website: http://krom.d3k.org
AOL: dutenhnj
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
If that script works KB, you should probably remove the board modification you were trying just to play it safe.

Oh, and if you do put it in, you only need the two bottom lines, all the stuff at the top that starts with the // is irrelevant for a script that is built into the page.


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Thu Feb 10, 2011 2:42 pm 
Offline
DBB Co-Founder
DBB Co-Founder
User avatar

Joined: Thu Nov 05, 1998 12:01 pm
Posts: 10132
ICQ: 47422648
Website: http://www.koolbear.com
WLM: iamwithchrist@yahoo.com
Yahoo Messenger: iamwithchrist@yahoo.com
AOL: DescentBB
Location: Houston, TX USA
Krom wrote:
If that script works KB, you should probably remove the board modification you were trying just to play it safe.

Oh, and if you do put it in, you only need the two bottom lines, all the stuff at the top that starts with the // is irrelevant for a script that is built into the page.


;) otay buckwheat :P


Top
   
 Post subject: Re: Testing open in new window/tab modification
PostPosted: Fri Feb 11, 2011 1:35 am 
Offline
DBB Friend
DBB Friend
User avatar

Joined: Fri Apr 23, 2004 7:27 am
Posts: 1604
ICQ: 243831557
Yahoo Messenger: AusRED5
AOL: AuzzieGeorge
Location: Adelaide, South Australia
fliptw wrote:
try this..........


Thanks fliptw, that worked! :)

_________________
Prepare for DESCENT!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 24 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Descent'rs have piloted these pages
 
The layout and contents contained within this site are © DescentBB.net 1997-2006.
Descent, Descent II are © Parallax Software Corporation.
Descent III is Outrage Entertainment.
Descent is a Trademark of Interplay Productions.

Miner Wars™ is trademark of Keen Software House s. r. o.
.


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group