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: how to add some text below "Powerd by CPG" ?  (Read 8429 times)

0 Members and 1 Guest are viewing this topic.

orptiin

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
how to add some text below "Powerd by CPG" ?
« on: July 03, 2006, 07:51:21 am »

first : I have read the following http://coppermine.sourceforge.net/faq.php#editCopyrights

and I want to add some copyright photos below the "Power by..." like this
Quote
All photos by our friends and our photographers, it is free for none commercial use

I have read this link http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#addFooterBeforePoweredBy too
 but in classic template (theme.php) i didn't find the
Quote
echo $template_footer
, when I try to add this

Quote
print '<span class="footer">All photos by our friends and our photographers, it is free for none commercial use</span>';

It always display on Top :(

plz help me !
Regards
« Last Edit: July 04, 2006, 07:06:47 am by GauGau »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: how to add some text below "Powerd by CPG" ?
« Reply #1 on: July 03, 2006, 08:11:26 am »

- copypagefooter() function from themes/sample/theme.php
- edit that function and add your "<span class="footer">All photos by our friends and our photographers, it is free for none commercial use</span>" to , it should be look like this
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() : '',
    );
    $template_footer=$template_footer.'<span class="footer">All photos by our friends and our photographers, it is free for none commercial use</span>';
    echo template_eval($template_footer, $template_vars);
}
Logged
‍I don't answer to PM with support question
Please post your issue to related board

Gizmo

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1015
    • BullsEye Photos
Re: how to add some text below "Powerd by CPG" ?
« Reply #2 on: July 03, 2006, 07:07:08 pm »

You could also add a row after the {GALLERY} row and it will get placed after the "Powered by Coppermine". Something like this"
Code: [Select]
        <tr>
          <td align="center" valign="top"><br />{GALLERY}</td>
        </tr>
        <tr>
          <td align="center" class="footer">All photos by our friends and our photographers, it is free for none commercial use</td>
        </tr>

If you don't have a footer class, create one that suits your needs. Obviously the name of the class can be whatever you like.
« Last Edit: July 04, 2006, 08:18:16 am by Gizmo »
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

orptiin

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: how to add some text below "Powerd by CPG" ?
« Reply #3 on: July 04, 2006, 06:50:39 am »

Done ! Thanks very much

Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: how to add some text below "Powerd by CPG" ?
« Reply #4 on: July 04, 2006, 07:06:38 am »

For all others reviewing this thread: the method described by Gizmo is much easier and the recommended solution. Don't fiddle with theme.php if you can get away with editing template.html.
Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: how to add some text below "Powerd by CPG" ?
« Reply #5 on: July 18, 2006, 07:21:16 pm »

i'm on the same problem, but :

i already put a new table under the standard one and it works on all pages except the home-one ...
what i'm doin wrong?

is it enough to edit the templates/mytemplate/theme.html   or do i have to edit the one in the stardard/default folder?

curmetsefrog
Logged

Nibbler

  • Guest
Re: how to add some text below "Powerd by CPG" ?
« Reply #6 on: July 18, 2006, 07:32:12 pm »

There shouldn't be one in the main coppermine folder.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: how to add some text below "Powerd by CPG" ?
« Reply #7 on: July 19, 2006, 08:37:36 am »

is it enough to edit the templates/mytemplate/theme.html
No such folder nor file! Do as suggested and edit themes/mytheme/template.html
Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: how to add some text below "Powerd by CPG" ?
« Reply #8 on: July 19, 2006, 08:58:03 pm »

i did!

i added the wanted table, but on the startpage the i call it html is cut!
there is nothing behind the {gallery} tag!
i can't add anything ...

don't know why!
Logged

Nibbler

  • Guest
Re: how to add some text below "Powerd by CPG" ?
« Reply #9 on: July 19, 2006, 08:59:46 pm »

Post a link.
Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: how to add some text below "Powerd by CPG" ?
« Reply #10 on: July 21, 2006, 01:25:46 pm »

there is no link possible - i'm testing local and behind a firewall

but i will upload images and the sourcecode of the pager (from browser ...)


@ screenshot php ... the div - tags don't close!
                              the template is cut off!!

@ source browser  ... too!

@ template ... it would be there ...

don't know what i'm doing wrong ...
Logged

Thats Me

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • That's Me
Re: how to add some text below "Powerd by CPG" ?
« Reply #11 on: July 21, 2006, 07:33:19 pm »

Another question about fiddling with $template_footer:

First a disclaimer - I love coppermine. I have no desire to remove the "Powered by..." line. I want to declare to the world that I am using coppermine.

What I want to know is if I am able/allowed to move the powered by line. I have a custom footer, which I added by editing the template.html file and commenting out {CUSTOM_FOOTER} AND {VANITY} and placing my custom footer table in their place (probably not the recommended method...)

I would like to have the powered by line to be 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. It's just the aesthetics, and I'm kind of a perfectionist. But, I can live without it.

Thanks!
Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: how to add some text below "Powerd by CPG" ?
« Reply #12 on: July 22, 2006, 10:21:48 am »

http://coppermine.sourceforge.net/faq.php#editCopyrights

i think restrictions might be written down here ...

Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: how to add some text below "Powerd by CPG" ?
« Reply #13 on: July 22, 2006, 06:34:53 pm »

Logged

Thats Me

  • Coppermine newbie
  • Offline Offline
  • Posts: 12
    • That's Me
Re: how to add some text below "Powerd by CPG" ?
« Reply #14 on: July 22, 2006, 09:49:52 pm »

http://coppermine.sourceforge.net/faq.php#editCopyrights

i think restrictions might be written down here ...

http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#addFooterBeforePoweredBy

here is the question  answeared? in the faq

Yeah, I did actually read these as both were listed in the first post of this thread. Neither addresses simply moving the line. That's why I posted the question to the forums.

By the way, my theme.php file doesn't contain "echo $template_footer" anywhere. All references to $template_footer exist in the function pagefooter() - not a template. How would I go about adding text above the "powered by" line using this fuction? Use an echo statement? Sorry, I just don't know a lot about php.

Thanks.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: how to add some text below "Powerd by CPG" ?
« Reply #15 on: July 22, 2006, 10:03:34 pm »

All who replied to this thread after it has initially been tagged as "solved" should stop now and take a deep breath. You're mixing things up, making this thread drift even further from the original topic. We have a strict "one question per thread" policy you all agreed to respect.
Think twice before replying to this thread: make sure that it belongs into this thread 100%.
Logged

curmetsefrog

  • Coppermine newbie
  • Offline Offline
  • Posts: 14
Re: how to add some text below "Powerd by CPG" ?
« Reply #16 on: July 23, 2006, 12:15:21 pm »

mkay i understand ...

my problem is also solved ...
i uploaded the theme to my site and it worked ...

maybe some cache problem ...
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 15 queries.