Taragon
06-22-2009, 09:59 PM
Hello,
I currently have this plugin hooked to threadbit_display, but it seems to be causing one extra query per thread.
Does someone know how to avoid this perhaps?
Also, because this plugin is a mixture of several readmes, could you tell if this plugin is optimized using the 3.8.x standards?
require_once('./includes/functions_user.php');
$userid = $thread['postuserid'];
$username = $thread['postusername'];
$avatarurl = fetch_avatar_url($userid);
if ($avatarurl == '') {
$avatar = "<a class='' href='member.php?u=$userid'><img src='$stylevar[imgdir_misc]/noavatar.gif' /></a>";
}
else {
$avatar = "<a class='' href='member.php?u=$userid'><img src='$avatarurl[0]' /></a>";
}
I currently have this plugin hooked to threadbit_display, but it seems to be causing one extra query per thread.
Does someone know how to avoid this perhaps?
Also, because this plugin is a mixture of several readmes, could you tell if this plugin is optimized using the 3.8.x standards?
require_once('./includes/functions_user.php');
$userid = $thread['postuserid'];
$username = $thread['postusername'];
$avatarurl = fetch_avatar_url($userid);
if ($avatarurl == '') {
$avatar = "<a class='' href='member.php?u=$userid'><img src='$stylevar[imgdir_misc]/noavatar.gif' /></a>";
}
else {
$avatar = "<a class='' href='member.php?u=$userid'><img src='$avatarurl[0]' /></a>";
}