Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: custome header error  (Read 3030 times)

0 Members and 1 Guest are viewing this topic.

kirky

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 24
  • I'm only new to this.. so speak slowly .. please..
    • Kirky's Kreations
custome header error
« on: January 30, 2005, 02:30:58 am »

I tried to add my custome header like the FAQ says like this:

Code: [Select]
function pageheader($section, $meta = '')
{
   global $CONFIG, $THEME_DIR;
   global $template_header, $lang_charset, $lang_text_dir;

   if(empty($custom_header)){
      include('http://kirkyskreations.com/NEW/custom-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);
}
// Function for writing a pagefooter

but I get this error message:

Parse error: parse error, unexpected '(', expecting ',' or ';' in /home/kirky/public_html/gallery/themes/kk_theme/theme.php on line 1612

Any suggestions on what I ma doing wrong I also included {CUSTOM_HEADER} on the template.

Kirsten  :-*
Logged
Kirsten xx

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

kirky

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 24
  • I'm only new to this.. so speak slowly .. please..
    • Kirky's Kreations
Re: custome header error
« Reply #2 on: January 30, 2005, 12:15:26 pm »

OK that worked ta, I suppose that is because of the extra bit at the end which was not included on the FAQ. You know I was only changing it because I was told it looked 'mushed' but you know after all that it doesn't look any different to how I did it the first way.. suppose it is the 'correct way' to do it now.. ;)
Logged
Kirsten xx
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.