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

Reply
 
Thread Tools
Petz: Give users points. Details »»
Petz: Give users points.
Version: 1.00, by daniely daniely is offline
Developer Last Online: Jan 2007 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-04-2004 Last Update: Never Installs: 7
 
No support by the author.

Yay my first real hack! Er.... addon. Basicly this lets you give points to users via admincp. Okay, installation is simple.

File Edits: 3

First open admincp/user.php

Find:
PHP Code:
        // PROFILE FIELDS SECTION
    
print_table_header($vbphrase['user_profile_fields']);
    
$profilefields $DB_site->query("SELECT * FROM " TABLE_PREFIX "profilefield ORDER by displayorder");
    while (
$profilefield $DB_site->fetch_array($profilefields))
    {
        
print_profilefield_row($profilefield$userfield);
    } 
And add under:
PHP Code:
//Give users points
    
print_table_break(''$INNERTABLEWIDTH);
    
print_table_header("Petz");
    
print_input_row("Points""money"$user['money']);
//Give users points 
Now Find:
PHP Code:
        'options'
And add under:
PHP Code:
        'money' => INT
Finally, find:
PHP Code:
    if ($modifyavatar)
    {
        
define('CP_REDIRECT'"usertools.php?do=avatar&userid=$userid");
    } 
And add above:
PHP Code:
if ( $money ) {
$DB_site->query("UPDATE " TABLE_PREFIX "user SET money = '".$money."' WHERE userid = '".$userid."'");

And your done. Now enjoy the ability to give out points on will.

Show Your Support

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

Comments
  #12  
Old 09-12-2004, 12:00 PM
TTG's Avatar
TTG TTG is offline
 
Join Date: May 2004
Location: Sth London
Posts: 1,042
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TTG
Am I missing something .. installed the new file changes and see nothing extra in AdminCP ... ?
Found it ..

You can change / add credits via the AdminCP > Petz > Bank Accounts > Edit.

Kinda makes this hack superfluous
Reply With Quote
  #13  
Old 09-21-2004, 11:06 PM
daniely daniely is offline
 
Join Date: Dec 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Not quiet that alows you to edit the ammount in the bank account.

This edits the money they have on hand.
Reply With Quote
  #14  
Old 10-02-2004, 03:50 AM
ashley53680 ashley53680 is offline
 
Join Date: Dec 2003
Posts: 124
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

wonderful!!

*install*
Reply With Quote
  #15  
Old 10-03-2004, 02:41 PM
Roms's Avatar
Roms Roms is offline
 
Join Date: Jun 2004
Location: Witness ProtectionProgram
Posts: 1,841
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works great! *clicks install!
Reply With Quote
  #16  
Old 10-15-2004, 08:14 AM
Ber|Art's Avatar
Ber|Art Ber|Art is offline
 
Join Date: Sep 2004
Location: the Netherlands
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, I installed the hack but also receive this error when filling in points in the "Occupation" Petz field, Biography, Location and Interests point fields are going OK?

Quote:
Database error in vBulletin 3.0.3: Invalid SQL: UPDATE user SET money = 'xx' WHERE userid = 'y' mysql error: Unknown column 'money' in 'field list' mysql error number: 1054
__
Reply With Quote
  #17  
Old 10-15-2004, 08:44 PM
daniely daniely is offline
 
Join Date: Dec 2003
Posts: 59
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My guess is a wrong file edit.

Send me your files via PM and I'll look through them.
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 11:53 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.06890 seconds
  • Memory Usage 2,273KB
  • Queries Executed 21 (?)
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
  • (6)bbcode_php
  • (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
  • (1)pagenav_pagelink
  • (7)post_thanks_box
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)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