[solved] Open exchange website links in a new tab

Problems installing LinkMan?
Post Reply
raykai
Posts: 20
Joined: Fri Jun 23, 2017 8:07 pm

[solved] Open exchange website links in a new tab

Post 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.
Last edited by raykai on Mon Sep 18, 2017 4:45 am, edited 1 time in total.
raykai
Posts: 20
Joined: Fri Jun 23, 2017 8:07 pm

Re: Open exchange website links in a new tab

Post 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?
raykai
Posts: 20
Joined: Fri Jun 23, 2017 8:07 pm

Re: Open exchange website links in a new tab

Post 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>
Post Reply