Changes to theme.php not working Changes to theme.php not working
 

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]

Main Menu

Changes to theme.php not working

Started by graham_w, December 18, 2007, 11:20:37 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

graham_w

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 ?

Nibbler

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

graham_w

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

Joachim Müller

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

graham_w

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

Joachim Müller

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?

graham_w

#6
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.

Nibbler

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)

graham_w

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.

Nibbler

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

graham_w

#10
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.

graham_w

#11
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 ?

graham_w

Thanks for all your help, problem resolved.

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

Thanks

Joachim Müller

Why don't you post what you actually did to solve your issues, for the benefit of others.