Bug Trying to Display Image Titles in Slideshow Bug Trying to Display Image Titles in Slideshow
 

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

Bug Trying to Display Image Titles in Slideshow

Started by Tom Supergan, July 31, 2007, 02:25:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Tom Supergan

I followed the procedure in
Quote from: RatKing on September 29, 2004, 09:23:08 PM
[Ratking's post link]
plus the followup posts to update it to 1.4.10.

I have all the changes in place, but for some reason the following line

    document.getElementById('Title').innerHTML = Title[j];


gets the following error:

Error: 'doc.getElementById(...)' is null or not an object


The Title array has all the picture titles, so they're not null.  I checked syntax (matching caps and spelling) but can't find the problem.

Can someone that understands PHP look at my page (View Source) and tell me where my problem is?  I can run Ratking's page fine, so it shouldn't be a browser or security setting problem.

Slideshow not showing titles
Tom Supergan

Nibbler

There is no element with the id of 'Title', so the call fails.

Tom Supergan

Quote from: Nibbler on July 31, 2007, 04:48:50 PM
There is no element with the id of 'Title', so the call fails.
I couldn't see any page differences that may affect that between mine and RatKing's page.

After looking at his some more, I decided I didn't really want that implementation.  I was hoping it would show some sort of title, but I much prefer that the title and description be shown the same way it is for individual shots.

I read that the feature to display titles during slideshows is included in the 1.5 CPG source, but I couldn't find any listings for 1.5.  Is the source available to the public?  If not, can a dev post an excerpt of the appropriate changes so we can include it in 1.4 while we wait for 1.5?

I tried making the titles display by modifying function theme_slideshow() in theme.php in a custom theme I'm tweaking, but I've had no luck at all.
Tom Supergan

Joachim Müller

Quote from: Tom Supergan on July 31, 2007, 09:35:30 PM
After looking at his some more, I decided I didn't really want that implementation.
OK, marking thread as "closed" then.

Quote from: Tom Supergan on July 31, 2007, 09:35:30 PMI read that the feature to display titles during slideshows is included in the 1.5 CPG source, but I couldn't find any listings for 1.5.
cpg1.5.x hasn't been released yet, that's why you can't find the files easily.

Quote from: Tom Supergan on July 31, 2007, 09:35:30 PMIs the source available to the public?
Yes, using subversion checkout. Take a look at the preliminary documentation of cpg1.5.x: http://documentation.coppermine-gallery.net/dev_subversion.htm
Keep in mind that cpg1.5.x goes unsupported.

Quote from: Tom Supergan on July 31, 2007, 09:35:30 PMIf not, can a dev post an excerpt of the appropriate changes so we can include it in 1.4 while we wait for 1.5?
I don't think that there will be a backport done by one of the devs. You're welcome to do so if you please.