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 |
#42
|
||||
|
||||
Crinos - do what we do and put something funny in its place.
For example one of our staff has his say - 1,000,000 pesos. Of course they can always change that but as staff - you should trust them. =) squawell - that has to do with the hack ... you probably dont have the semi colon at the end of line 19. |
#43
|
||||
|
||||
Hmm, well, is there any way to "hide" user points for a specific usergroup? Both in the postbit and getinfo? Thanks
|
#44
|
||||
|
||||
I think thats possible but I dont know if I have time to check it out ... maybe next week sometime.
|
#45
|
||||
|
||||
Kewl! I'll be waiting eagerly then ... Thanks!
|
#46
|
||||
|
||||
Umm... don't expect me to actually conde anything at the moment...
But the way I'm seeing... Make a new template... call it postbit_points It consists of one line... The line you use to display (and link) points normally in postbit. Replace the part in postbit with $points In the showthread part of functions.php Stick this in... eval("\$points = \"".gettemplate("postbit_points")."\";"); Stick that Eval inside an IF clause that checks $post[usergroupid] That way people who belong to certain groups won't display Points at all. Or if you want to hide EVERYONES points from certain usergroups, use $bbuserinfo[usergroupid] instead. As for getinfo... I really don't know atm... |
#47
|
|||
|
|||
Please could you explain how to set it up so that only 1 or 2 users could edit the points but everyone else could view them?
Thanks alot in advance, Tryfwar |
#48
|
||||
|
||||
Read the thread. It tells you where to change the permissions.
|
#49
|
|||
|
|||
I created a new template called: postbit_points
added the following line: <a href="moderator.php?s=$session[sessionhash]&action=points&userid=$userinfo[userid]" target=_blank>ELP:</a> $post[field5] removed that line from postbits and replaced it with $points edited functions.php and added this to the Start buildpostbit section: (wasn't too sure where exactly to do this as i couldn't find a IF $post[usergroupid]) eval("\$points = \"".gettemplate("postbit_points")."\";"); I then uploaded the new functions.php. anyway, i can't seem to work out exactly where i should place this line Any hints? Thanks |
#50
|
|||
|
|||
HOw do i make it so that admins/mods, may add text, not just #s in the field?
THanks And thanks again for the wonderful hack!! |
#51
|
||||
|
||||
i have a problem with this code:
IF YOU ARE USING VB 2.2.0 Find: ===================== makenavoption("Build Mailing List","email.php?action=genlist"); ===================== Replace with: ===================== makenavoption("Build Mailing List","email.php?action=genlist","<br>"); makenavoption("Points","../mod/points.php?s=<?php echo $session[sessionhash]; ?>&action=masspoints"); ===================== but in my admin panel it can't work why?? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|