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: GauGau, a custom footer question  (Read 3826 times)

0 Members and 1 Guest are viewing this topic.

mdp

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
GauGau, a custom footer question
« on: November 01, 2004, 06:01:17 pm »

Hi GauGau,

I was reading your post over here: http://forum.coppermine-gallery.net/index.php?topic=9863.0

Here is what I did:

- Added {Custom-Footer} at end of my template page before the body tag
- Copied and pasted your works that you made for Custom_Footer at my theme.php page

But what I am unsure about doing is edit the path for include menu_main.htm and stopka_for.php.  What am I supposed to do next and exactly where are these path found in includes folder?  Please be patient with me as I know very little about PHP.

See the gallery here: http://www.mason-dixonpark.com/pg/.

Thank in advance for answering and your patience is greatly appreciated!
« Last Edit: November 02, 2004, 08:49:53 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: GauGau, a custom footer question
« Reply #1 on: November 01, 2004, 08:59:08 pm »

read the entire thread you're refering to - those are the files the user on the other thread was asking to get included. Replace it with the files you want to include. If you don't want to include anything at all, remove it.

Joachim

P.S. I'm not the only supporter. Don't start posts refering directly to me, as others could have annswrered this as well
Logged

mdp

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: GauGau, a custom footer question
« Reply #2 on: November 01, 2004, 09:16:51 pm »

I am supposed to create my own footer page using php and add includes path to where my footer will be, right?

And since I only want to add footer, not header..  this is section I need to copy and paste:

Code: [Select]
// Function for writing a pagefooter
function pagefooter()
{
    global $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_SERVER_VARS;
    global $USER, $USER_DATA, $ALBUM_SET, $CONFIG, $time_start, $query_stats, $queries;;
    global $template_footer;

   // this is the place where the custom footer file gets included
   if(empty($custom_footer)){
      ob_start();
      include('stopka_for.php');
      $custom_footer = cleanup_custom_includes(ob_get_contents());
      ob_clean();
   }

    if ($CONFIG['debug_mode']==1 || ($CONFIG['debug_mode']==2 && GALLERY_ADMIN_MODE)) {
    cpg_debug_output();
    }

    $template_vars = array(
        '{CUSTOM_FOOTER}' => $custom_footer,
    );

    echo template_eval($template_footer, $template_vars);
}

// Function to clean up any double html leftovers from the custom header and footer that are not meant to get parsed
function cleanup_custom_includes($string) {
    $string = str_replace('<HTML>', '', $string);
    $string = str_replace('<HEAD>', '', $string);
    $string = str_replace('<BODY>', '', $string);
    $string = str_replace('</HTML>', '', $string);
    $string = str_replace('</HEAD>', '', $string);
    $string = str_replace('</BODY>', '', $string);
    return $string;
}

And add that include path on top of theme.php page.  Am I reading the thread correctly?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: GauGau, a custom footer question
« Reply #3 on: November 02, 2004, 02:09:28 am »

imo the thread you're refering to should be pretty clear.

Joachim
Logged

mdp

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
Re: GauGau, a custom footer question
« Reply #4 on: November 02, 2004, 05:28:09 am »

It worked out fine like I anticipated.

Before I make this website public, any object with copyright content area??

http://www.mason-dixonpark.com/pg/index.php

Just keep in mind that we have this media disclaimer: Admission into the Mason-Dixon Park constitutes consent to use without restriction reproductions of your likeness, whether by photograph, video, film or otherwise, for commercial and noncommercial purposes, including but not limited to publication in magazines, video, movies and internet web sites.  Some pictures will be uploaded by the admin, its crew, and some guests who attended the event.  So if we upload the picture, they are copyrighted as well.  My attorney is currently preparing site "Term of Use" which will include submissions that will become property of Mason-Dixon Park if upload anything upon our site.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: GauGau, a custom footer question
« Reply #5 on: November 02, 2004, 08:49:25 am »

no problem, as long as the "Powered by Coppermine" tag stays unobstructed.

Joachim
« Last Edit: November 02, 2004, 09:37:42 am by GauGau »
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 20 queries.