Support > cpg1.5 themes (visuals)
Template modifications - add some EXIF data near the intermediate image
wuschel_lux:
--- Quote from: Αndré on March 12, 2010, 09:27:42 am ---You have to include include/exif_php.inc.php.
--- End quote ---
when including I get this new error:
Fatal error: Cannot redeclare exif_parse_file() (previously declared in /home/www/web858/web858u1/html/newfotogallery/include/exif_php.inc.php:26) in /home/www/web858/web858u1/html/newfotogallery/include/exif_php.inc.php on line 96
Αndré:
--- Quote from: wuschel_lux on March 12, 2010, 09:01:57 am ---Adding the code to my theme.php will produce following error message:
Fatal error: Call to undefined function exif_parse_file() in /home/www/web858/web858u1/html/newfotogallery/themes/curve_vb/theme.php on line 397
--- End quote ---
I justed tested that and got no error message. You don't need to include the file include/exif_php.inc.php.
Insert
--- Code: --- if ($CONFIG['read_exif_data']) {
$exif = exif_parse_file($metadata_path, $CURRENT_PIC_DATA['pid']);
if (is_array($exif)) {
array_walk($exif, 'sanitize_data');
print_r($exif);
}
}
--- End code ---
before
--- Code: --- $params = array('{CELL_HEIGHT}' => '100',
'{IMAGE}' => $CURRENT_PIC_DATA['header'].$CURRENT_PIC_DATA['html'].$CURRENT_PIC_DATA['footer'],
'{ADMIN_MENU}' => $CURRENT_PIC_DATA['menu'],
'{TITLE}' => bb_decode($CURRENT_PIC_DATA['title']),
'{CAPTION}' => bb_decode($CURRENT_PIC_DATA['caption']),
--- End code ---
wuschel_lux:
ok so I have the code on the right place and the error message is gone.
That was the good news, the bad one, I have no output on the screen :(
Αndré:
--- Quote from: wuschel_lux on March 12, 2010, 11:05:27 am ---I have no output on the screen :(
--- End quote ---
--- Quote from: Joachim Müller on March 12, 2010, 08:16:59 am ---don't forget that you may have to change the scope using the global command.
--- End quote ---
wuschel_lux:
I added the line
--- Code: ---global $metadata_path, $exif;
--- End code ---
already before, but no output.
Hope that is what Joachim and you are trying to tell me?
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version