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 |
#112
|
|||
|
|||
Nope, i cant
i have to hardcode it into my site personally, releasing it will be too hard because everyone will have probs with it |
#113
|
||||
|
||||
Quote:
I can't put text in the point field on the profile though - if I change it back to how it was originally, will it work? And if I can get a store type thing working on my boards, I'll post it here. |
#114
|
||||
|
||||
Quote:
|
#115
|
|||
|
|||
First, great hack, and thanks for sharing.
We have a reward site where points are an actual currency that can be converted to tangible goods so a hack like this made perfect sense for us. We ended up dumping it and writing our own. The reason I'm contacting you is to offer to share the code we've written. Our hack is very specific to our system and wouldn't work to just give it to users (it would take some cleaning up and generalizing and removing our point inserts (into other database tables) etc, but we've added a couple of core features that I think would enhance your hack immeasurably. First, we've put a short segment of php into the include template and then added a few lines to the postbit template and now we have the ability to assign points inline to the posts (save a click). This of course is a time saver and its fairly simple for any user to do. I'm uploading a screenshot with this post so you can understand what I am referring to. This also eliminates the edit to moderator.php and just sends the request straight to points.php which validates the request itself. The add points box you see in the screenshot below only appears to moderators (end users do not see this box). Second, we've created a user on our system called PointFairy and when we add points we have the points.php automatically insert a post into the thread saying that points were added as well as update the pointfairy user's sig to show total points issued to date by the point fairy. You can see an example of this in action at http://forums.primarewards.com/forum....php?forumid=7. Most of the threads there have an automated "pointfairy" message appended to them. You'll notice it updates post/thread counts and the links as well (we didn't make it e-mail because our system triggers an e-mail when points are added anyway, but that wouldn't be a big change either). Once we remove our own database inserts (just dealing with vBulletin field5 and inserting the post, etc.), we've got points.php down to around 40 lines of PHP (this doesn't account for the mass processing that's in the original). Anyway, the point in contacting you is to offer to send our code to you if you want to generalize it, document it, and either merge it with yours or perhaps even use it instead of yours for your next release. If you're interested, contact me at ceo@primainternet.com. I clean it up and make it a hack and post it here myself, but I just don't have the time to come back and support it, so you're welcome to it if you'd like it. Thanks for the inspiration. |
#116
|
||||
|
||||
We haven't released it here yet, but after a million and a half minor revisions we settled on a similiar inline text field that can award the needed points to the specific user. Our only addition to that is a pop up alert that tells you it was successful.
The Point Fairy is a very HOT idea. If your willing to share, then I would deffinitely love to intergrate that into what we're currently using and re-release it here. |
#117
|
|||
|
|||
Thanks for dropping me a line. I sent the code to you, hope it helps
|
#118
|
||||
|
||||
Quote:
But really... once you realize what you need to do, it becomes mind-numbingly simple. Part of the problem with mine is that it's dependent on a whole whack of mini-hacks already added to our forum... and not documented... Plus the code is a real mess. Though I would be interested in seeing what others come up with for this... |
#119
|
|||
|
|||
Im actually having probs making it
I can do the layout and stuff, but i dont know how to get it to actually how to take the points to make something |
#120
|
||||
|
||||
anyway I can make it so I give ITEMS instead of points, for example:
There are 3 fields Misc. Items Armor Weapon Misc. Item example=potion armor example=steel plate weapon=long sword so u can go and edit the users ITEMs instead of points? can someone PLZ make this it would help me and a lot of other members a lot im sure |
#121
|
|||
|
|||
ya that would be cool as #&@$
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|