$query = $db->query("
SELECT a.updatetime, a.md5hash, a.thumbs, a.uploadtime, a.aid, a.attachname, a.filename, a.field, t.*
FROM ".TABLE_PREFIX."xtattachments a
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=a.tid)
WHERE t.visible=1 AND a.field='pfpic' AND t.closed NOT LIKE 'moved|%' AND t.fid IN ('".implode("','", $gallery_tid_array)."')
ORDER BY t.tid DESC
LIMIT 1
");
while($gallery = $db->fetch_array($query))
{
$gallery_username = htmlspecialchars_uni($gallery['username']);
$gallery_title = htmlspecialchars_uni($gallery['subject']);
$gallery_postlink = get_thread_link(intval($gallery['tid']));
$gallery_datetime = my_date($mybb->settings['dateformat'], $gallery['uploadtime']).' '.my_date($mybb->settings['timeformat'], $gallery['uploadtime']);
$gallery_thumb = xthreads_get_xta_url($gallery).'/thumb160x120';
if($gallery['thumbs'])
{
$gallery['thumbs'] = unserialize($gallery['thumbs']);
}
eval("\$gallery_gallery_gallery .= \"".$templates->get("gallery_gallery_gallery")."\";");
}
My images display ok (just like they did before) but the image dimensions are not applied (i.e. when I look in page speed it still says no image dimensions specified). Do I need to change something in the HTML template?