![]() |
Need help, doubt it'd be too hard
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 |
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. |
All times are GMT. The time now is 07:32 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|