Template Error Template Error
 

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

Template Error

Started by sunpad, March 08, 2006, 03:57:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sunpad

Can someone please help me quickly:

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

It's important, thanks!!

sunpad


Nibbler

You removed the <!-- BEGIN my_gallery --> tag in your custom theme. Put it back.

sunpad

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!

sunpad

Okay, Nibbler is online so I can hope to get an aswer  :D

Joachim Müller

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).

sunpad

That's the weird thing. I didn't remove anything!

Joachim Müller

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).

sunpad

I can only make a rar.-file....

sunpad

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?!

Joachim Müller

You're kidding, aren't you? Everybody can create zip files. If you can't, get a free app that can - 7zip 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.

sunpad

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.

Joachim Müller

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.

sunpad

? 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 :)

Joachim Müller

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.


sunpad


Joachim Müller

upload all files you're suppossed to upload, as suggested in the upgrade section of the docs.

sunpad

But I've uploaded all files from the classic theme!

Joachim Müller

all files from the coppermine package, not only the classic theme

sunpad

Wow, it worked, I can't believe it :D

Just one more question: Why are now all images I've uploaded deleted? =/