MyBB-Plugins Forums

Full Version: [TUT] How to hide method that does not pay at the NewPoints index.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I've installed NewPoints on my forum, but I just wanted people to earn Points for a certain action.
So at the NewPoints homepage, for exemple at "Send a PM", the reward was 0 and I wanted to hide it.

If you are also in this case, open the file newpoints.php (at the index of your forum), and find :

PHP Code:
$income_settings .= '<tr><td valign="middle" align="left"><span style="border-bottom: 1px dashed; cursor: help;" title="'.$setting['description'].'">'.$setting['title'].'</span></td><td valign="middle" align="right">'.$value.'</td></tr>'

Replace it with :

PHP Code:
if ($value!=0)
    {
        
$income_settings .= '<tr><td valign="middle" align="left"><span style="border-bottom: 1px dashed; cursor: help;" title="'.$setting['description'].'">'.$setting['title'].'</span></td><td valign="middle" align="right">'.$value.'</td></tr>';
    } 

Hope it will help someone !
Thank you. that was on my todo list. Much appreciated
Glad to see I ve helped someone Big Grin
Thanks for this, I was looking for this Smile