1
superdave
Prevent links from opening in new window
  • 2012/5/17 3:37

  • superdave

  • Just popping in

  • Posts: 13

  • Since: 2007/1/11


How do I prevent links from opening in a new window under xoops 2.5?

Thanks in advance!

2
Anonymous
Re: Prevent links from opening in new window
  • 2012/5/17 19:29

  • Anonymous

  • Posts: 0

  • Since:


In bbcode use [siteurl]link[/siteurl] instead of [url]link[/url]

3
superdave
Re: Prevent links from opening in new window
  • 2012/5/18 0:37

  • superdave

  • Just popping in

  • Posts: 13

  • Since: 2007/1/11


Thanks! But is there a way to turn it off completely by modifying a script somewhere?

4
Anonymous
Re: Prevent links from opening in new window
  • 2012/5/18 15:13

  • Anonymous

  • Posts: 0

  • Since:


You could do that in the sanitizer section, but why? In case of links to an external site visitors like it openend in a new window.

5
irmtfan
Re: Prevent links from opening in new window
  • 2012/5/19 6:27

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:

flipse wrote:
In bbcode use [siteurl]link[/siteurl] instead of [url]link[/url]


IMO, It will not work. because it will add the site domain before the external link:
eg:
[ siteurl ]www.google.com[/ siteurl ]
replace with:
http://www.YOURDOMAIN.COM/www.google.com


@superdave:
I think you want to use target="_self" instead of target="_blank" when using [ url ] bbcodes.
I dont know how it can be possible. but it will be a good feature for the next xoops release.

6
Anonymous
Re: Prevent links from opening in new window
  • 2012/5/19 11:05

  • Anonymous

  • Posts: 0

  • Since:


You are right irmtfan, [siteurl] only works with links inside your own domain...

Login

Who's Online

420 user(s) are online (306 user(s) are browsing Support Forums)


Members: 0


Guests: 420


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits