forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: mdp on November 01, 2004, 06:01:17 pm

Title: GauGau, a custom footer question
Post by: mdp 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!
Title: Re: GauGau, a custom footer question
Post by: Joachim Müller 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
Title: Re: GauGau, a custom footer question
Post by: mdp 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?
Title: Re: GauGau, a custom footer question
Post by: Joachim Müller on November 02, 2004, 02:09:28 am
imo the thread you're refering to should be pretty clear.

Joachim
Title: Re: GauGau, a custom footer question
Post by: mdp 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.
Title: Re: GauGau, a custom footer question
Post by: Joachim Müller on November 02, 2004, 08:49:25 am
no problem, as long as the "Powered by Coppermine" tag stays unobstructed.

Joachim