coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: tyu on April 24, 2004, 06:16:08 AM

Title: [n/a: cpg1.3.0 support request]: Theme trouble
Post by: tyu on April 24, 2004, 06:16:08 AM
I am making a theme to match the main site, but no matter what I do the main menu won't show up. It displays the text {MAIN_MENU} instead. What can I do about this?
Title: Re: Theme trouble
Post by: Casper on April 24, 2004, 08:40:27 AM
Sounds like you over modified the theme.php
Does it work if you return to one of the standard themes.
Title: Re: Theme trouble
Post by: tyu on April 25, 2004, 02:57:57 AM
Yeah, it works when I return to any other theme. But the thing is, I didn't even touch theme.php yet. I used theme.php from "Fruity" and the css from it as well, and just edited the css and made a new template. All the other parts show up fine, it's just the {MAIN_MENU} thing and I don't understand why :x
Title: Re: Theme trouble
Post by: Joachim Müller on April 25, 2004, 07:44:30 AM
If you messed up template.html it's the same result. Undo your changes to template.html and you should be fine. You can't have placeholders (the stuff in curly braces) twice, and you can only change the order of some of them, e.g. your {MAIN_MENU} can't be after {GALLERY} without further modifications. Save your current current template.html as text file and attach it to your posting, so we can have a look...

GauGau
Title: Re: Theme trouble
Post by: tyu on April 25, 2004, 11:28:26 PM
Here's my code for template.html:

<HEAD><TITLE>{TITLE}</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
{META}
<link rel="stylesheet" href="themes/pokemorphic/style.css" />
<script type="text/javascript" src="scripts.js"></script>
</head>
<BODY>
<DIV id=container>

<DIV id=pageHeader>
<h1><span>{GAL_NAME}</h1><h3>{GAL_DESCRIPTION}</span></h3>
</DIV><!--end pageheader div -->

<DIV id=toplinks>
<P>{ADMIN_MENU}</P>
</DIV><!--end toplinks div -->  

<DIV id=sidebar>
<DIV id=links>
<br>{MAIN_MENU}
<br>{THEME_SELECT_LIST}
</div><!--end links div -->
</div><!--end sidebar div -->

<div id=behindcontent>
<DIV id=content>

{GALLERY}
</DIV><!--end content div -->


<div id=extradiv1>
</div><!--end extradiv1 -->
<div id=extradiv2>
</div><!--end extradiv2 -->
<div id=extradiv3>
</div><!--end extradiv3 -->
<div id=extradiv4>
</div><!--end extradiv4 -->
<div id=extradiv5>
</div><!--end extradiv5 -->
<div id=extradiv6>
</div><!--end extradiv6 -->


</DIV><!--end container div -->

</BODY></HTML>

Title: Re: Theme trouble
Post by: Joachim Müller on April 25, 2004, 11:51:18 PM
your template file is perfectly ok for me, must be your theme.php then. Please attach it as well (better still, put your whole theme folder into a zip).

GauGau
Title: Re: Theme trouble
Post by: tyu on April 26, 2004, 12:46:17 AM
My theme.php hasn't been modified beyond what it was when it belonged to the fruity theme. Though I will attatch both that and my css.

[attachment deleted by admin]
Title: Re: Theme trouble
Post by: Joachim Müller on April 26, 2004, 12:55:56 AM
Tested the files you attached with my test install - they work perfectly ok. Anyway you seem to use cpg1.3.0beta - you surely have read the documentation that comes with it, so you are well aware that there's no support for it yet, because it's still beta.
If you would have used cpg1.2.1 (the version that comes with support), I would have asked you to post a link to your gallery.

GauGau

Title: Re: [n/a: cpg1.3.0 support request]: Theme trouble
Post by: tyu on April 26, 2004, 01:00:29 AM
Hmm.. yes.. is it possible to downgrade without having to remake all my albums and categories again?
Title: Re: [n/a: cpg1.3.0 support request]: Theme trouble
Post by: Joachim Müller on April 26, 2004, 01:03:07 AM
downgrade should be possible at any time, just overwrite the files on your webserver with those from the cpg1.2.1 package. Backing everything up before is recommended although.

GauGau
Title: Re: [n/a: cpg1.3.0 support request]: Theme trouble
Post by: tyu on April 26, 2004, 01:08:01 AM
Thanks bunches, guys. I'll downgrade for now, and upgrade later when there's a fix.