Hello There, Guest! › Register

MySubscriptions 2.2 released.
Looking for a custom plugin for your site? Ask here for a quote.

[TUT] How to hide method that does not pay at the NewPoints index.
#1

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 !
#2

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

Glad to see I ve helped someone Big Grin
#4

Thanks for this, I was looking for this Smile




Users browsing this thread: 1 Guest(s)