CopperRank
==========

After installing this plugin using the plugin manager you need to make a to change your profile.php file.

Follow these instructions -

Open profile.php

Find -

        make_form($display_profile_form_param, $form_data);


endtable();
        pagefooter();
        ob_end_flush();
        break;
}

?>


Replace endtable(); with -

echo '<tr>';
echo '<td width="40%" class="tableb graybox" height="25">';
echo 'User Rank';
echo '</td>';
echo '<td class="tableb graybox" >';
$result = cpg_db_query("SELECT COUNT(*) FROM {$CONFIG['TABLE_PICTURES']} WHERE owner_id = $uid ");
list($rank) = mysql_fetch_row($result);

$rank1 = $CONFIG['rank_value1'];
$rank2 = $CONFIG['rank_value2'];
$rank3 = $CONFIG['rank_value3'];
$rank4 = $CONFIG['rank_value4'];
$over =  $CONFIG['rank_value5'];


if ($rank <= $rank1) {
    echo "{$CONFIG['rank1']}";
    echo "{$CONFIG['rank_image1']}";
} elseif ($rank <= $rank2) {
    echo "{$CONFIG['rank2']}";
    echo "{$CONFIG['rank_image2']}";
} elseif ($rank <= $rank3) {
    echo "{$CONFIG['rank3']}";
    echo "{$CONFIG['rank_image3']}";
} elseif ($rank <= $rank4) {
    echo "{$CONFIG['rank4']}";
    echo "{$CONFIG['rank_image4']}";
} elseif ($rank > $over) {
    echo "{$CONFIG['rank5']}";
    echo "{$CONFIG['rank_image5']}";
    
} else {
    echo "No Rank?";
}
echo '</td>';
echo '</tr>';

endtable();
echo '<div align="center">CopperRank by <a href="http://www.mysimtractor.com"> just_some_guy </a></div>';


And thats it finished. Hope CopperRank proves useful to you.

just_some_guy,
