The Arcive of vBulletin Modifications Site. |
|
Need help, doubt it'd be too hard Details »»
|
|||||||||||||||||||||||||
What i've done is i'm using Shinra's posting points hack and I've been wanting a hack so when you go into a thread in a specific forum it deducts points.
So what i've done is i've edited this hack... https://vborg.vbsupport.ru/showthrea...threadid=33253 but edited the post references to points instead and I've got that working. So now if I set in the admin CP to get into the off topic for example you need a minimum of 100 points, otherwise it'll show the error template saying you need at least 100 points to get in. That works fine, I just need the code so instead of you needing the 100 points to getinto the forum...it deducts the 100 points instead. I don't think it'd be that hard for you guys to figure it out, but I couldn't think of what to do for this part, so any help would be great. Thanks Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
Just add this line where you want 100 points to be removed:
$DB_site->query("UPDATE userfield SET fieldx=fieldx-100 WHERE userid='$bbuserinfo[userid]'"); Replace x (which occurs twice) with the custom profile field number of your points. |
![]() |
|
|