Add Ranking Settings

Hi , How to make or add a custom ranking settings in admin. ?
Instead of daily pageviews in settings, I want to rank it by total page views or this tag {$tot_pv_overall}?
 
Last edited:

Basti

Administrator
Staff member
Are you sure you want to do that? That basicly leaves any new member FAR behind old members.

We will not add a new ranking period setting. Once we add overall as method, but that caused all kind of issues with the code.
So the easiest method, is to simply overwrite the $order_by tag in rankings.php via plugin file rankings_order_by.php

Code:
    // Make ORDER BY clause
    $order_by = "tot_{$ranking_method}_overall DESC";
And then use {$tot_pv_overall} in your table_*.html files
In admin settings rank by this period and pageviews
 
Top