1
Mindman
News Module 1.5: How to prevent links from opening in new window?
  • 2010/1/30 0:44

  • Mindman

  • Just popping in

  • Posts: 41

  • Since: 2006/11/17


I am using the News module ver. 1.5 on XOOPS 2.0.18.2, and am wondering where I can change the "target=_blank" HTML code to prevent the links in news articles from opening in new windows.

I have checked the templates and can't find what I need there. Can someone point me in the right direction maybe??

2
zyspec
Re: News Module 1.5: How to prevent links from opening in new window?
  • 2010/1/30 2:10

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


It looks to me like this is a function of news using the XOOPS textsanitizer. When a newsstory is shown it calls displayTarea which in turn calls makeClickable in the textsanitizer class. 'makeClickable' does a preg_replace that makes links clickable and open in a new window.

You could change this but it will most likely remove links in other 'desired' locations.

3
Mindman
Re: News Module 1.5: How to prevent links from opening in new window?
  • 2010/1/31 3:05

  • Mindman

  • Just popping in

  • Posts: 41

  • Since: 2006/11/17


I'm willing to try changing it. How would I?

Login

Who's Online

317 user(s) are online (234 user(s) are browsing Support Forums)


Members: 0


Guests: 317


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