Opening Band Pages in New Windows

mucka_tbfm

Mucka Jay
Is there a simple way to make all links open in new window? I am sure I have used plugins before on websites or some code in .htaccess that rules all links open in new window. Although saying that, we don't want the read more to open in a new window, just external links.
 

Basti

Administrator
Staff member
Just edit table_top_row, table_row.html etc
on the external links simple add target="_blank"

eg. taken the default title link from table_top_row
Code:
<a href="{$url}" onclick="out(this,'{$username}');" class="show_banner" title="{$title}" rel="nofollow">{$title}</a>
to
Code:
<a href="{$url}" onclick="out(this,'{$username}');" class="show_banner" title="{$title}" rel="nofollow" target="_blank">{$title}</a>
 

randomcash

Member
Do we need to edit every file named table_*
And/or other files too, to make sure everything clicked is opened in a new window ?
 

Basti

Administrator
Staff member
Files where the following is stored are...
Code:
href="{$url}" onclick="out(this,'{$username}');"
table_row.html
table_top_row.html
table_row_premium.html
table_top_row_premium.html
stats.html
featured_member.html
search_result.html

That means these files hold outgoing links to the member url, so in these files you would need to make the adjustments of adding
Code:
target="_blank"
to the html link tag
 
Top