"onclick="window.open(this.href);return false;" on links

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
scottybt
Registered User
Posts: 130
Joined: Sun May 11, 2008 5:39 pm

"onclick="window.open(this.href);return false;" on links

Post by scottybt » Mon Aug 11, 2008 10:01 am

Hi. When I just paste a link into a post without the URL bbcode, and go to edit the same post later on, I get this on the link:
http://www.somewebpage.com" onclick="window.open(this.href);return false;

How do I get rid of this problem? I have the latest version of phpBB3.

Thanks.
Scott

User avatar
karlsemple
Former Team Member
Posts: 39802
Joined: Mon Nov 01, 2004 8:54 am
Location: Hereford, UK
Contact:

Re: "onclick="window.open(this.href);return false;" on links

Post by karlsemple » Mon Aug 11, 2008 10:03 am

It looks to me like you have incorrectly applied the change in this KB article http://www.phpbb.com/kb/article/links-o ... w-windows/ to open links in a new window.
Image

scottybt
Registered User
Posts: 130
Joined: Sun May 11, 2008 5:39 pm

Re: "onclick="window.open(this.href);return false;" on links

Post by scottybt » Mon Aug 11, 2008 10:48 am

Thank you! I followed your link and did it over again. Don't know quite what was wrong, but it works perfect now.

CASE SOLVED

Scott

zulater
Registered User
Posts: 11
Joined: Tue Apr 26, 2011 1:16 pm

Re: "onclick="window.open(this.href);return false;" on links

Post by zulater » Wed Jun 01, 2011 3:55 pm

I'm having this issue now.
I followed the instructions and it worked fine previously. I have since added "Advanced Double Activation Pack" and "Advanced Block Mod"
I have gone back through the "open links in a new window" mod and everything is correct but I am still getting the extra wrapping upon an edit.
Any insight?
Any help greatly appreciated.

Locked

Return to “[3.0.x] Support Forum”