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: [n/a: cpg1.3.0 support request]: Theme trouble  (Read 3776 times)

0 Members and 1 Guest are viewing this topic.

tyu

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
[n/a: cpg1.3.0 support request]: Theme trouble
« 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?
« Last Edit: April 26, 2004, 12:56:30 am by GauGau »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Theme trouble
« Reply #1 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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Theme trouble
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Theme trouble
« Reply #3 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
Logged

tyu

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Theme trouble
« Reply #4 on: April 25, 2004, 11:28:26 pm »

Here's my code for template.html:

Code: [Select]
<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>
« Last Edit: April 25, 2004, 11:46:52 pm by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Theme trouble
« Reply #5 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
Logged

tyu

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Theme trouble
« Reply #6 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]
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Theme trouble
« Reply #7 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

Logged

tyu

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: [n/a: cpg1.3.0 support request]: Theme trouble
« Reply #8 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: [n/a: cpg1.3.0 support request]: Theme trouble
« Reply #9 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
Logged

tyu

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: [n/a: cpg1.3.0 support request]: Theme trouble
« Reply #10 on: April 26, 2004, 01:08:01 am »

Thanks bunches, guys. I'll downgrade for now, and upgrade later when there's a fix.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 14 queries.