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: Relocate "Powered by..." - Bear With Me  (Read 4056 times)

0 Members and 1 Guest are viewing this topic.

Thats Me

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • That's Me
Relocate "Powered by..." - Bear With 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, 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.
Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Relocate "Powered by..." - Bear With Me
« Reply #1 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
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;

    $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
Code: [Select]
    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
Code: [Select]
    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.
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Relocate "Powered by..." - Bear With Me
« Reply #2 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
Code: [Select]
    echo template_eval($template_footer, $template_vars);
Logged
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

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Relocate "Powered by..." - Bear With Me
« Reply #3 on: July 23, 2006, 06:03:23 am »

Logged

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: Relocate "Powered by..." - Bear With Me
« Reply #4 on: July 23, 2006, 01:03:42 pm »

 ;D Hey, you have to give me credit for consistency.
Logged
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

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Relocate "Powered by..." - Bear With Me
« Reply #5 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
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Thats Me

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • That's Me
Re: Relocate "Powered by..." - Bear With Me
« Reply #6 on: July 24, 2006, 05:13:14 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!
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 15 queries.