coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Thats Me on July 22, 2006, 10:37:03 PM

Title: Relocate "Powered by..." - Bear With Me
Post by: Thats Me on July 22, 2006, 10:37:03 PM
First a disclaimer - I love coppermine. I have no desire to remove the "Powered by..." line. Yes, I want to declare to the world that I am using coppermine.

Second - I have read the docs about this here http://coppermine.sourceforge.net/faq.php#editCopyrights (http://coppermine.sourceforge.net/faq.php#editCopyrights), and here http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#addFooterBeforePoweredBy (http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#addFooterBeforePoweredBy)

What I want to know is if I am able/allowed to move the powered by line - not remove. I have a custom footer, and I would like to have the powered by line be directly above that footer, instead of inside the main table. Here's my installation: http://www.emeraldallstars.com/emerald-gallery

If this isn't possible, that's not a huge deal.

By the way, my theme.php file doesn't contain "echo $template_footer" as discussed in the docs above. All references to $template_footer exist in the function pagefooter() - not a template. How would I edit the $template_footer in this fuction? I don't know php very well.

Thanks a lot, I appreciate any help.
Title: Re: Relocate "Powered by..." - Bear With Me
Post by: Gizmo on July 23, 2006, 01:28:05 AM
I've been reading your pleads but you have to understand the reasons why the Devs aren't willing to tell people how to move, remove or otherwise make changes to the "Powdered by Coppermine" line. However, as mentioned in the doc link you posted above, there is a way. Anyway, here's what you need to do:

Copy the pagefooter function from Sample>theme.php and paste it into your theme.php

// 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;

    $custom_footer = cpg_get_custom_include($CONFIG['custom_footer_path']);

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

    $template_vars = array(
        '{CUSTOM_FOOTER}' => $custom_footer,
        '{VANITY}' => (defined('THEME_IS_XHTML10_TRANSITIONAL') && $CONFIG['vanity_block']) ? theme_vanity() : '',
    );

    echo template_eval($template_footer, $template_vars);
}


Add these lines

    print '<p align="center"><span class="footer">Join Now  ::  Forums  ::  News  ::  Contact</span></p>';
    print '<p align="center"><span class="footer">Teams  ::  Competitions  ::  Classes  ::  Essentials</span></p>';
    print '<p align="center"><span class="footer">Home  ::  Privacy Policy  ::  Sitemap</span></p>';
    print '<p align="center"><span class="footer">Emerald All Star Cheerleading  ::  3922 West 1st Avenue  ::  Eugene, Oregon 97402  ::  541-463-7699</span></p>';
    print '<p align="center"><span class="footer">Another That\'s Me ProductionTM</span></p>';

before
    echo template_eval($template_footer, $template_vars);

I'll leave it to you to add the links since it would make this post messy with them included. Use different classes to change the fonts and colors.

Hope this gets you where you want to be.
Title: Re: Relocate "Powered by..." - Bear With Me
Post by: Gizmo on July 23, 2006, 01:41:08 AM
After re-reading your post, if you want the "Powdered by Coppermine" above the links, you paste all the print lines below the
    echo template_eval($template_footer, $template_vars);
Title: Re: Relocate "Powered by..." - Bear With Me
Post by: Joachim Müller on July 23, 2006, 06:03:23 AM
Quote from: Gizmo on July 23, 2006, 01:28:05 AMPowdered by Coppermine
*giggles*
Title: Re: Relocate "Powered by..." - Bear With Me
Post by: Gizmo on July 23, 2006, 01:03:42 PM
 ;D Hey, you have to give me credit for consistency.
Title: Re: Relocate "Powered by..." - Bear With Me
Post by: Sami on July 23, 2006, 01:35:44 PM
you deserve that , personaly i'll give you some powder of Karma ;)
apply it to stable brench  ;D
Title: Re: Relocate "Powered by..." - Bear With Me
Post by: Thats Me on July 24, 2006, 05:13:14 AM
Quote from: Gizmo on July 23, 2006, 01:28:05 AM
I've been reading your pleads but you have to understand the reasons why the Devs aren't willing to tell people how to move, remove or otherwise make changes to the "Powdered by Coppermine" line.

Right, Gizmo. Of course.

I do understand and I appreciate your help. Thank you.

And big thanks to devs for such a fantastic gallery system!