PDA

View Full Version : Good Points System


AzzKickr
11-23-2002, 02:27 AM
hi i want this hack ---> if user start a thread he has + 10 points if someone reply in his thread +5 if he reply -5 somethig like this...and if he has 0 points he can't reply, and thread-starter can select how many points user need to reply to his thread :cool:
please please please :laugh:

Mathiau
11-23-2002, 05:56 AM
^^^

haha, man i have been looking for this for my works forum - the store hacks has most of it - but i need to know how to stop someone from posting / viewing a therad if they don't have enough points.

ithink it is a modify hack that someon did and never posted it.

Logician
11-23-2002, 09:52 AM
Originally posted by Mathiau
haha, man i have been looking for this for my works forum - the store hacks has most of it - but i need to know how to stop someone from posting / viewing a therad if they don't have enough points.

ithink it is a modify hack that someon did and never posted it.
edit newreply.php, find:


updateuserforum($threadinfo['forumid']);


Before that insert:

if ($bbuserinfo[storep]<X AND $threadinfo[forumid]==Y)
{
eval("standarderror(\"".gettemplate("error_notehoughstoremoney")."\");");
}


Replace X with the min store money your members should have to reply in forum Y. Replace Y with your forumid.

Create a new template named "error_notehoughstoremoney".. It will be displayed if user tried to reply in forum Y with money less than X.

Enjoy..

AzzKickr
11-23-2002, 10:36 AM
thx Logician but how to make what i request?
nake new thread and u got 10 points, answer in thread and u got -5 points?
and thread-starter can select how many points user need to reply to his thread :ninja:
//sorry my bad english :)

N9ne
11-23-2002, 01:01 PM
AzzKickr: Install the store hack, and then apply the modification Logician gave.

AzzKickr
11-23-2002, 01:52 PM
ok i will try later :p

Logician
11-23-2002, 02:13 PM
as a matter of fact my code covers Mathiau's request

Mathiau
11-23-2002, 04:23 PM
^^^
does your code not allow someone to post if they do not have enough points? i didn't think it did - my bad.

also - the points amount is diff for each forums section - any way to admin this in the Admin CP?

So i can say forum 1 u need 10 points to view forum 2 u need 20 points to view etc etc?? how can i set each forum amount of points needed to view it?

Logician
11-23-2002, 04:55 PM
Originally posted by Mathiau
^^^
does your code not allow someone to post if they do not have enough points? i didn't think it did - my bad.

also - the points amount is diff for each forums section - any way to admin this in the Admin CP?

So i can say forum 1 u need 10 points to view forum 2 u need 20 points to view etc etc?? how can i set each forum amount of points needed to view it?
Integrating it into Admin CP is time consuming. But you can use the exact code to add other forums like:

if ($bbuserinfo[storep]<A AND $threadinfo[forumid]==Y)
{ eval("standarderror(\"".gettemplate"error_notehoughstoremoney")."\");");}
if ($bbuserinfo[storep]<B AND $threadinfo[forumid]==Z)
{ eval("standarderror(\"".gettemplate"error_notehoughstoremoney")."\");");}
if ($bbuserinfo[storep]<C AND $threadinfo[forumid]==Q)
{ eval("standarderror(\"".gettemplate"error_notehoughstoremoney")."\");");}

Mathiau
11-26-2002, 06:27 PM
fantastc m8! i shall try this out!!!

AzzKickr
11-26-2002, 06:39 PM
i don't need it anymore :bandit: my russian friend write this hack for me :p
and its awesome!
but he told me to don't give this to anyone :bored: