Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases

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
  #122  
Old 01-21-2002, 02:03 AM
Shaede's Avatar
Shaede Shaede is offline
 
Join Date: Jan 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Edit: Nevermind...I figured it out on my own...thanks. :\
Reply With Quote
  #123  
Old 01-21-2002, 05:30 AM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

is there way to add multiple fields to this?

for example, instead of typing a point score i type in a word

so far I have a weapon field, I want to add Armor and Gil, is there a way to do that?
Reply With Quote
  #124  
Old 01-21-2002, 05:45 AM
Shenlong's Avatar
Shenlong Shenlong is offline
 
Join Date: Nov 2001
Location: Manhattan, New York
Posts: 167
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NM! I got it
Reply With Quote
  #125  
Old 01-22-2002, 04:16 AM
MaineI30 MaineI30 is offline
 
Join Date: Jan 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey guys,

novice here, wondering how you can make it so that "points" is only hyperlinked (under user name in posts) if the thread reader is an admin or moderator... and to everyone else, it's just not clickable...
Reply With Quote
  #126  
Old 01-26-2002, 07:47 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

Simple...

You find the getpostbit function in functions.php

Add a line that checks permissions to see if the person is authorized to give points.

Example - Only admins can

if ($bbuserinfo[usergroupid]==6) {
$points="blahblah"; <-- make that the code with the link
} else {
$points="Points: $post[field5]";
}

I have an even cooler solution working... but I'm keeping that to myself.
Reply With Quote
  #127  
Old 01-26-2002, 08:39 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If anyone would like it, I could release a hack that gives administrators and mods the ability to give users points, but in stead of displaying the points in the user profile, the amount of points would actually decide the usertitle of the user...

I have this implemented on my own site and it works very well... If anyone wants this, let me know, and I'll make a release.
Reply With Quote
  #128  
Old 01-27-2002, 02:14 AM
MaineI30 MaineI30 is offline
 
Join Date: Jan 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Sparkz
If anyone would like it, I could release a hack that gives administrators and mods the ability to give users points, but in stead of displaying the points in the user profile, the amount of points would actually decide the usertitle of the user...

I have this implemented on my own site and it works very well... If anyone wants this, let me know, and I'll make a release.
i'd certainly be interested!
Reply With Quote
  #129  
Old 01-27-2002, 02:39 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by MaineI30


i'd certainly be interested!
Give me a day or two - have a few things I need to sort before I start digging for this code.
Reply With Quote
  #130  
Old 01-31-2002, 12:48 PM
Sparkz's Avatar
Sparkz Sparkz is offline
 
Join Date: Nov 2001
Posts: 544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry for not having released this yet. I have been incredibly busy at work the past week. Will try to get this out during the weekend (which might be difficult, since I have to build my new computer and do some serious gaming )
Reply With Quote
  #131  
Old 01-31-2002, 04:52 PM
monitox's Avatar
monitox monitox is offline
 
Join Date: Nov 2001
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just install it.. Works GREAT ! Thanks !
Reply With Quote
Reply

Thread Tools

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 10:00 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04956 seconds
  • Memory Usage 2,296KB
  • 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
  • (2)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