The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
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 Code:
$DB_site->query("UPDATE user SET posts=posts+1,$dotitle"."lastpost=".time()." WHERE userid=$userid");
}
Code:
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");
}
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?? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
hmm...lol
5. Do not put [REQUEST] in the title of a requested hack. didn't see the word not |
|
#3
|
|||
|
|||
|
=="1" might make a difference?
|
|
#4
|
|||
|
|||
|
nope
|
|
#5
|
|||
|
|||
|
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
|
|
#6
|
|||
|
|||
|
never mind...got it to work
|
|
#7
|
|||
|
|||
|
Can you share, please?
|
|
#8
|
|||
|
|||
|
Quote:
|
![]() |
|
|