$gallery->album->getPhotoId($index)

jean2399

Joined: 2003-10-31
Posts: 8
Posted: Sun, 2004-02-01 00:55

Dear Gallery ppl!

http://www.stock-photography.bz

I am trying to add my shopping cart to my gallery. It works more or less fine by now, allthough I have a small problem. I can add the following line to the inline_albumthumb.footer:

<input type=button value="Add / Remove" onclick=addCart('<?=$gallery->album->getPhotoId($index)?>')>

but I cannot add it to the inline_foto.footer.

This line adds the Add/Remove button below the picture. While adding it to the inline_foto.footer I get the following message on the corresponding output page:

Fatal error: Call to a member function on a non-object in classes/Album.php on line 1063

The header of the inline_foto.footer file says I can use the $gallery->album->getPhotoId($index) variable, but it does not seem to be true in a simple way.

Anyone?
Thank you for your time,
Jan Csernoch
----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.stock-photography.bz
Gallery version: v1.4.1
Apache version: apache-1.3.27-2
PHP version (don't just say PHP 4, please): php-4.1.2-7.3.6
Graphics Toolkit:
Operating system:Red Hat Linux 7.3
Web browser/version (if applicable):

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Sun, 2004-02-01 13:41

Moving to Customizations.