D
DuckMan
Alguien sabe cual es el archivo en cuestion q se encarga de conectar a la db en vbulletin? o no existe ? no creo q se les haya escapado ese detalle...
<?php
// ######################### 5 USUARIOS MAS ACTIVOS #########################
$bd_servidor = "IP";
$bd_usuario = "USUARIO";
$bd_clave = "CLAVE";
$bd_nombre = "BASE";
$link = mysql_connect($bd_servidor,$bd_usuario,$bd_clave);
mysql_select_db($bd_nombre,$link);
$topposter = $DB_site->query_first('SELECT username, posts, userid FROM ' . TABLE_PREFIX . 'user ORDER BY posts DESC LIMIT 5');
$topposter['posts'] = number_format($topposter['posts']);
$sql = "SELECT username, posts, userid FROM ' . TABLE_PREFIX . 'user ORDER BY posts DESC LIMIT 0,5";
$result = mysql_query($sql);
?>
<table cellpadding="5" align="center" border="0" cellpadding="0" bordercolor="#4B8DF1" bgcolor="#E3F0FB" width="90%">
<tr>
<td width="292" height="16"><FONT SIZE=2><b>Usuario</b></FONT></td>
<td width="292" height="16"><FONT SIZE=2><b>Posts</b></FONT></td>
</tr>
<?php
while(list($username, $posts, $userid) = mysql_fetch_array($result));
{
echo "
<tr>
<td width=\"292\" height=\"16\"><FONT SIZE=2><b>$username</b></FONT></td>
<td width=\"292\" height=\"16\"><FONT SIZE=2><b>$posts</b></FONT></td>
</tr>";
}
?>
</table>
<?php
// ######################### 5 USUARIOS MAS ACTIVOS #########################
$topposter = $DB_site->query_first('SELECT username, posts, userid FROM ' . TABLE_PREFIX . 'user ORDER BY posts DESC LIMIT 5');
$topposter['posts'] = number_format($topposter['posts']);
$sql = "SELECT username, posts, userid FROM ' . TABLE_PREFIX . 'user ORDER BY posts DESC LIMIT 0,5";
$result = mysql_query($sql);
?>
<table cellpadding="5" align="center" border="0" cellpadding="0" bordercolor="#4B8DF1" bgcolor="#E3F0FB" width="90%">
<tr>
<td width="292" height="16"><FONT SIZE=2><b>Usuario</b></FONT></td>
<td width="292" height="16"><FONT SIZE=2><b>Posts</b></FONT></td>
</tr>
<?php
while(list($username, $posts, $userid) = mysql_fetch_array($result));
{
echo "
<tr>
<td width=\"292\" height=\"16\"><FONT SIZE=2><b>$username</b></FONT></td>
<td width=\"292\" height=\"16\"><FONT SIZE=2><b>$posts</b></FONT></td>
</tr>";
}
?>
</table>
<?php
// ######################### 5 USUARIOS MAS ACTIVOS #########################
$sql = "SELECT username, posts, userid FROM ' . TABLE_PREFIX . 'user ORDER BY posts DESC LIMIT 0,5";
$result = mysql_query($sql);
?>
<table cellpadding="5" align="center" border="0" cellpadding="0" bordercolor="#4B8DF1" bgcolor="#E3F0FB" width="90%">
<tr>
<td width="292" height="16"><FONT SIZE=2><b>Usuario</b></FONT></td>
<td width="292" height="16"><FONT SIZE=2><b>Posts</b></FONT></td>
</tr>
<?php
while(list($username, $posts, $userid) = $DB_site->mysql_fetch_array($result)
{
echo "
<tr>
<td width=\"292\" height=\"16\"><FONT SIZE=2><b>$username</b></FONT></td>
<td width=\"292\" height=\"16\"><FONT SIZE=2><b>$posts</b></FONT></td>
</tr>";
}
?>
</table>
while(list($username, $posts, $userid) = $DB_site->mysql_fetch_array($result)
while(list($username, $posts, $userid) = $DB_site->mysql_fetch_array($result))