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:
IS there a better solution ?
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 ?