Relocate "Powered by..." - Bear With Me Relocate "Powered by..." - Bear With Me
 

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

Main Menu

Relocate "Powered by..." - Bear With Me

Started by Thats Me, July 22, 2006, 10:37:03 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Thats Me

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, and here 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.

Gizmo

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.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Gizmo

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);
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Joachim Müller


Gizmo

 ;D Hey, you have to give me credit for consistency.
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Sami

you deserve that , personaly i'll give you some powder of Karma ;)
apply it to stable brench  ;D
‍I don't answer to PM with support question
Please post your issue to related board

Thats Me

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!