The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
UPDATE: Code tested on both 2.0.3 and 2.2.0
Install instructions updated to reflect differences in versions. Ability to specify Text values for points directly added. ===================== As requested in this thread ( http://vbulletin.org/forum/showthrea...threadid=23114 ) This hack includes a small script and instructions on how to install and set up the system. Purpose: Just a simple engine that allows mods and admins to award arbitrary points to users, which will be displayed under their names/avatars. The points can be named anything you wish, and represent anything you choose. You can use the script to add or subtract them. As the script utilizes a Custom Profile Field, the point field can be directly edited in the CP when editing a user, allowing you to place text in the field rather than merely a number. On our forum, the points are called Gil and represent our virtual currency It is used to purchase perks like Custom Titles and avatars. Our staff, having no use for Gil, instead like to have snappy quotes in the field, like "I send greetings of death!!!" (Reno) and "Who needs Gil when you have power?" (Sephiroth) Show Your Support
|
Comments |
#22
|
|||
|
|||
yes, i'm sure it is put into the /mod/ folder, that's why i think it's straight that mod. can't give out points
when the mod. go to /mod/points.php when they log off, the vB ask them to login first, then the /mod/points.php shows a blank page, but when they click the give out points link in the left column of the message, they got the "no permission" error |
#23
|
|||
|
|||
makenavoption("Points","../mod/points.php?s=<?php echo $session[sessionhash]; ?>&action=masspoints");
Do you have that code in the correct place, when I installed it for the first time, I did not set the correct URL destination and everything went wrong. If your URL is not like th above (this is guessing you haev 2.2.0) then that may be why it is not working. Other from that I can not be too sure what is wonrg unless you have not added something or have changed something that was not supposed to be changed. |
#24
|
|||
|
|||
yup, i'm using 2.2.0 and i've done that in the mod. and admin panel, but still the same, only admin can add the points, the mod. only got the message "Do this again." after I click submit botton and the points have not been added.
|
#25
|
|||
|
|||
Palmer, a little help over here please? - I am not sure what is the problem
|
#26
|
|||
|
|||
I had a problem with mine where only myself and supermods could give out points. That's because the default permissions check checks to see if they can see full user info. If your mods can't see full user info, they won't have permission. I changed that around to check for some other permission. :P
|
#27
|
|||
|
|||
yup, now i know admin and super mod. can give points without problems, but mod. can't, any idea on how to set the permission right, so all the mod. can give points? thanks a lot!
|
#28
|
||||
|
||||
For NO PERMISSION problems, try this...
In MODERATOR.PHP Change if ($permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid] AND canviewprofile=1")) INTO if ($permissions[ismoderator] or $ismod=$DB_site->query_first("SELECT * FROM moderator WHERE userid=$bbuserinfo[userid]")) (In short, remove the "AND canviewprofile=1") And calling the script directly as just mod/points.php Won't work. It needs the ?action=points as well as the other info in the URL to function. |
#29
|
|||
|
|||
Palmer, thanks very much, it works perfectly now
|
#30
|
||||
|
||||
Thanks for this great Hack Palmer, one question: What to do if i only want that admins can give points?
|
#31
|
||||
|
||||
Is it also possible to give everyone, as default, 0?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|