View Full Version : HTML code for value of a specific custom field?
December 14th, 2004, 12:41 AM
Is there any way to input the value of a specific custom field in a template that displays that custom field?
The reason I ask this is because I need the value of one of my custom fields to be in the ALT text of the images.
December 17th, 2004, 02:46 PM
Here's a bump :)
December 17th, 2004, 03:31 PM
Are you trying to do this in showimage.php? If so, open the file and look for:
$thisfield = 'field' . $field['fieldid'];
Right below that, add:
if ($field['fieldid'] == 'X')
$customvariable = $field['value'];
Replace 'X' there with the custom fieldid that you want to use, then add $customvariable into the alt tag for the image.
December 17th, 2004, 03:54 PM
Thanks Brian :)
vBulletin® v3.8.1, Copyright ©2000-2014, Jelsoft Enterprises Ltd.