coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: sunpad on March 08, 2006, 03:57:01 PM

Title: Template Error
Post by: sunpad on March 08, 2006, 03:57:01 PM
Can someone please help me quickly:

http://lifestyle-lan.net/websites/onetakewatson/Gallery/ ?

It's important, thanks!!
Title: Re: Template Error
Post by: sunpad on March 08, 2006, 05:33:04 PM
PLEASE help me   :-X
Title: Re: Template Error
Post by: Nibbler on March 08, 2006, 05:41:07 PM
You removed the <!-- BEGIN my_gallery --> tag in your custom theme. Put it back.
Title: Re: Template Error
Post by: sunpad on March 09, 2006, 12:42:21 PM
Do you mean theme.php in the theme I'm right now using?

Well, it looks like this:

Quote<!-- BEGIN my_gallery --><?php
// ------------------------------------------------------------------------- //
// Coppermine Photo Gallery                                                 //
// ------------------------------------------------------------------------- //
// Copyright (C) 2002,2003  Gr&eacute;gory DEMAR <gdemar@wanadoo.fr>               //
// http://www.chezgreg.net/coppermine/                                      //
// ------------------------------------------------------------------------- //

.....(can't post it all)

And the end:

function theme_html_picinfo(&$info)
{
    global $lang_picinfo;

    $html = '';

    $html .= "        <tr><td colspan=\"2\" class=\"tableh2_compact\"><b>{$lang_picinfo['title']}</b></td></tr>\n";
    $template = "        <tr><td class=\"tableb_compact\" valign=\"top\" nowrap>%s:</td><td class=\"tableb_compact\">%s</td></tr>\n";
    foreach ($info as $key => $value) $html .= sprintf($template, $key, $value);

    return $html;
}

?>
<!-- END my_gallery -->


But it doesn't work!
Title: Re: Template Error
Post by: sunpad on March 09, 2006, 02:54:41 PM
Okay, Nibbler is online so I can hope to get an aswer  :D
Title: Re: Template Error
Post by: Joachim Müller on March 10, 2006, 09:14:30 AM
put it back where you removed it, not somewhere randomly on the page. If your file is too large to post, zip it and attach it to your posting (using "additional options" when composing your message).
Title: Re: Template Error
Post by: sunpad on March 11, 2006, 04:52:33 PM
That's the weird thing. I didn't remove anything!
Title: Re: Template Error
Post by: Joachim Müller on March 12, 2006, 10:52:29 AM
if you want help, do as I suggested:
Quote from: GauGau on March 10, 2006, 09:14:30 AM
zip it and attach it to your posting (using "additional options" when composing your message).
Title: Re: Template Error
Post by: sunpad on March 14, 2006, 04:44:55 PM
I can only make a rar.-file....
Title: Re: Template Error
Post by: sunpad on March 14, 2006, 04:50:02 PM
Anyway here's the theme.php http://lifestyle-lan.net/websites/onetakewatson/Gallery/
Maybe that's enough for you to know what's exactly wrong?!
Title: Re: Template Error
Post by: Joachim Müller on March 15, 2006, 12:31:34 AM
You're kidding, aren't you? Everybody can create zip files. If you can't, get a free app that can - 7zip (http://www.7-zip.org/) recommended.

I know what is wrong with your theme, it lacks some mandatory code. I just don't know if you removed it accidentally or if it wasn't in the theme in the first place (i.e. you're trying to use a theme that wasn't designed for your coppermine version). Search for the error message you get if you can't/won't do as I suggested and attach your zipped theme.
Title: Re: Template Error
Post by: sunpad on March 15, 2006, 05:25:04 PM
No, I was not kidding. I really could only make rar.-Files. But now I've got a zip-File for you LOL^^
It's the theme.php thing from the theme I use.
Title: Re: Template Error
Post by: Joachim Müller on March 16, 2006, 08:29:23 AM
you have two themes in your themes folder: classic from cpg1.3.x and sapprck from cpg1.3.x - both themes can't be used with cpg1.4.x.
Adding html comments to any place in your theme.php (like <!-- BEGIN my_gallery --> in the very first line) is just wishful thinking, theming doesn't work that way. Your theme file is so confusingly modified, just drop it - I can't make heads or tails from it.
Additionally, upload at least the classic theme from the cpg1.4.x package
The theme sapprck only existed as phpbb theme as far as I know, but not as coppermine theme (for no version ever). If you have an unmodified copy of it though, post it here.
Title: Re: Template Error
Post by: sunpad on March 16, 2006, 05:11:52 PM
? But I've installed the classic theme! So what exactly should I do? It would be very kind if you would try to say it in easy English  ;D You're also german, I've figered out :)
Title: Re: Template Error
Post by: Joachim Müller on March 16, 2006, 05:30:10 PM
delete everything within http://lifestyle-lan.net/websites/onetakewatson/Gallery/themes/
Then copy the folder "classic" and everything in it from the cpg1.4.x package into the themes folder on your webserver.
In other words: the themes you have on your webserver are currently outdated, you should have replaced them as well when you upgraded.

Title: Re: Template Error
Post by: sunpad on March 16, 2006, 05:46:05 PM
So now I've got another problem:

http://lifestyle-lan.net/websites/onetakewatson/Gallery/

What should I do now?
Title: Re: Template Error
Post by: Joachim Müller on March 16, 2006, 11:33:51 PM
upload all files you're suppossed to upload, as suggested in the upgrade section of the docs.
Title: Re: Template Error
Post by: sunpad on March 17, 2006, 03:15:02 PM
But I've uploaded all files from the classic theme!
Title: Re: Template Error
Post by: Joachim Müller on March 17, 2006, 07:36:26 PM
all files from the coppermine package, not only the classic theme
Title: Re: Template Error
Post by: sunpad on March 18, 2006, 10:43:45 AM
Wow, it worked, I can't believe it :D

Just one more question: Why are now all images I've uploaded deleted? =/
Title: Re: Template Error
Post by: Joachim Müller on March 18, 2006, 01:17:51 PM
I have no idea what you did. If the pics you uploaded have gone, then you probably deleted them I guess. When going to your site, the pics on that page display fine as expected though. Post more details if you need help, and keep in mind that we have a "one question per thread" policy that you agreed to respect when signing up.
Title: Re: Template Error
Post by: sunpad on March 18, 2006, 01:21:54 PM
Quotekeep in mind that we have a "one question per thread" policy that you agreed to respect when signing up.

Yeah, I know...

QuoteWhen going to your site, the pics on that page display fine as expected though.

Yes, because I've uploaded new pics just some hours ago  :D

QuoteIf the pics you uploaded have gone, then you probably deleted them I guess.

No, I didn't do that or I wouldn't have asked where all the pics have gone...

But it's okay now, thank you very much, GauGau!