MyBB-Plugins Forums
[TUT] How to hide method that does not pay at the NewPoints index. - Printable Version

+- MyBB-Plugins Forums (http://forums.mybb-plugins.com)
+-- Forum: Archived Forums (http://forums.mybb-plugins.com/Forum-Archived-Forums)
+--- Forum: MyBB 1.6.x (http://forums.mybb-plugins.com/Forum-MyBB-1-6-x)
+---- Forum: NewPoints (http://forums.mybb-plugins.com/Forum-NewPoints)
+---- Thread: [TUT] How to hide method that does not pay at the NewPoints index. (/Thread-TUT-How-to-hide-method-that-does-not-pay-at-the-NewPoints-index)



[TUT] How to hide method that does not pay at the NewPoints index. - jeanpaul002 - 02-09-2012

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 !


RE: [TUT] How to hide method that does not pay at the NewPoints index. - tfadmin - 02-09-2012

Thank you. that was on my todo list. Much appreciated


RE: [TUT] How to hide method that does not pay at the NewPoints index. - jeanpaul002 - 02-09-2012

Glad to see I ve helped someone Big Grin


RE: [TUT] How to hide method that does not pay at the NewPoints index. - alvarorojas4 - 06-17-2014

Thanks for this, I was looking for this Smile