G0D
03-17-2001, 08:17 PM
I want that the users on my board get more credit(posts) if they post in forumid1
I think I have to change this code:
vbb 1.1.6 newthread.php3 at line line 178
$DB_site->query("UPDATE user SET posts=posts+1,$dotitle"."lastpost=".time()." WHERE userid=$userid");
}
and replaced it with:
if ($forumid==1) {
$DB_site->query("UPDATE user SET posts=posts+2,$dotitle"."lastpost=".time()." WHERE userid=$userid");
} else {
$DB_site->query("UPDATE user SET posts=posts+1,$dotitle"."lastpost=".time()." WHERE userid=$userid");
}
This doesn't work however...
I think if the problems is: if ($forumid==1) {
What should be the correct if statement??
I'm I even close in making such a "credit" system?? or i'm I completly in the wrong php file??
I think I have to change this code:
vbb 1.1.6 newthread.php3 at line line 178
$DB_site->query("UPDATE user SET posts=posts+1,$dotitle"."lastpost=".time()." WHERE userid=$userid");
}
and replaced it with:
if ($forumid==1) {
$DB_site->query("UPDATE user SET posts=posts+2,$dotitle"."lastpost=".time()." WHERE userid=$userid");
} else {
$DB_site->query("UPDATE user SET posts=posts+1,$dotitle"."lastpost=".time()." WHERE userid=$userid");
}
This doesn't work however...
I think if the problems is: if ($forumid==1) {
What should be the correct if statement??
I'm I even close in making such a "credit" system?? or i'm I completly in the wrong php file??