PDA

View Full Version : a "credit" system


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??

03-17-2001, 09:52 PM
hmm...lol
5. Do not put [REQUEST] in the title of a requested hack.

didn't see the word not

03-17-2001, 09:59 PM
=="1" might make a difference?

03-17-2001, 10:05 PM
nope

03-17-2001, 10:14 PM
p.s. you do know that so far this will only work for "new threads" and not just posts. If you want it to work for posts in general you need to make the same modifcation to reply.php

03-18-2001, 09:50 AM
never mind...got it to work :)

03-18-2001, 03:13 PM
Can you share, please? :D

03-18-2001, 06:11 PM
Originally posted by tubedogg
Can you share, please? :D
LOLOLOLOLOLOLOL :D :D :D