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: Changes to theme.php not working  (Read 4536 times)

0 Members and 1 Guest are viewing this topic.

graham_w

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Changes to theme.php not working
« on: December 18, 2007, 11:20:37 am »

Hi there

I've been using Coppermine for a few years, and recently upgraded a couple of galleries to the latest 1.4.14. However on one of the sites I have a problem - I am trying to get the {ADMIN_MENU} {ALB_DESC} & {ALB_INFOS} to display under the thumbnail on the front page. I have made the modification to theme.php and it works just fine on another gallery I have on the same server (the info is exactly where it should be), however on this one site I have copied the same theme.php file to the theme directory I need to have it and it keeps the info in the same position regardless of what is in theme.php. I even created a test theme folder in theme directory, and used a theme that works fine on another site in that folder. However it still doesnt work - it seems like it is ignoring the $template_album_list instructions on this one site.

Just to be sure I created another completely new gallery on the same server and the theme.php works as intended.

I am lost as to why it works on these two sites and not on this one site. Any ideas as to why it isn't working ? Is it a setting somewhere ?
« Last Edit: December 20, 2007, 08:13:04 am by GauGau »
Logged

Nibbler

  • Guest
Re: Changes to theme.php not working
« Reply #1 on: December 18, 2007, 02:34:58 pm »

Could be caused by modifications to include/themes.inc.php or by a plugin.
Logged

graham_w

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Changes to theme.php not working
« Reply #2 on: December 18, 2007, 09:24:43 pm »

Hi, thanks for the reply.

I have no plugins and have redownloaded the coppermine zip file and reuploaded all new files to my site but still no go.

Thanks
Graham
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changes to theme.php not working
« Reply #3 on: December 19, 2007, 08:50:55 am »

Post a link to the gallery in question and zip your custom theme and attach it to your posting.
Logged

graham_w

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Changes to theme.php not working
« Reply #4 on: December 19, 2007, 10:19:17 am »

Hi, thanks for the help.

Attached is the theme I cannot get to work - as you can see it is just the classic theme with the single modification to theme.php to move the info from the right of the thumbnail to underneath it.

Regardless of what folder name I put the theme in on this site, the site does not seem to be recognising it. I can upload this same theme folder to another gallery on the same server and it works as expected.

The gallery is [Edit GauGau] Link removed as per request [/Edit]
« Last Edit: December 20, 2007, 08:13:49 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changes to theme.php not working
« Reply #5 on: December 19, 2007, 03:55:48 pm »

Can not replicate - your custom theme does exactly what it is suppossed to do on my testbed. Are you sure that your changes to the local copy of the files have made it to the server, i.e. that your FTP is set up to overwrite files existing on your server?
Logged

graham_w

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Changes to theme.php not working
« Reply #6 on: December 20, 2007, 12:08:29 am »

Yep - I am certain it is overwriting. It must be a setting somewhere in the database - I have set up a new gallery at [Edit GauGau] Link removed as per request [/Edit] and uploaded the theme. It works fine. I have exported the database of the site at /gallery/ and as soon as I import the database into /galleryv2/ (through PHPMyAdmin), the theme shows the info back to the right of the image and not below (the same as [Edit GauGau] Link removed as per request [/Edit]).

I will import each table one at a time on /galleryv2/ to see if I can narrow down the problem later today.
« Last Edit: December 20, 2007, 08:14:26 am by GauGau »
Logged

Nibbler

  • Guest
Re: Changes to theme.php not working
« Reply #7 on: December 20, 2007, 12:18:03 am »

Those sites are showing different things, so there is nothing to compare. Make sure you are editing the right template ($template_album_list vs $template_album_list_cat)
Logged

graham_w

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Changes to theme.php not working
« Reply #8 on: December 20, 2007, 01:09:59 am »

I am using the theme that I attached above on both gallery and galleryv2 - it is working on galleryv2 but not gallery. As soon as I import the database from gallery into galleryv2, galleryv2 displays exactly the same incorrect layout as gallery (which it shouldnt be as I have not changed the theme files nor the theme used - both sites are using my modified classic theme attached above).

Anyway, as I said I will import each table one at a time on /galleryv2/ to see if I can narrow down the problem.
Logged

Nibbler

  • Guest
Re: Changes to theme.php not working
« Reply #9 on: December 20, 2007, 01:12:08 am »

Both galleries behave as expected. I don't understand the issue.
Logged

graham_w

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Changes to theme.php not working
« Reply #10 on: December 20, 2007, 06:29:35 am »

Both galleries are not behaving as expected.

I am trying to use the theme that I attached above on [Edit GauGau] Link removed as per request [/Edit] - The only modification made to the theme is to move the information from the right of the thumbnail to below the thumbnail in theme.php

I have used the theme I posted above on the /gallery/ site, and it does not behave as expected. The information is still to the right of the thumbnail, yet when I use the theme on /galleryv2/ it works as expected, and the information is below the thumbnail.
« Last Edit: December 20, 2007, 08:14:49 am by GauGau »
Logged

graham_w

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Changes to theme.php not working
« Reply #11 on: December 20, 2007, 06:43:29 am »

Ok i've narrowed it down a little further.

If the album is in a category it shows the information to the right of the thumbnail on [Edit GauGau] Link removed as per request [/Edit]

I have taken two albums out of a category (changed category to 0 in cpg_albums on the two albums) and they are now working as expected (scroll down the bottom)

This is really weird - any ideas ?
« Last Edit: December 20, 2007, 08:15:04 am by GauGau »
Logged

graham_w

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Changes to theme.php not working
« Reply #12 on: December 20, 2007, 06:58:58 am »

Thanks for all your help, problem resolved.

Would appreciate you removing the links for the website from my posts.

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Changes to theme.php not working
« Reply #13 on: December 20, 2007, 08:12:51 am »

Why don't you post what you actually did to solve your issues, for the benefit of others.
Logged
Pages: [1]   Go Up
 

Page created in 0.052 seconds with 19 queries.