Problem with ranking on first page

Basti

Administrator
Staff member
Looks to me like you somehow made edits to the core file rankings.php and dont rank by your default ranking method youve set in admin.

Make a backup of sources/rankings.php and upload a fresh copy of that file to verify if thats the case
 

Blecky

Member
Looks to me like you somehow made edits to the core file rankings.php and dont rank by your default ranking method youve set in admin.

Make a backup of sources/rankings.php and upload a fresh copy of that file to verify if thats the case
i try but nothing channge

only things what i do is to change my skins i use Dark Elegant Green beffore when i use him everething be normal i change to default skin and this hapen then.If i return Dark Elegant Green everething is n0rmal again
 

Blecky

Member
problem is in table row
skins/parabola/table_row.html

<tr class="lightbg{$alt}">
<td><span class="rank">#{$rank}</span></td>
<td><a href="{$url}" onclick="out(this,'{$username}');" title="{$description}" class="vistip" rel="nofollow" target="_blank">{$title, length=55}</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>

when i change <td><span class="rank">#{$rank}</span></td> to <div><span class="rank">#{$rank}</span></div> or <p> or something other he is normal counting but if a <td> or <th> something is wrong


sry my bad english
 

Basti

Administrator
Staff member
There must be something else going on, that is really strange.
Also make backup of your parabola please, and try a fresh copy without any editing. As your html somehow look really malformed.
Lets see whats happening then
 

Blecky

Member
if i upload fresh copy table_row table_row_premium everething is normal
but skin is default

i make litle change to table premium here it is

<div class="premium_table_top">

<div class="premium_title"><span class="rank">#{$rank}</span><a href="{$url}" onclick="out(this,'{$username}');" title="Click Now To Visit" class="vistip" target="_blank"><b>{$title, length=60}</b></a></div>
<div class="premium_inside_border">
<div class="premium_inside"><a href="{$url}" onclick="out(this,'{$username}');" target="_blank"><img src="{$premium_banner_url}" alt="{$title}" title="{$lng->g_premium_visit}" class="vistip"/></a>

<div class="right premium_badge"><a href="{$list_url}/{$url_helper_a}stats{$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>

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

<center><h2><b><a href="{$list_url}/index.php?a=in&u={$username}">Гласувай за този сайт</a></b></h2></center>

</div>
</div>
</div>
 

Basti

Administrator
Staff member
Ah i see where the issue is. table_row and table_row_premium are files which are called together with table_open and table_close. So it becomes invalid html.
( as you see table_row.html is a table style layout ) and so is table_row_premium.html

so you basicly have now
table > tr > div > table_close = invalid html

Try to wrap your code in table_row_premium with
<tr><td>
your coding
</td></tr>

and see if it fixes it
 

Blecky

Member
I need when someone is premium to look how is now look

premium have table with banner

vote for site and badge and almost everething like first member premium top no mather where he in what place is his site

i try with <td>and<tr> but i cant do this with them
 

Blecky

Member
Ah i see where the issue is. table_row and table_row_premium are files which are called together with table_open and table_close. So it becomes invalid html.
( as you see table_row.html is a table style layout ) and so is table_row_premium.html

so you basicly have now
table > tr > div > table_close = invalid html

Try to wrap your code in table_row_premium with
<tr><td>
your coding
</td></tr>

and see if it fixes it


i can't when i try to change everething is fuc..... mey be i wrong something i em not so best :(
 

Basti

Administrator
Staff member
yes you can, just do it, iam positiv it will fix your issue. it doesnt matter if you put tr and td around your code, the look stays the same. Or leasst it should.

But you NEED the tr and td to have valid html.
Your issue comes because browser these days auto correct coding mistakes. So the browser takes your table_row_premium.hml and puts it before table_open.html ( which is the start of the table and where your file originally comes after ) so it becomes valid on the view.
 

Basti

Administrator
Staff member
ah my bad. its not <tr><td>
its <tr><td colspan="6">
so it spans over the 6 table elements
 

Blecky

Member
<tr><td colspan="6"><div class="premium_table_top">

<div class="premium_title"><span class="rank">#{$rank}</span><a href="{$url}" onclick="out(this,'{$username}');" title="Click Now To Visit" class="vistip" target="_blank"><b>{$title, length=60}</b></a></div>
<div class="premium_inside_border">
<div class="premium_inside"><a href="{$url}" onclick="out(this,'{$username}');" target="_blank"><img src="{$premium_banner_url}" alt="{$title}" title="{$lng->g_premium_visit}" class="vistip"/></a>

<div class="right premium_badge"><a href="{$list_url}/{$url_helper_a}stats{$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>

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

<center><h2><b><a href="{$list_url}/index.php?a=in&u={$username}">Гласувай за този сайт</a></b></h2></center>

</div>
</div>
</div>
</td></tr>


this work only one thing is wrong number not start from begining but its some start:D
 
Top