OK......
Im not all that great with php, I am learning and willing to learn.
I inserted the code in the place the faq specified.
It tells me the following:
Parse error: parse error, unexpected '(', expecting ',' or ';' in /home/arf/public_html/gallery/themes/default/theme.php on line 779
The line it is refering to is:
static $custom_header = ob_get_contents();
If I remove the () the gallery dispays but the header does not show up.
header.php is in root dir.
The code below is the what I have in my theme.php file.
Here is the link to the gallery:
http://www.autoracingforums.net/gallery/As you can see, it gives me a parse error.....
Any help on this would be very much appreciated.
EclipseLV
function pageheader($section, $meta = '')
{
global $CONFIG, $THEME_DIR;
global $template_header, $lang_charset, $lang_text_dir;
if(empty($custom_header)){
include('home/arf/public_html/header.php');
static $custom_header = ob_get_contents();
ob_clean();
}
header('P3P: CP="CAO DSP COR CURa ADMa DEVa OUR IND PHY ONL UNI COM NAV INT DEM PRE"');
user_save_profile();
$template_vars = array(
'{LANG_DIR}' => $lang_text_dir,
'{TITLE}' => $CONFIG['gallery_name'].' - '.$section,
'{CHARSET}' => $CONFIG['charset'] == 'language file' ? $lang_charset : $CONFIG['charset'],
'{META}' => $meta,
'{GAL_NAME}' => $CONFIG['gallery_name'],
'{GAL_DESCRIPTION}' => $CONFIG['gallery_description'],
'{MAIN_MENU}' => theme_main_menu(),
'{ADMIN_MENU}' => theme_admin_mode_menu(),
'{CUSTOM_HEADER}' => $custom_header,
);
echo template_eval($template_header, $template_vars);
}