Add thumbnails to Lightbox - Page 2 Add thumbnails to Lightbox - Page 2
 

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

Add thumbnails to Lightbox

Started by Walkinman, February 08, 2006, 04:00:58 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nibbler

I don't think error handling like that is possible. Can you post the full error message ?

lordprodigy

When i go to the plugin manager or anywhere on the gallery I get thisFatal error: Cannot redeclare theme_display_thumbnails() (previously declared in /home/bogho/public_html/b514/plugins/album_fav_boxes/codebase.php:121) in /home/bogho/public_html/b514/themes/hardwired/theme.php on line 1646

Nibbler

You already have a customised version of that function in your theme. You can't have both. You can incorporate your changes to the theme_display_thumbnails() function into the version provided by the plugin, or wrap your implementation with a function_exists() as in include/themes.inc.php to avoid this causing a fatal error.

lordprodigy

I thought thats the reason. If i overwrite with my old theme.php, will the problem be fixed? I dont really need this plugin now, so I will remove it. I just wanted to test it and play with it, because its close to something I want to do but that i will post in another thread.

I dont know how to wrap functions as you mentioned. I am not quite as advanced... :(

Thanks for your help!

Nibbler

Instead of having this in your theme


function some_function_name() {
xxx
}


you would have


if (!function_exists('some_function_name')){
function some_function_name() {
xxx
}
}

lordprodigy


Richy.nl

Great plugin!!!

I do understand that the favorites are stored in the database by each user? So what I want to do also in the last step is to do a 'send order' form, with the prices of the photos in digital format. This wil make a sort of stock site from coppermine. :)

Is it possible to use this in the 1.3.x version of the coppermine E107 version?

Nibbler

You need at least CPG 1.4 to run plugins.

Joachim Müller

the e107 port goes unsupported anyway. You have been told so before. Stop asking questions about the e107 port, we don't know it and don't care for it.

ganesh

Great plugin...
Italian translation:

Richy.nl

yeah! This plugin is great!

I don't want to use Pay Pall or whatever. Just a simple and clean orderform....

But know the main thing: How to send the favorite photos (lightbox) as an order to the photographer?

Paver

@Nibbler:  What was the problem that you fixed for 1.2.3 regarding coexistence with other plugins?  I'm having a similar issue with my Search Albums plugin but I don't know if the problem is the same.  I'm racking my brains & my troubleshooting skills trying to figure out why a certain filter only works when it's at the bottom of the priority list.  You mentioned the same thing about this Lightbox plugin before the fix.

Nibbler

The problem was that the plugin stored data in the $thisplugin object upon page load and used it later on in a theme function. This worked fine when the plugin was alone or loaded last, but if other plugins were loaded in between the data being set and later read then the $thisplugin object actually referred to a different plugin. This was solved by obtaining the correct plugin reference in the theme function. I doubt it is related to your issue, which I looked at but was unable to replicate.

Paver

You're right, it's most likely not related.  Thanks for the information.  I hadn't thought about storing data in the plugin object, so that's another tool for the plugin tool belt.

Walkinman

Hey folks,

I just upgraded to 1.4.4 and also installed the most recent version of this plugin .. but when I view an album, there is no "add selectinos" button at the bottom of the page like there used to be.Each thumbnail has the "add to Lightbox" checkbox under it, but there's no way to actually add them.

I wasn't sure if I should post this here or in the upgrades forum.

Thank you

Cheers

Carl

Nibbler

If you switch to the classic theme do you have the problem ?

Walkinman

Hey Nibbler,

Yes, the problem is the same with the Classic theme. I tried several themes, and they all acted the same way.

Thanks.

Cheers

Carl

Nibbler

Are you sure you are running the latest version ? 1.2.3

Walkinman

Hello Nbler,

yes, I just downloaded it. In fact, after reading this post of yours, I just tried to reinstall the plug in, and now I get this error when I go to install it:

"There was an error while processing a database query "

I'm sure I'm doing something wrong, but I have no idea what.

Thanks.

Cheers

Carl

Walkinman

Hey Nibbler,

I'm wondering, could this have anything to do with the upgrade? it seemed to work fine before that. I had Lunarpages run the upgrade on my site, then I uploaded the style.css, template and theme from the previous version (1.4.3). Could they have done something incorrect with the database?

I appreciate your help.

Cheers

Carl