This mod will allow you to update your Ratings & Hits from the control panel without having to do a complete build. 1. Copy nph-build.cgi to the same folder and rename it to nph-build-update.cgi 2. Open nph-build-update.cgi 3. Find: # Either build the whole directory, parts of it, or just the new/popular section. 4. Replace: CODE########################################################################### # Either build the whole directory, parts of it, or just the new/popular section. if ($use_html) { if ($in{'staggered'}) { &build_staggered; } else { &build_all; } } else { &build_all; } CODE########################################################################### with: CODE########################################################################### # Either build the whole directory, parts of it, or just the new/popular section. if ($use_html) { if ($in{'staggered'}) { &build_staggered; } else { if ($in{'update'}) { &build_update; } else { &build_all; } } } else { &build_all; } CODE########################################################################### and add after sub build_all: CODE########################################################################### sub build_update { # -------------------------------------------------------- # Rebuild only the ratings en hits pages. # Determine if we are printing to command line, or to browser. $nph++; &html_print_headers() if ($use_html); my $start = time(); my $date = &get_date; my $time = &get_time; # Print HTML Header $use_html ? print qq|Links Manager: Updating Ratings & Hits

Updating Ratings & Hits

| :
        print qq|Building Pages\n|;
    print "Pages built on " . $date . " at " . $time . "\n";
    print "--------------------------------------------------------\n\n";

# Backup the database.
    print "Backing up database . . .\n";
    &build_backup;
    print "Done.\n\n";

# Rebuild URL Index (This file is auto-generated, you will never need to touch it!  
    print "Building URL Index . . .\n";
    &build_url_index;
    print "Done.\n\n";

# Update New and Popular Records..
    print "Updating New and Popular Records . . .\n";
    &build_update_newpop;
    print "Done.\n\n";

# Update voting information .. 
    print "Updating ratings .. \n";
    &build_update_ratings;
    print "Done.\n\n";

# Load Category Information
    print "Loading Category Information . . .\n";
    &build_category_information;
    print "Done.\n\n";
    
# Generate some stats for future pages...   
    print "Gathering Category and Link information . . .\n";
    &build_stats;
    print "Done\n\n";

# Generate detailed view pages.
    if ($build_detailed) {
        print "Generating detailed view pages . . . \n";
        &build_detailed_view;
        print "Done\n\n";
    }
    
# Create Home Page
#    $use_html ?
#        print qq|Building Home Pages . . .\n| :
#        print qq|Building Home Page . . .\n|;
#    &build_home_page;
#    print "\tDone\n\n";

# Create What's Cool Page
    $use_html ?
        print "Building What's Cool Page . . .\n" :
        print "Building What's Cool Page . . .\n";
    &build_cool_page;
    print "Done\n\n";
    
# Create What's New Page    
#    $use_html ?
#        print "Building What's New Page . . .\n" :
#        print "Building What's New Page . . .\n";
#    &build_new_page;
#    print "Done\n\n";

# Create Top Rated Page
    $use_html ?
        print "Building Top Rated Page . . .\n" :
        print "Building Top Rated . . .\n";
    &build_rate_page;
    print "Done\n\n";
        
# Create Category Pages
#    print "Building Category Pages . . .\n";
#    &build_category_pages;
#    print "Done\n\n";
    
# We are finished!  
    print "Pages Built (", time() - $start, " s)!";
    print "
" if ($use_html); } CODE########################################################################### 5. Open admin_html.cgi 6. Find: CODE########################################################################### Build All
Staggered
Staggered (Auto)
Edit Templates
CODE########################################################################### and add: CODE########################################################################### Update Ratings & Hits
CODE########################################################################### 7. Upload admin_html.cgi and nph-build-update.cgi 8. Enter the control panel and select Update Ratings & Hits to run. That's it! ( Thanks to Andy & Stealth for their input. ) ( Special Thanks to MJB for creating this mod)