View Full Version : Points for posts and reffering new members - system
Fking
03-23-2003, 08:40 AM
I want to give points to my members
e.g. 1 point for 1 post and 5 points for referred member.
And when they reach some count, I'll give them prizes
I made a little search but I didn't find exactly that, sorry if I'm asking for something already well-known.
Thanks.
Fking
03-26-2003, 04:57 PM
Eho?
I would recommend the Store hack by Lesane or any of the "points" hacks which should be able to easily customize the points given for new posts/newthreads/replies/referrals/etc.
Fking
03-26-2003, 06:20 PM
Today at 07:13 PM Rose said this in Post #3 (https://vborg.vbsupport.ru/showthread.php?postid=373672#post373672)
I would recommend the Store hack by Lesane or any of the "points" hacks which should be able to easily customize the points given for new posts/newthreads/replies/referrals/etc.
Where to find it?
g-force2k2
03-26-2003, 06:32 PM
Fking open register.php find:
if (!$testreferrerid=$DB_site->query_first("SELECT userid FROM user WHERE username = '".addslashes($referrername)."'")) {
eval("standarderror(\"".gettemplate("error_badreferrer")."\");");
exit;
}
under it add:
else {
$DB_site->query( "UPDATE user SET points=points+5 WHERE userid='$testreferrerid[userid]'" );
}
the open both newreply.php and newthread.php and find:
$dotitle"."lastpost='".time()."' WHERE userid='$bbuserinfo[userid]'");
and replace with:
$dotitle"."lastpost='".time()."',points=points+1 WHERE userid='$bbuserinfo[userid]'");
then run the query:
ALTER TABLE user ADD points int(5) unsigned NOT NULL DEFAULT '0'
you can then add to the postbit template $post[points] to show points and to the getinfo template $userinfo[points]...
hope that helps some...
regards...
g-force2k2
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.