Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[REQ] Member of the month for 2.08+!
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

Unknown User
2013-02-19 09:47:05
GREAT addition thanks

My member of the month is only for class =< 3

so I order for upper class not to see the points / not display in logon-block and in account-details.php I solved it like this:

in login_block.php

find:

    print ("<center><img width='80' height='80' src='$avatar' alt='' /></center><br />". T_("DOWNLOADED") . ": $userdownloaded<br />" . T_("UPLOADED") . ": $useruploaded<br />".T_("CLASS").": ".T_($CURUSER["level"])."<br />" . T_("ACCOUNT_PRIVACY_LVL") . ": $privacylevel<br />". T_("RATIO") .": $userratio<br />" . T_("TIME_LOGGED") . ": $loggedin<br />".T_("SEEDBONUS").": ".T_($CURUSER["seedbonus"]). "<br />");
add after:


if ($CURUSER["class"] <= 3) {print (" " . T_("MoM Pts.") . ": $motm_current<br /> ");} 







in account-details.php

find something like:



<?php echo T_("RATIO"); ?>: <?php echo $ratio?><br />



or where ever you want to display it and add:



<?php if ($CURUSER["class"] <= 3) { ?>Current Member of the Month Points:<?php echo $motm_current?><?php } ?><br />



IS there a better solution ?
Unknown User
2013-02-19 14:10:51
tech in account-details points should be view-able to staff no matter if they above level 3...

in the login_block 1 could use



       if ($CURUSER["class"]<=$site_config['maxmotm']) {

   $motm_current_query = @mysql_fetch_row(@SQL_Query_exec("SELECT motm.points FROM motm WHERE month = " . date("m") . " && year = " . date("y") . " && id = ".$CURUSER["id"]));

   $motm_current =  number_format(0+$motm_current_query[0],1);

   print ("<br />Current Member of the Month Points: ".$motm_current);

       }    

to do away with the query and all if under maxmotm class.. I dont like hardcoding classes into pages incase down the road change and/or add classes..
Unknown User
2013-02-20 12:12:51
GREAT !

THANKS!
Unknown User
2015-01-06 01:38:05
It does not work when you go from one year to another, ie December to January
2015-01-06 13:04:56
What happens then, you get an error message or what.......????  :blink:
Unknown User
2015-01-07 05:04:07
Happens that do not choose any Member of the Month until the next month,  So no members of December are selected.

I think it's because the mod take as a member of the month the winner of the previous month, then when January comes there is no winner
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728