Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Custom Footer/Header include files  (Read 3684 times)

0 Members and 1 Guest are viewing this topic.

warath

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Custom Footer/Header include files
« on: February 22, 2006, 05:05:58 pm »

What variables are available to custom footer.php, or header.php scripts?
I wish to know: if thumbnails are being displayed (which i can do by testing the script name), but then I want to know what the Album name is!
A work around I have for now is testing the $_GET['album'] value.
But would like to know what variables I have access to from coppermine.

Thanks
« Last Edit: February 24, 2006, 05:53:57 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Custom Footer/Header include files
« Reply #1 on: February 23, 2006, 08:06:29 am »

there's no list available, you'll have to look at the code.
Logged

warath

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Custom Footer/Header include files
« Reply #2 on: February 23, 2006, 04:39:45 pm »

Well, I tried using variables in thumbnails.php, but they don't work, so obviously I can't simply look at the code.
Any specific spots I should start??

Thanks,
Logged

Nibbler

  • Guest
Re: Custom Footer/Header include files
« Reply #3 on: February 23, 2006, 04:49:58 pm »

In the pageheader you have access to

Code: [Select]
    global $CONFIG, $THEME_DIR;
    global $template_header, $lang_charset, $lang_text_dir;

For the pagefooter you have

Code: [Select]
    global $USER, $USER_DATA, $ALBUM_SET, $CONFIG, $time_start, $query_stats, $queries;;
    global $template_footer;

In both you also have access to the superglobals and any defined constants. You can add a var_dump(get_defined_vars()) in the function if you want a complete list.
Logged

warath

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Custom Footer/Header include files
« Reply #4 on: February 23, 2006, 04:52:00 pm »

Sweet, thank you Nibbler!  :)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.