Whilst small files can be uploaded to forum posts, if you have a custom theme or module to contribute please add it on the "Add-ons" page.
  • Page:
  • 1

TOPIC:

Open URL in new tab 1 year 3 months ago #1

  • thomas52
  • thomas52's Avatar Topic Author
  • Offline
  • Frequent
  • Frequent
  • Western North Carolina
  • Posts: 882
I like the not-so-recently discussed "force links to open in a new tab", so
/app/filter.php - line 138, is changed to -

'<a href="' . $m[0] . '" TARGET = "_blank">' . $m[0] . '</a>';

HOWEVER, this mod doesn't work in the newer version 1.7.13, and my page crashes.
Can anyone give me some guidance?
"Failure is an amazing teacher." (L'échec est un professeur extraordinaire.)

Please Log in or Create an account to join the conversation.

Open URL in new tab 1 year 3 months ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 13196
I can't think of any code changes since 1.7.9 that would affect this.

Check your typing?
Post a URL where we can see this?
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

Open URL in new tab 1 year 3 months ago #3

  • thomas52
  • thomas52's Avatar Topic Author
  • Offline
  • Frequent
  • Frequent
  • Western North Carolina
  • Posts: 882
The line number changed, but it was my bad (typo.) Thank you.
"Failure is an amazing teacher." (L'échec est un professeur extraordinaire.)

Please Log in or Create an account to join the conversation.

[SOLVED] Open URL in new tab 1 year 3 months ago #4

  • thomas52
  • thomas52's Avatar Topic Author
  • Offline
  • Frequent
  • Frequent
  • Western North Carolina
  • Posts: 882
Problem solved.
"Failure is an amazing teacher." (L'échec est un professeur extraordinaire.)

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum