View Full Version : {file[title]} not working in ALT tag
123vid
04-14-2006, 02:45 PM
{file[title]} seems not to be working in the alt tags of images. I am puzzled by this because it seems to be working everywhere else. Hover you mouse over this image, the alt text reads {file[title]}
broken altl (http://www.joking.ws/file/30-get-me-some-water.html)
Any ideas?
This is a simple issue that I'll be fixing. There is a few small bugs that will need to be fixed and will be mainly an easy upgrade likely without any template modifications.
123vid
04-14-2006, 06:20 PM
I fixed it :D
Great, I'm assuming you just looked at the file.php file and added another similar line?
123vid
04-15-2006, 12:56 PM
Yes, Sure did.
hoangism
06-12-2006, 04:40 AM
So how would I go about fixing this myself? Details please. :D
Nevermind, I hired my neighbor down the street to fix it for me.
Stanley Kan says, "Make sure your file.php file looks like this and add the RED line."
// ##### GET file TEMPLATE BASED ON EXTENSION #####
$code = str_replace ('{file[filename]}', $file['filename'], stripslashes($file['code']));
$code = str_replace ('{file[extension]}', $file['extension'], $code);
$code = str_replace ('{file[title]}', $file['title'], $code);
$code = str_replace ('{humor_software[video_width]}', $initialize->settings['video_width'], $code);
$code = str_replace ('{humor_software[video_height]}', $initialize->settings['video_height'], $code);
vBulletin® v3.6.8, Copyright ©2000-2010, Jelsoft Enterprises Ltd.