Top 10 Users Overall Widget - Printable Version +- MN Forum (http://forum.mn-shop.com) +-- Forum: Products (http://forum.mn-shop.com/forum-products.html) +--- Forum: Mods & Customisations (http://forum.mn-shop.com/forum-mods-customisations.html) +---- Forum: Free modules (http://forum.mn-shop.com/forum-free-modules.html) +---- Thread: Top 10 Users Overall Widget (/thread-top-10-users-overall-widget.html) Pages:
1
2
|
Top 10 Users Overall Widget - Preston - 05-27-2013 Someone requested this [IMG]Hidden content for guests[/IMG] So I attempted to create it the best I could..... I ran into trouble when it came to column spacing with the user names so I used table-layout:fixed since it seem to give a temporary fix until someone decides to build off this little release. This code is based off the Top 3 Active users code and I only take credit for the few edits I added. Code: Hidden content for guests If you run into any problems with the code above please let me know. I will not fix formatting issues, only errors. RE: Top 10 Users Overall Widget - achip - 05-28-2013 its good thank you for sharing RE: Top 10 Users Overall Widget - Ghost - 05-28-2013 (05-27-2013, 09:55 AM)Preston Wrote: Hidden content for guests Hello preston, I solved everything - I changed a little the code and I entered the right style, the style is obviously linked to my site .. If you have problems with the css contact me, also as well as the code you have posted to me did not work, I had to edit .. RE: Top 10 Users Overall Widget - umutacar - 05-29-2013 Please note that this code is to modify the folder or file name of the author of php Are RE: Top 10 Users Overall Widget - zerounu - 07-31-2013 I have removed the Today Clicks table from the block and adjusted the size of the rows data. <? $sql = $db->Query("SELECT a.uid, SUM(a.total_clicks) AS total, b.login FROM user_clicks a LEFT JOIN users b ON b.id = a.uid GROUP BY a.uid ORDER BY total DESC LIMIT 10"); if($db->GetNumRows($sql) >= 10){ ?> <div class="home_top"> <table class="table" style="table-layout:5;60;10"> <thead> <tr><td colspan="3">Top 10 Members</td></tr> </thead> <tbody> <tr><td><center>Rank</center></td><td><center>Member</center></td><td><center>Clicks</center></td></tr> <? $j = 0; foreach($db->FetchArrayAll($sql) as $top){ $j++; echo '<tr><td><center>'.$j.'</center></td><td style="overflow:hidden;"><center>'.$top['login'].'</center></td><td><center>'.$top['total'].'</center></td></tr>'; } ?> </tbody> </table> </div> <?}?> RE: Top 10 Users Overall Widget - v1ppers0nn - 02-11-2015 Can anyone say me where put this code? RE: Top 10 Users Overall Widget - sultime - 02-11-2015 This code must be placed in the header.php RE: Top 10 Users Overall Widget - v1ppers0nn - 02-12-2015 I place them but nothing happening... RE: Top 10 Users Overall Widget - seramuca - 06-18-2015 Hi, anyone knows how to make the table only leaves 10 who have more clicked and not to leave the total. a greeting * Sorry for my English RE: Top 10 Users Overall Widget - seramuca - 06-22-2015 Can someone help me out? |