Offline Ranking

Morus

www.votezone.eu , www.privateserversranking.com
Hi guys,

On my Ranking website I have an option showing if added server is online or offline. Just wondering if I can add seperate ranking showing only Servers that are online and/or offline. This should be located in Sub Menu below All Servers. I assume it will be a plugin. Any advice that I can start work on? Should that plugin be similar to Premium Members plugin I have?
http://www.l2.votezone.eu/
Below links to examples:
Online Server: http://www.l2.votezone.eu/?a=stats&u=Lineage2Network
Offline Server: http://www.l2.votezone.eu/?a=stats&u=L2PokerStar

Thanks
 

Mark

Administrator
Staff member
This could be a bit tricky, most likely your offline/online check is only done in stats.php not rankings.php (would be very slow in rankings). I would need to see the code used in that plugin to be able to offer any guidance.
 

Mark

Administrator
Staff member
it will be a fair sized task to do this, basically you need to add a new database field to store the last offline/online check (made in stats page) in the VL_sites table. Then create a plugin for rankings.php so you can use the value from this new field to filter out the offline members. Note though that this might not work so well if a users stats page is not visited often.​
Doing the online/offline check in the rankings loop is another possibility but this is probably unrealiable and very slow resulting in many open connections everytime your ranking pages are loaded... yeah, wouldnt even other with this method.​
 
Top