Hey all! I'm a newbie but I fixed this picture title problem. To show the picture title of an image you will have to change a few lines in the file product-afm.xml. This is what I did:
open the file product-afm.xml in a text editor and find this:
Code:
$lpictures = $db->query("
SELECT albumpicture.*, album.*, user.username, user.usergroupid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "albumpicture AS albumpicture
LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.albumid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
WHERE album.state = 'public'
$sorgu
");
if ($db->num_rows($lpictures))
{
while ($lpicture = $db->fetch_array($lpictures))
{
$lpicture['musername'] = fetch_musername($lpicture);
$lpicture['title'] = trim(strip_quotes($lpicture['title']));
eval('$resimler .= "' . fetch_template('afm_picture') . '";');
}
switch ($vbulletin->options['afm_yer'])
and replace it with this:
Code:
$lpictures = $db->query("
SELECT albumpicture.*, album.*, picture.caption, user.username, user.usergroupid,
IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
FROM " . TABLE_PREFIX . "albumpicture AS albumpicture
LEFT JOIN " . TABLE_PREFIX . "album AS album ON(album.albumid = albumpicture.albumid)
LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = album.userid)
LEFT JOIN " . TABLE_PREFIX . "picture AS picture ON(picture.pictureid = albumpicture.pictureid)
WHERE album.state = 'public'
$sorgu
");
if ($db->num_rows($lpictures))
{
while ($lpicture = $db->fetch_array($lpictures))
{
$lpicture['musername'] = fetch_musername($lpicture);
$lpicture['title'] = trim(strip_quotes($lpicture['title']));
$lpicture['caption'] = trim(strip_quotes($lpicture['caption']));
eval('$resimler .= "' . fetch_template('afm_picture') . '";');
}
switch ($vbulletin->options['afm_yer'])
Then upload / update the addon.
Then you must change the template "afm_picture". Use this variable wherever you want the title of the picture to be displayed:
It works for me! DEMO:
Sims 3 Forum
Hope it helps!