Quote:
Originally Posted by blake247
Is there anyway to make the profile pics smaller?
|
yes you can add in width and height to the img code example like below:
Code:
$output_bits .= '<a href="member.php?u='.$newuser[userid].'"><img src="image.php?u='.$newuser[userid].'&dateline='.$newuser[dateline].'" alt="'.$newuser[username].' width="50px" height="50px""/><br />'.$newuser[username].'</a><br />';
Quote:
Originally Posted by cykelmyggen
I get a database error on content.php every time I put this widget on!?
Code:
Database error in vBulletin 4.0.1:
Invalid SQL:
SELECT user.userid AS userid, user.username AS username,
customprofilepic.dateline AS dateline FROM vbcustomprofilepic
LEFT JOIN vbuser
ON vbcustomprofilepic.userid=vbuser.userid
WHERE customprofilepic.visible = 1
ORDER BY RAND()
LIMIT 3;
MySQL Error : Unknown column 'user.userid' in 'field list'
Error Number : 1054
|
hurmm that's weird, please try this code instead
Code:
$member_count = 3;
ob_start();
require_once('./includes/functions_user.php');
require_once('./includes/functions_bigthree.php');
// Get Random Members
$newusers_get = vB::$db->query_read("
SELECT ".TABLE_PREFIX."user.userid AS userid, ".TABLE_PREFIX."user.username AS username, ".TABLE_PREFIX."customprofilepic.dateline AS dateline FROM ".TABLE_PREFIX."customprofilepic
LEFT JOIN ".TABLE_PREFIX."user
ON ".TABLE_PREFIX."customprofilepic.userid=".TABLE_PREFIX."user.userid
WHERE customprofilepic.visible = 1
ORDER BY RAND()
LIMIT $member_count");
$output_bits = '<p align="center"';
while($newuser = vB::$db->fetch_array($newusers_get))
{
$output_bits .= '<a href="member.php?u='.$newuser[userid].'"><img src="image.php?u='.$newuser[userid].'&dateline='.$newuser[dateline].'&type=profile" alt="'.$newuser[username].'"/><br />'.$newuser[username].'</a><br />';
}
$output_bits .= '</p>';
$output = $output_bits;
ob_end_clean();