Back to vBulletin 3.0 Add-Ons

Petz: Give users points.
Mod Version: 1.00, by daniely

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 7
Released: 05 Sep 2004 Last Update: Never Downloads: 1
Not Supported  

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.

Download

No files for download.


vblts.ru supports vBulletin®, 2022-2024