Just noticed that when you click on the toplist links, it doesn't open into a new window!

randomcash

Member
Just noticed that when you click on the toplist links, it doesn't open into a new window!

It is a must to gain as much clicks out possible.
How can i change this please?

Let me know
Thanks
 

cajkan

Active Member
Just extend your <a href=""

and add target blank example:
<a href="LINK" target="_blank">LINK</a>
 

randomcash

Member
Ok i just tried to add the code to
table_rop_row.html

Code:
<a href="{$url}" onclick="out(this,'{$username}');" class="show_banner" title="{$title}" rel="nofollow" target="_blank">{$title}</a>
It doesn't work?
Any ideas?
 

randomcash

Member
copy of my table_rop_row.html
Code:
<div class="table_top">
    <div class="table_top_title">
        <span class="rank">#{$rank}</span>
        <a href="{$url}" onclick="out(this,'{$username}');" class="show_banner" title="{$title}" rel="nofollow" target="_blank">{$title}</a>
    </div>
    <div class="table_top_inside_border">
        <div class="table_top_inside">
            <div class="right badge">
                <a href="{$list_url}/{$url_helper_a}details{$url_helper_u}{$username}{$url_tail}">
                {$screenshot}<br />
                <img src="{$skins_url}/{$skin_name}/stats.png" alt="{$lng->table_stats}" height="21" width="21" /><br />{$lng->table_stats} <br /><img src="{$skins_url}/{$skin_name}/{$up_down}.png" alt="{$lng->up_down}" /></a>
            </div>

            <a href="{$url}" onclick="out(this,'{$username}');" rel="nofollow"><img src="{$banner_url}" alt="{$title}"  class="vistip" title="{$title}"/></a>

            <p>{$description, length=255}</p>

            {$rankings_custom_fields}

            <div class="catinfo">
                <em>{$lng->g_category}</em>: <a href="{$list_url}/{$url_helper_cat}{$category_url}{$url_tail}">{$category}</a>
            </div>
        </div>
    </div>
</div>
 

randomcash

Member
Ahhhh
thanks!

But as i ain't too good with PHP i'm not sure which
Code:
< a href=
i should add the
Code:
target="_blank"
code
I think that table_rop_row.html is ok but i'm not sure about the 3 other files.
 

randomcash

Member
I'm almost there!

It's working fine when i click on the links (lower position) but not on the top position where there's banners so i'm missing some for sure!
 

randomcash

Member
Here is my table_row
Code:
<tr class="lightbg{$alt}">
<td><span class="rank">#{$rank}</span></td>
<td class="alignleft"><a href="{$url}" onclick="out(this,'{$username}');" title="{$description}" class="vistip" rel="nofollow" target="_blank">{$title}</a></td>
<td><a href="{$list_url}/{$url_helper_cat}{$category_url}{$url_tail}">{$category}</a></td>
<td>{$this_period}</td>
<td>{$average}</td>
<td><a href="{$list_url}/{$url_helper_a}details{$url_helper_u}{$username}{$url_tail}"><img src="{$skins_url}/{$skin_name}/stats.png" alt="{$lng->table_stats}" height="21" width="21" /></a></td>
</tr>
here is my table_row_premium
Code:
<tr class="premium_title">
<td class="premium_title"><b>{$rank}</b></td>
<td class="premium_title"><a href="{$url}" onclick="out(this,'{$username}');" title="{$description}" class="vistip" target="_blank"><b>{$title}</b></a></td>
<td><em>{$lng->g_category}</em>: <a href="{$list_url}/{$url_helper_cat}{$category_url}{$url_tail}">{$category}</a></td>
<td colspan="2">{$lng->g_premium}</td>

<td><a href="{$list_url}/{$url_helper_a}details{$url_helper_u}{$username}{$url_tail}"><img src="{$skins_url}/{$skin_name}/stats.png" alt="{$lng->table_stats}" height="21" width="21" /></a></td>
</tr>
here is my table_top_row
Code:
<div class="table_top">
    <div class="table_top_title">
        <span class="rank">#{$rank}</span>
        <a href="{$url}" onclick="out(this,'{$username}');" class="show_banner" title="{$title}" rel="nofollow" target="_blank">{$title}</a>
    </div>
    <div class="table_top_inside_border">
        <div class="table_top_inside">
            <div class="right badge">
                <a href="{$list_url}/{$url_helper_a}details{$url_helper_u}{$username}{$url_tail}">
                {$screenshot}<br />
                <img src="{$skins_url}/{$skin_name}/stats.png" alt="{$lng->table_stats}" height="21" width="21" /><br />{$lng->table_stats} <br /><img src="{$skins_url}/{$skin_name}/{$up_down}.png" alt="{$lng->up_down}" /></a>
            </div>

            <a href="{$url}" onclick="out(this,'{$username}');" rel="nofollow"><img src="{$banner_url}" alt="{$title}"  class="vistip" title="{$title}"/></a>

            <p>{$description, length=255}</p>

            {$rankings_custom_fields}

            <div class="catinfo">
                <em>{$lng->g_category}</em>: <a href="{$list_url}/{$url_helper_cat}{$category_url}{$url_tail}">{$category}</a>
            </div>
        </div>
    </div>
</div>
finally here is my table_top_row_premium
Code:
<div class="premium_table_top">
    <div class="premium_title">
        <span class="rank">#{$rank}</span>
        <a href="{$url}" onclick="out(this,'{$username}');" target="_blank"><b>{$title}</b></a>
    </div>
    <div class="premium_inside_border">
        <div class="premium_inside">
            <div class="right premium_badge">
                <a href="{$list_url}/{$url_helper_a}details{$url_helper_u}{$username}{$url_tail}">
                {$screenshot}<br />
                <img src="{$skins_url}/{$skin_name}/stats.png" alt="{$lng->table_stats}" height="21" width="21" /><br />{$lng->table_stats} <br /><img src="{$skins_url}/{$skin_name}/{$up_down}.png" alt="{$lng->up_down}" /></a>
            </div>

            <a href="{$url}" onclick="out(this,'{$username}');"><img src="{$premium_banner_url}" alt="{$title}" title="{$lng->g_premium_visit}"/></a>

            <p>{$description, length=255}</p>

            {$rankings_custom_fields}

            <div class="catinfo">
                <a href="{$url}" onclick="out(this,'{$username}');" title="" class="callbutton">{$lng->g_visit}</a>
                <em>{$lng->g_category}</em>: <a href="{$list_url}/{$url_helper_cat}{$category_url}{$url_tail}">{$category}</a>
            </div>   
        </div>
    </div>
</div>
 

randomcash

Member
Crappp i'm so close to it!
I must be missing a target blank code somewhere for sure as it's the only thing that do no open in a new window.
Or i'm probably adding this somewhere that doesn't have any effect and doesn't throw an error...
Thanks
 

randomcash

Member
Ahhhhhhhhhhh got it!
Here's for others to see in case in happens to you
Code:
   <a href="{$url}" onclick="out(this,'{$username}');" rel="nofollow" target="_blank" ><img src="{$banner_url}" alt="{$title}"  class="vistip" title="{$title}"/></a>
Notice where the target="_ blank" code is inserted
Don't do like which is add the code it in the <img src=....
part
 
Last edited:
Top