[n/a: cpg1.3.0 support request]: Theme trouble [n/a: cpg1.3.0 support request]: Theme trouble
 

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

[n/a: cpg1.3.0 support request]: Theme trouble

Started by tyu, April 24, 2004, 06:16:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

tyu

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?

Casper

Sounds like you over modified the theme.php
Does it work if you return to one of the standard themes.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

tyu

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

Joachim Müller

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

tyu

#4
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>


Joachim Müller

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

tyu

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]

Joachim Müller

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


tyu

Hmm.. yes.. is it possible to downgrade without having to remake all my albums and categories again?

Joachim Müller

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

tyu

Thanks bunches, guys. I'll downgrade for now, and upgrade later when there's a fix.