Back to Modification Graveyard

v3Arcade - Add Clear All Scores Button
Mod Version: 1.01, by tcs

This thread is in the Modification Graveyard.
vB Version: 3.5.2 Rating: (0 vote - 0 average) Installs: 9
Released: 01 Jan 2006 Last Update: Never Downloads: 1
Not Supported Code Changes  

This will add a "Clear All Scores" Button in your Arcade admincp under "Scores Tools"

Clicking this button will clear all scores out of your database.

1 php file to edit and only 2 entries to make. (About a minite of your time)

Open the /admincp/arcadeadmin.php file.

then
Back up you database!!!!!!!
No Warrenties or guaentees express or implied.

PHP Code:
Find:
    
print_cp_footer();
}

// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// REMOVE ZERO SCORES
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Add this Above:

    
print_form_header('arcadeadmin''removescores');
    
print_table_header('Remove ALL Scores');
    
print_description_row('Will Remove All Scores from your Database. Cannot be undone');
    
print_submit_row($vbphrase['start'], '');



Find
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
// REMOVE USER SCORES
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

And Add this Above:

// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
// REMOVE ALL SCORES  
// -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-  
if ($_REQUEST['do'] == 'removescores')  


    
print_cp_header($vbphrase['arcade_scores']);  
    
$db->query_write("DELETE FROM " TABLE_PREFIX ."arcade_sessions  
    "
);  
    
$db->query_write("DELETE FROM " TABLE_PREFIX ."arcade_news  
    "
);  

    
$db->query_write("UPDATE " TABLE_PREFIX ."arcade_games SET highscore='0.000'");  
        
$db->query_write("UPDATE " TABLE_PREFIX ."arcade_games SET highscorerid='0'");  

    
// Getting Arcade functions to rebuild the counts.  
    
require_once(DIR '/includes/functions_arcade.php');  
    
build_games();  

    
print_cp_redirect('arcadeadmin.php?do=scores');   

Download

No files for download.

Screenshots

 

Similar Mods

v3Arcade, Scrolling high scores. vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2024