januab
Enregistré le 11/03/2002
Messages: 194
Non connecté
|
Ajouté le : 19/05/2002 14:02
Message :
quand vous ete la rajouter direct ceci
//..........Top 5 Posteur..........
//......by Januab for coolforum......
//////// CONFIG EXPLANATION //////////
//
// a] $maxposters > This is the number of posters you want to show.
// b] $hc > The head row color.
// c] $bc1 and $bc2 > These are the first and second alternating color.
// d] $text and $link > Set the colors of the main text and the color of the links. Make sure this color is visible on both alternating colors.
// e] $font > This is the font(s) to use for display. You can set specific fonts (e.g. Verdana, Arial, etc.) or general font-families (e.g. sans-serif, serif).
// f] $fontsize > Set a point size for your font. Size 8 is about equivelant to <font size=1>. Anything below about 6 will basically be undreadable, so be careful.
// g] $url > This is the URL to your board directory. This is not the path to config.php! Do not put a trailing slash, either.
// h] $path > This *is* the path to your config.php file. This should include the /admin part. NO TRAILING SLASH! (May need a leading slash)
//
//
////// END CONFIG EXPLANATION ////////
/////////////// CONFIG ///////////////
//
$maxposters = "5"; // change this to the number of posters you want to show. for a top 10 listing, set it to 10, etc.
$hc = "#0D0066"; // change to head row color.
$bc1 = "#0D0066"; // change to first alternating color.
$bc2 = "#717171"; // change to second alternating color.
$text = "#FFFFFF"; // change to text color.
$link = "#FFFFFF"; // change to link color.
$font = "Verdana,Helvetica,sans-serif"; // change to fonts you want. use serif or sans-serif for general, or use specific fonts names.
$fontsize = "9pt"; // change to font size you want. 8 is about the minimum; go up from there. 1 will not even show up.
$path2 = "profile.php3"; //
//
///////////// END CONFIG /////////////
echo("<center><table border=0 cellpadding=4 cellspacing=0><tr><td align=center" bgcolor="$hc"><b style="color: $text; font-family: $font; font-size: $fontsize"><i>TOP 5</i></b></td><td align="center" bgcolor="$hc"><b style="color: $text; font-family: $font; font-size: $fontsize"><i>POSTEUR:</i></b></td></tr>");
$postsresult = mysql_query("SELECT login ,usermsg ,userid FROM CF_user $exn ORDER BY usermsg desc LIMIT 0,$maxposters") or die("Unable to complete query");
while ($topposters = mysql_fetch_array($postsresult)):
if (($counter++ % 2) != 0) {
$bc=$bc1;
} else {
$bc=$bc2;
}
echo("<tr><td align=center" bgcolor="$bc" style="color: $text; font-family: $font; font-size: $fontsize"><a href="$path2?p=pm&action=writemsg&idexp=$topposters[userid]" style="color: $link">$topposters[login]</a></td><td align="center" bgcolor="$bc" style="color: $text; font-family: $font; font-size: $fontsize">$topposters[usermsg]</td></tr>");
endwhile;
echo("</table>");
|