Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by Palmer ofShinra Palmer ofShinra is offline
Developer Last Online: Feb 2004 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 11-02-2001 Last Update: Never Installs: 143
 
No support by the author.

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

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #112  
Old 01-13-2002, 12:42 AM
Dalius Dalius is offline
 
Join Date: Oct 2001
Location: Canada!
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #113  
Old 01-13-2002, 03:40 AM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Dalius
Problem:

When entering text into box, it says it got submited, but it doesnt change

i did reeve's 0 defult thing, could that have messed it since i made it int?
I did the default thing and mine works fine

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.
Reply With Quote
  #114  
Old 01-18-2002, 01:17 AM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Dalius
Problem:

When entering text into box, it says it got submited, but it doesnt change

i did reeve's 0 defult thing, could that have messed it since i made it int?
Yes, if you change the field to an integer format then it cannot accept the text values your placing into it.
Reply With Quote
  #115  
Old 01-20-2002, 07:26 AM
sahammondsr sahammondsr is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #116  
Old 01-20-2002, 04:41 PM
Reeve of shinra's Avatar
Reeve of shinra Reeve of shinra is offline
 
Join Date: Oct 2001
Location: NYC
Posts: 1,896
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #117  
Old 01-20-2002, 05:05 PM
sahammondsr sahammondsr is offline
 
Join Date: Jan 2002
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for dropping me a line. I sent the code to you, hope it helps
Reply With Quote
  #118  
Old 01-20-2002, 06:14 PM
Palmer ofShinra's Avatar
Palmer ofShinra Palmer ofShinra is offline
 
Join Date: Oct 2001
Location: Vancouver, BC, Canada
Posts: 171
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Dalius
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
And that's exactly why I'm not releasing mine either...

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...
Reply With Quote
  #119  
Old 01-20-2002, 10:43 PM
Dalius Dalius is offline
 
Join Date: Oct 2001
Location: Canada!
Posts: 255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #120  
Old 01-21-2002, 12:22 AM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #121  
Old 01-21-2002, 01:26 AM
Psychdrone Psychdrone is offline
 
Join Date: Nov 2001
Posts: 525
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ya that would be cool as #&@$
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:25 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
  • Page Generation 0.04731 seconds
  • Memory Usage 2,312KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete