Quote:
Originally Posted by tpearl5
- thread title in mkio_threadimg
|
To do this I modified the query a bit to get the title:
PHP Code:
$qh = $vbulletin->db->query_read("
SELECT p.postid,p.threadid,p.title,p.parentid,p.pagetext,a.contentid,a.attachmentid,a.filedataid,a.filename,fd.extension,fd.dateline
FROM ".TABLE_PREFIX."post AS p
LEFT JOIN ".TABLE_PREFIX."attachment AS a ON (p.postid=a.contentid)
LEFT JOIN ".TABLE_PREFIX."filedata as fd ON a.filedataid=fd.filedataid
WHERE p.threadid='".$threadId."'");
while($row = $vbulletin->db->fetch_array($qh))
{
if($row['parentid'] == 0)
{
$title = $row['title'];
}
then changed the navbit to
PHP Code:
$navbits = construct_navbits(array('' => "Images posted in $title"));