Page 1 of 1

[solved] Open exchange website links in a new tab

Posted: Mon Sep 18, 2017 2:54 am
by raykai
Hi,
Is there a way to get it to open all the exchange website links in a new tab for all links on the main page?

I would need this as I'm using an iframe to show LinkMan on my site... but sins it does not open the exchange website links in a new tab it loads them in my iframe which is not good.

Any help for this would be apricated.

Re: Open exchange website links in a new tab

Posted: Mon Sep 18, 2017 4:35 am
by raykai
I see that the Template linkman_1 has all links to open in a new tab but not the new default Template is there a way i can modify the default one for it to open links in a new tab?

Re: Open exchange website links in a new tab

Posted: Mon Sep 18, 2017 4:45 am
by raykai
ok nvm i fixed it in the / templates / default / links.tpl.php by adding target="_blank on line 19 and 81 this seems to work

line 19:

Code: Select all

<p><a href="' . ($settings['redirect'] == 1 ? 'go.php?id=' . $id : $link['L']) . '" target="_blank"' . ($settings['use_nofollow'] == 1 ? ' rel="nofollow"' : '') . '>' . $link['T'] . '</a><br>' . $link['S'] . '</p>
line 81:

Code: Select all

<p><a href="' . ($settings['redirect'] ? 'go.php?id=' . $id : $link['L']) . '" target="_blank"' . ($settings['use_nofollow'] ? ' rel="nofollow"' : '') . '>' . $link['T'] . '</a><br>' . $link['S'] . '</p>