forum.coppermine-gallery.net

Support => cpg1.4 plugins => cpg1.4.x Support => Older/other versions => cpg1.4 plugin contributions => Topic started by: Walkinman on February 08, 2006, 04:00:58 am

Title: Add thumbnails to Lightbox
Post by: Walkinman on February 08, 2006, 04:00:58 am
Hey Folks,

I know I must be driving you all crazy with these requests - but I really do appreciate all the help here.

What I want to do now is add a checkbox under each thumbnail in an album, allowing a visitor to simply check the box to add images to their lightbox (Favorites), instead of opening the image, and adding it, then return to the main gallery. Is this possible, and if so, can someone give me some help with doing so. I'll probably more explanation than you'd expect.  ;D

Thank you.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 08, 2006, 05:12:17 am
Try this plugin, follow the instructions in the online docs if you are not familiar with installing plugins.

v 1.0 - Original version (no longer available)
v 1.01 - Fixed installer bug (album_fav_boxes.zip)
v 1.1 - Added lightbox removal feature (album_fav_boxes_11.zip)
v 1.2 - Added into search results, easier customization of lang strings, added class to checkboxes (no longer available)
v 1.2.1 - Fixed error when adding from search results  (no longer available)
v 1.2.2 - Only display 'add to lightbox' under pics not already there (no longer available)
v 1.2.3 - Fixed co-existance issue with other plugins   (no longer available)
v 1.2.4 - CPG 1.4.12 compatiblity fix (no longer available)
v 1.2.5 - Favpics fix (rebase to 1.4.12 theme.php)   (album_fav_boxes_125.zip)
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on February 08, 2006, 04:27:08 pm
Hry Nibbler,

Thanks - I had searched but didn't know there was a plug in for this.

I uploaded the file,and when I went to install the plug in I got this message:

Code: [Select]
Fatal error: Cannot redeclare theme_display_thumbnails() (previously declared in /home/skola2/public_html/stock/include/themes.inc.php:1716) in /home/skola2/public_html/stock/plugins/album_fav_boxes/codebase.php on line 61
My guess is it conflicts with something I changed earlier, so allow adding to lightboxes only for logged in users, is that correct?

Thanks

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 08, 2006, 04:33:09 pm
I've fixed the issue with the installer, try again.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on February 08, 2006, 04:57:12 pm
Hey Nibbler,

Thank you - that is awesome.

Would there by any way to have the same thing apepar in the Lightbox/Favorites Gallery, only with "remove from Lightbox"? As it is now, I have to open the full size image, delete from the Lightbox, then return to to the lightbox to remove another one. If there could be an option to "empty lightbox", that would be great as well (I know that borders on 2 questions in one thread, but I thought they were sufficiently related - hope that's ok).

Thanks again.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 08, 2006, 05:16:30 pm
Done, version 1.1 added to original post.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on February 08, 2006, 05:27:35 pm
Hey Nibbler,

Thank you .. that is even more awesome.

Say, you don't happen to want to run for President do you?  :)

Thanks again - really appreciated.

Cheers

Carl

PS - Moderators can feel free to mark this thread Solved
Title: Re: Add thumbnails to Lightbox
Post by: sbpoole on February 08, 2006, 11:55:05 pm
I hate to ask, but how could I center the checkbox located beside "add to lightbox" so that it is in line with the text?  Now the checkbox is higher than the text. 

Thanks for this plug-in

Note: I changed the wording from lightbox to favorites on mine

Sonny

Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on February 09, 2006, 07:35:47 am
Hey Nibbler,

One more thing - is it possible to have this also displayed under thumbnails found from a "search"? Presently if someone does a search, the resulting thumbnail pages don't display the "Add to Lightbox" check box. Could you add this to the plug in?

Thanks again.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 09, 2006, 01:44:05 pm
Plugin updated to address both issues, see original post.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on February 09, 2006, 04:03:30 pm
Hey Nibbler,

Thanks for your work.

I'm getting errors when I try to add to lightbox from search results.

Code: [Select]
Template error
Failed to find block 'log_ecards'(#(<!-- BEGIN log_ecards -->)(.*?)(<!-- END log_ecards -->)#s) in :

                <div align="center">
                <table cellpadding="0" cellspacing="1">
                        <tr>

                                <td class="admin_menu"><a href="admin.php" title="{ADMIN_TITLE}">{ADMIN_LNK}</a></td>
                                <td class="admin_menu"><a href="catmgr.php" title="{CATEGORIES_TITLE}">{CATEGORIES_LNK}</a></td>
                                <td class="admin_menu"><a href="albmgr.php{CATL}" title="{ALBUMS_TITLE}">{ALBUMS_LNK}</a></td>
                                <td class="admin_menu"><a href="groupmgr.php" title="{GROUPS_TITLE}">{GROUPS_LNK}</a></td>
                                <td class="admin_menu"><a href="usermgr.php" title="{USERS_TITLE}">{USERS_LNK}</a></td>
                                <td class="admin_menu"><a href="banning.php" title="{BAN_TITLE}">{BAN_LNK}</a></td>
                                <td class="admin_menu"><a href="reviewcom.php" title="{COMMENTS_TITLE}">{COMMENTS_LNK}</a></td>

                                <td class="admin_menu"><a href="picmgr.php" title="{PICTURES_TITLE}">{PICTURES_LNK}</a></td>
                                <td class="admin_menu"><a href="searchnew.php" title="{SEARCHNEW_TITLE}">{SEARCHNEW_LNK}</a></td>
                                <td class="admin_menu"><a href="util.php" title="{UTIL_TITLE}">{UTIL_LNK}</a></td>
                                <td class="admin_menu"><a href="profile.php?op=edit_profile" title="{MY_PROF_TITLE}">{MY_PROF_LNK}</a></td>
<!-- BEGIN documentation -->
                                <td class="admin_menu"><a href="{DOCUMENTATION_HREF}" title="{DOCUMENTATION_TITLE}" target="cpg_documentation">{DOCUMENTATION_LNK}</a></td>
<!-- END documentation -->
                        </tr>
                </table>
                </div>

This is when I'mlogged in, or even when I'm not. Like I said earlier, I had made a mod to allow the Lightbox only for registered users (which I will change back to allow for everryone) and that may be causing it - but I get this error whether logged in or not. Is the problem just on my end?

Thanks again.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 09, 2006, 04:19:12 pm
http://forum.coppermine-gallery.net/index.php?topic=24295.0
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on February 09, 2006, 04:44:50 pm
Hey Nibbler,

Thanks. Looking at that thread, it tells me to edit the include/theme.inc.php - correct? I thought I'd read somewhere never to edit this, so I copied the original just in case. Then I made the change you suggested at the bottom of the thread, and now I get this error:

Code: [Select]
error: the selected album/file does not exist!
I don't get that error when I just add to lightbox from an album .. only when I do it from the search results.

Thanks again - I appreciate your help.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 09, 2006, 04:53:27 pm
Update your plugin to v 1.2.1 :)
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on February 09, 2006, 05:24:29 pm
Hey Nibbler,

This works great now, thanks.

One (more) question: If a visitor has an image in their lightbox, and does a search or browses a gallery, the thumbnails only show "add to lightbox" .. which is Ok, but if they check that and the image is already in their lightbox, the image is then removed from their lightbox. Does that make sense? Perhaps it makes sense to have the text read "Remove from Lightbox if the image is already in their lightbox, so they don't check it accidentally. If you have a better idea, feel free to change it how you think it would work best.

Thanks again, I really do appreciate your help.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 09, 2006, 06:02:17 pm
Added.
Title: Re: Add thumbnails to Lightbox
Post by: sbpoole on February 09, 2006, 11:19:23 pm
Thanks Nibbler.  Great plug-in!

Sonny
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on February 10, 2006, 03:36:24 am
Hey Nibbler,

Awesome!

Thanks so much for your help.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: qseb on February 12, 2006, 10:45:12 pm
thx! great plugin...
Title: Re: Add thumbnails to Lightbox
Post by: lordprodigy on February 14, 2006, 07:59:40 pm
I got this error
Code: [Select]
Fatal error: Cannot redeclare theme_display_thumbnails() (previously declared
I guess there is a duplicate function problem. How do I fix that?

Also, when an error as such occurs, I cant access the plugin manager to uninstall the plugin. the whole site is down. I assume I can re-upload my backed up version of theme.php but would have been nice if for example when there is an error of some kind for the plugin to default and uninstall itself so the site is still functional. Only a suggestion.
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 14, 2006, 08:47:46 pm
I don't think error handling like that is possible. Can you post the full error message ?
Title: Re: Add thumbnails to Lightbox
Post by: lordprodigy on February 14, 2006, 08:51:24 pm
When i go to the plugin manager or anywhere on the gallery I get this
Code: [Select]
Fatal 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
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 14, 2006, 08:55:03 pm
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.
Title: Re: Add thumbnails to Lightbox
Post by: lordprodigy on February 14, 2006, 09:11:33 pm
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!
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 14, 2006, 09:18:21 pm
Instead of having this in your theme

Code: [Select]
function some_function_name() {
xxx
}

you would have

Code: [Select]
if (!function_exists('some_function_name')){
function some_function_name() {
xxx
}
}
Title: Re: Add thumbnails to Lightbox
Post by: lordprodigy on February 14, 2006, 09:39:37 pm
Thanks a lot Nibbler.
Title: Re: Add thumbnails to Lightbox
Post by: Richy.nl on February 25, 2006, 12:14:36 pm
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?
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on February 25, 2006, 05:56:40 pm
You need at least CPG 1.4 to run plugins.
Title: Re: Add thumbnails to Lightbox
Post by: Joachim Müller on February 26, 2006, 11:44:28 pm
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.
Title: Re: Add thumbnails to Lightbox
Post by: ganesh on February 27, 2006, 02:28:24 pm
Great plugin...
Italian translation:
Title: Re: Add thumbnails to Lightbox
Post by: Richy.nl on March 01, 2006, 12:00:16 pm
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?
Title: Re: Add thumbnails to Lightbox
Post by: Paver on March 09, 2006, 04:19:56 am
@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.
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on March 11, 2006, 12:07:43 am
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.
Title: Re: Add thumbnails to Lightbox
Post by: Paver on March 11, 2006, 12:13:55 am
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.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 09, 2006, 05:28:03 pm
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
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 09, 2006, 05:36:06 pm
If you switch to the classic theme do you have the problem ?
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 09, 2006, 05:41:57 pm
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
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 09, 2006, 05:46:28 pm
Are you sure you are running the latest version ? 1.2.3
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 09, 2006, 05:56:04 pm
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
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 10, 2006, 07:23:24 pm
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
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 10, 2006, 07:38:31 pm
Enable debug mode and post the mysql error message you receive...
Title: Re: Add thumbnails to Lightbox
Post by: Joachim Müller on April 10, 2006, 07:57:21 pm
don't make your host do the upgrade process for you, but run it yourself - the only option if you want to make sure that it was actually done.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 10, 2006, 09:18:34 pm
Hey Nibbler,

Debug is on:

http://www.skolaiimages.com/stock/index.php

The error I was receiving when I tried to install the plugin is this:

"There was an error while processing a database query "

GauGau,

Lunarpages offered to do the upgrade for me for $20,00, and I thought that meant they would include all the mods and tweaks I had done. they didn't, just installed 1.4.4, and I had to redo all the modifications I had made previously. After I posted on the upgrade forum, I was told just to upload my earlier version of theme.php, style.css and template.html, which I did .. I also uploaded my old version of english.php, to include a few of the changes I'd made there. I don't know if any of this is causing the problem I'm having with this plug in though. Next, I hired one of the folks on the freelance page to help me, he did a bunch of changes, then disappeared, and now the whole thing is a mess - it includes a lot of the standard stuff in cpg, some of the changes I made, and some of the stuff he did. I haven't heard back from him since.

The plugin problem I was having before I contacted the other guy about some help.

Thanks.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 10, 2006, 09:32:49 pm
I need you to replicate the issue and post the error message. I can't help you otherwise.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 10, 2006, 09:39:10 pm
Hey Nibbler,

I'm sorry, I turned on debug, and now I see a more complete message. Is this what you're looking for:

Code: [Select]
There was an error while processing a database query.

While executing query "insert into cpg_plugins (name, path,priority)  values ("Add thumbnails to Lightbox","album_fav_boxes",2);" on 0

mySQL error: Duplicate entry 'Add thumbnails to Lightbox' for key 2


File: /home/skola2/public_html/stock/include/functions.inc.php - Line: 248

Thanks for your help.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 10, 2006, 09:58:11 pm
Looks like you already installed the plugin.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 10, 2006, 10:11:21 pm
Hey Nibbler,

Why do you say that? if you look at any of the galleries, the plug isn't operating.

http://www.skolaiimages.com/stock/thumbnails.php?album=1

I uploaded the plugin to theplugins folder, but when I click on 'install", I get that error. I used to have it operating, and working fine, before I had the upgrade to 1.4.4. When the upgrade went thru, the plug in stopped working. I was not getting theoption to "Add Selections" at the bottom of each page. I went back to this thread, found the most recent version of the plugin, downloaded it, uploaded it to the plugins folder, and since then, haven't been able to get it working. I even tried to reupload the previous version again, and it doesn't install either.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Gizmo on April 11, 2006, 01:30:15 pm
Hey Walk,

After selecting "enable plugins" in the Config setting and installing the plugin, did you "save configurations"? I've been known to do this more than once and then remember I have to scroll down to select that.

Hey Nibbler, this is a great plugin. Thanks!  :D

Cheers,

Billy
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 11, 2006, 04:35:20 pm
Hey Billy,

Thanks. Actually, I never get an option for 'save confiruations'. When I click on the install plugin, I get the error. I'm guessing it's some error that maybe I initially tried to install the newer plugin without uninstalling and deleting the first one. I have no idea how to fix the problem now though. If someone who knows how Imight do that would let me know, I'd really appreciate it. I agree the plugin is great, I really want it working on my site.

Thank you.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 11, 2006, 05:24:14 pm
Empty your plugins table using phpmyadmin.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 11, 2006, 06:23:10 pm
Hey Nibbler,

I downloaded phpmyadmin, but I don't know how to do that. Could you help me out, please. I apologize for my ignorance - my friends tell me I have the computer equivalent of a 'black thumb'.  ;)

Thank you.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 12, 2006, 07:26:16 am
Hello Nibbler,

I've looked at my database. It looks like this.

Code: [Select]
Field Type Attributes Null Default Extra Action
plugin_id int(10) UNSIGNED No auto_increment
name varchar(64) No
path varchar(128) No
priority int(10) UNSIGNED No 0

Do I check all and then hit the X ('drop')?

And then try to upload and install the plugin again? I'm sorry for asking so many questions, but I don't want to mess things up anymre than they already seem to be. If you (or anyone) can give detailed instruction on how to fix this, I'd really appreciate it.

Thank you.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 12, 2006, 03:45:53 pm
Make a backup first and then use empty as suggested. Don't press drop as this will delete the table.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 12, 2006, 04:05:43 pm
Hey Nibbler,

Thanks - I hadn't see "empty" up on the RHS, but I see it now.

I'm sorry to keep bothering you, but Im really guessing at this stuff. To make a backup, do I just copy those 4 files in my plugin folder in cpg? Or do I do that thru the phpmyadmin thing? I don't see how to do it thru phpmyadmin - I see "export", but that brings up another page I have no idea what to do with. What I did was just grab all the folders inmy plugin folder using Fetch (ftp). Is that all I have to do?

Thanks for your time.

Cheers

Carl


Title: Re: Add thumbnails to Lightbox
Post by: Joachim Müller on April 12, 2006, 06:39:01 pm
how to operate phpMyAdmin can be found out by reading the documentation they provide. Imo this shouldn't be discussed on this very thread. Of course, when you're going to empty a table in the database, you have to backup the database first, not some file. The export tab is the correct one.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 12, 2006, 06:59:29 pm
Hey GauGau,

Thank you. I'm only discussing this here because this plugin is the very reason I need to do this. I hope that's not a problem. Very briefly:

I had the plugin working great, had the upgrade to 1.4.4 installed, and the plugin stopped working. As you can see here

http://forum.coppermine-gallery.net/index.php?topic=30082.0

 I posted for some help on the upgrade board, and got nowhere. I posted here about the plugin, and through that discussion, it appears I need to empty the plugin tables to reinstall the plugin. That's what I'm now trying to do.

I realise you folks must get sick of people like myself asking what are to you, I'm sure, inane questions, but sometimes just reading the documentation doesn't make sense to some people (such as myself).

I really do appreciate the help.

I'll try to empty the tables now and see if I can reinstall the plugin.

I have one more question, if you don't mind. Do I have to empty the whole table, or can I just empty that specific plugin from the table? if so, which one is it?

Code: [Select]

        plugin_id int(10) UNSIGNED No auto_increment
name varchar(64) No
path varchar(128) No
priority int(10) UNSIGNED No 0

Thanks again.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 12, 2006, 07:10:05 pm
Looking at the structure of the table tells you nothing, you need to click on browse to see what is inside.
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on April 12, 2006, 07:20:36 pm
Hello Nibbler,

Thank you for your help. I did as you suggested, and found which one it was and emptied it. I've reinstalled the plug in, and it appears to be working correctly. Thanks again for this great plugin.

What's with the negative Karma for asking for help, as politely as possible?

Thanks again.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: Joachim Müller on April 12, 2006, 08:06:23 pm
(negative) karma is a dev-only feature and not meant to be discussed, cluttering this thread even more.
Title: Re: Add thumbnails to Lightbox
Post by: pcp20us on April 25, 2006, 02:46:42 pm
Hi all

I have been playing with nibblers plugin the latest version in the above posts. Is it possible to also havre the add to lighjt box on the full scrren images so cuatomers can add to light box from either thubnail or full image. On my plugin its only on thumbnails. What code would i need to add to the codebase.php file in the plugin.

Great plugin

Pete
Title: Re: Add thumbnails to Lightbox
Post by: lordprodigy on May 18, 2006, 05:42:38 pm
Yah I would also be interested in adding the photo to the Lightbox from the intermediate size and not from the thumbnails. If it is not too complicated maybe it could be an option in the config as where to place the "add to lightbox" button.
Title: Re: Add thumbnails to Lightbox
Post by: akulion on October 24, 2006, 02:56:01 pm
Thanks for this plugin - just what I needed and works wonderfully :D
Title: Re: Add thumbnails to Lightbox
Post by: Joachim Müller on October 24, 2006, 07:15:20 pm
@pcp20us & lordprodigy : stop requesting new features on announcement threads.
Title: Re: Add thumbnails to Lightbox
Post by: ir803 on January 16, 2007, 11:09:13 am
Can I still ask a support question on this thread?? I have put this plugin on two sites it works great on mine http://www.ghsimages.co.uk/ (http://www.ghsimages.co.uk/)
but on the site I'm working on http://www.featuredesk.co.uk/featuredesk/index.php (http://www.featuredesk.co.uk/featuredesk/index.php) you can add favourites but on the favorites (lightbox) page I don't see the check box to remove selected images any ideas please.
Title: Re: Add thumbnails to Lightbox
Post by: Qayyom on April 17, 2007, 03:21:26 pm
I think it is not good that any guest / un-loged user can use this option.

it's mean if any guest/user use this option, and it proceed, how can data base save his activity/profile? without any identity of visitor.???

It's mean this is all useless for any visitor

you can visit at PICSnCLIPS.net (http://PICSnCLIPS.net)
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on April 17, 2007, 03:24:12 pm
Favourites are stored in a cookie for guests and the database for registered users. This is not related to the plugin.
Title: Re: Add thumbnails to Lightbox
Post by: Qayyom on April 18, 2007, 10:00:45 am
can i disable this option for guests and unlogged visitors

or alert massage just like "Only for register users" when any guest/ unlogged user click at this option.

=================
Another Question:
----------------------

can i change the title "lightbox" to "favorite"

          or

can i rename "my favorite" to "my lightbox"

actually i want to use same name for this option.

because if any user use this option then he must confuse to find out [where is Lightbox] and where can i find my selected files stored.
Title: Re: Add thumbnails to Lightbox
Post by: kiama on May 29, 2007, 05:01:40 pm
how to change the "Add to lightbox" font to non-bold type?
Title: Re: Add thumbnails to Lightbox
Post by: neil fitzgerald on September 02, 2007, 11:48:40 am
I've been using this plugin with no problems for ages on my 1.4.10 gallery, and with 1.4.12 manual fix. However, I've made a test gallery with a new 1.4.12 install and this is giving me the same problem Carl was having; check boxes are there but no "Add selected" button and no "Add to lightbox" text.  I made another clean install in case some of the settings or hacks reused from my working gallery were at fault, but no change. After staring at it all day I made a new gallery with a 1.4.10 install and the text an buttons are back!
I don't know what anyone needs to know help solve this so please just ask.


ps, I've always found every problem I've had previously has been discussed and solved here. The support is much apreciated. Now, I just hope I haven't missed something obvious on this one :-[
Title: Re: Add thumbnails to Lightbox
Post by: Sami on September 02, 2007, 08:17:27 pm
Edit {gallery-root}/plugins/album_fav_boxes/codebase.php
And add this
Code: [Select]
$pluginid = CPGPluginAPI::installed('album_fav_boxes');
$thisplugin = cpg_get_scope($pluginid);

to both thumb_caption_add_to_favs and thumb_caption_remove_from_favs functions right after global variable definition
Title: Re: Add thumbnails to Lightbox
Post by: neil fitzgerald on September 03, 2007, 12:48:35 am
Thanks Sami, must be on the right track, but I'm not very fluent in these things. I tried a few places that looked like right after global variable definition, for both those functions, but while this does give me the "Add to lightbox" text I still have no "Remove" text or button. So I must be doing it wrong or something else is also needed.
Cheers,
Neil.
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on September 03, 2007, 01:17:57 am
Fixed in 1.2.4 - see start of thread.
Title: Re: Add thumbnails to Lightbox
Post by: neil fitzgerald on September 03, 2007, 01:59:22 am
Sweeeeet ;D
but, needs a <br /> between the thumb caption and checkbox text.
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on September 03, 2007, 02:06:46 am
No it doesn't. The lack of space between the thumb caption and checkbox text is caused by your own changes to the css. Put the spacing back in and it will be fine.

Code: [Select]
.thumb_title {
        padding: 2px;
        display : block;
}
Title: Re: Add thumbnails to Lightbox
Post by: neil fitzgerald on September 03, 2007, 02:37:39 am
That'll do it. My bad. Works perfectly.
Ta.
Title: Re: Add thumbnails to Lightbox
Post by: eka on September 05, 2007, 03:56:38 pm
Hi Nibbler,

I installed the plugin and got this message:

Fatal error: Cannot redeclare theme_display_thumbnails() (previously declared in /home/photogr1/public_html/plugins/album_fav_boxes/codebase.php:122) in /home/photogr1/public_html/themes/classic/theme.php on line 1685

I can't access my cpg pages now.

I read your reply to lordprodigy on the same problem:

"Instead of having this in your theme
Code:
function some_function_name() {
xxx
}

you would have
Code:
if (!function_exists('some_function_name')){
function some_function_name() {
xxx
}


"

I'm not sure I understand what needs to be done.

can you help please.

Thanks.

Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on September 05, 2007, 03:58:41 pm
Attach your theme.php
Title: Re: Add thumbnails to Lightbox
Post by: eka on September 05, 2007, 04:20:42 pm
Hi Nibbler,

here's my theme.php attached.
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on September 05, 2007, 04:30:37 pm
That's the entire sample theme.php isn't it? Remove everything from the file and only copy what you want to change,
Title: Re: Add thumbnails to Lightbox
Post by: eka on September 05, 2007, 04:42:14 pm
Hi Nibbler,

Thank you so much - I did as you suggested.  It worked. Thank you again..

Just one question relating to this problem I faced.
Would deleting the "Add thumbnails to lighbox" folder in the cpg***plugins directory in my database
effectively remove this feature ( instead of unplugging using the plugin manager)?

Just a thought...
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on September 05, 2007, 06:19:12 pm
That would probably break the gallery.
Title: Re: Add thumbnails to Lightbox
Post by: Bleupomme on September 07, 2007, 10:50:09 am
I installed the plugin and everything worked fine. But when I select a user and want to watch the photos uploaded by that user, the first page is displayed well but the pager links and photo links are wrong and "no image to display" message  appears. This is fixed when I uninstall the plugin again
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on September 07, 2007, 04:05:09 pm
Please test with the attached plugin.
Title: Re: Add thumbnails to Lightbox
Post by: Bleupomme on September 07, 2007, 04:16:04 pm
Great, now it works. Thank you
Title: Re: Add thumbnails to Lightbox
Post by: trader on November 22, 2007, 10:20:51 am
Awesome plugin! That favorites feature didn't seem finished without it!

2 questions:
1- Would it be easy to add a "select all" button when adding to lightbox (in thumbnail view)?
2- Would it be easy to set 2 different text languages? (I use english and french)
Title: Re: Add thumbnails to Lightbox
Post by: wwwebguru on January 10, 2008, 11:18:37 am
Here is a funky issue. I simply want to change the word lightbox to Favorites.
Lines 18 Through 26 of codebase.php has the following code:
Code: [Select]
// To change the text, alter the right hand side in this array
$thisplugin->lang = array(
'Add to lightbox' => 'Add to Favorites',
'Remove from lightbox' => 'Remove from Favorites',
'Remove selected' => 'Remove selected',
'Remove all' => 'Remove all',
'Add selected' => 'Add selected',
'Confirm' => "Clear the Favorites ?",
);
I switched it to this:
Code: [Select]
// To change the text, alter the right hand side in this array
$thisplugin->lang = array(
'Add to lightbox' => 'Add to Favorites',
'Remove from lightbox' => 'Remove from Favorites',
'Remove selected' => 'Remove selected',
'Remove all' => 'Remove all',
'Add selected' => 'Add selected',
'Confirm' => "Clear the Favorites ?",
);

When I do this, the plugin only shows the checkbox, not the text for the plugin and no button at the bottom of the page to Add to Favorites either.
In order to restore the plugin, I have to completely delete it and reinstall it from the .zip file. Unpublishing and publishing won't work.

Any clue whats going on??

BTW, I am using CPG 1.414 with the only mod being LightBox JS for Fullsize Popup Slideshow. http://forum.coppermine-gallery.net/index.php?topic=49596 (http://forum.coppermine-gallery.net/index.php?topic=49596)
I am also using v1.25 of this plugin.

Thanks in advance...
Title: Re: Add thumbnails to Lightbox
Post by: socalboy on February 29, 2008, 08:25:22 pm
Hi Nibbler,

This is a great plugin, but is there a way for it to also show up on the main photo after clicking on the thumbnail? I have seen the add to favorites bbcode plugin, but that still shows Add to Favorites if the photo is already a favorite, which deletes the photo out of the favorites. Thanks in advance.

Steven
Title: Re: Add thumbnails to Lightbox
Post by: wwwebguru on March 06, 2008, 12:15:16 pm
Here is a funky issue. I simply want to change the word lightbox to Favorites.
Lines 18 Through 26 of codebase.php has the following code:
Code: [Select]
// To change the text, alter the right hand side in this array
$thisplugin->lang = array(
'Add to lightbox' => 'Add to Favorites',
'Remove from lightbox' => 'Remove from Favorites',
'Remove selected' => 'Remove selected',
'Remove all' => 'Remove all',
'Add selected' => 'Add selected',
'Confirm' => "Clear the Favorites ?",
);
I switched it to this:
Code: [Select]
// To change the text, alter the right hand side in this array
$thisplugin->lang = array(
'Add to lightbox' => 'Add to Favorites',
'Remove from lightbox' => 'Remove from Favorites',
'Remove selected' => 'Remove selected',
'Remove all' => 'Remove all',
'Add selected' => 'Add selected',
'Confirm' => "Clear the Favorites ?",
);

When I do this, the plugin only shows the checkbox, not the text for the plugin and no button at the bottom of the page to Add to Favorites either.
In order to restore the plugin, I have to completely delete it and reinstall it from the .zip file. Unpublishing and publishing won't work.

Any clue whats going on??

BTW, I am using CPG 1.414 with the only mod being LightBox JS for Fullsize Popup Slideshow. http://forum.coppermine-gallery.net/index.php?topic=49596 (http://forum.coppermine-gallery.net/index.php?topic=49596)
I am also using v1.25 of this plugin.

Thanks in advance...

This thing is a month old...anyone have any idea about this?? I am sure one of you coding geniuses is laughing at me because I am missing something simple but humor me (Please...pretty please...ok...no begging)
Thanks again....
Title: Re: Add thumbnails to Lightbox
Post by: Nibbler on March 06, 2008, 01:28:07 pm
The 2 sections of code look identical to me.
Title: Re: Add thumbnails to Lightbox
Post by: paquets on November 15, 2008, 01:25:35 pm
Would it be possible to have more than one lightbox per user? Really great plugin by the way...
Title: Re: Add thumbnails to Lightbox
Post by: melwinnie on January 18, 2009, 11:33:00 pm
Great plugins Nibbler and thank you so much. I seem to have a conflict I think between two of your plugin mods I have installed.

I am using Add Thumbnails to Lightbox and have also installed the User Gallery Alphabet Tabs plugin.

When I attempt to browse the users gallery album I receive this error:

Fatal error: Cannot redeclare theme_display_thumbnails() (previously declared in /home/.ulrich/missesbeehaven/missesbeehaven.com/gallery/plugins/album_fav_boxes/codebase.php:122) in /home/.ulrich/missesbeehaven/missesbeehaven.com/gallery/plugins/usergal_alphatabs/codebase.php on line 36

Would you be able to point me in the direct on how to fix this or which of the two is the problem?

You can see my gallery at www.missesbeehaven.com/gallery/

Thanks in advance :-)

Cheers
Melanie
Title: Re: Add thumbnails to Lightbox
Post by: Mimer on May 31, 2009, 02:09:05 am
Hi

I get this error when I try to view fullsize images, but only in large Albums:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 72 bytes) in /mounted-storage/home6c/sub001/sc15863-WIQP/www/gal_fa/plugins/album_fav_boxes/codebase.php on line 101

I'vr used the plugin for years but haven't seen this error before.
I've tried to uninstall, reinstall, move the plugin up/down, but nothing works.

Any idea what the problem could be.

Best regards
Mimer  8)

Coppermine install: http://fjotte.com/gal_fa/
Forum install: no bridging
Coppermine version: cpg1.4.23 + Strams MOD pack for 1.4.23 + Pluginpack
Forum version: no bridging
Test user account: Preview / test
Title: Re: Add thumbnails to Lightbox
Post by: Walkinman on March 19, 2011, 04:55:01 am
Hey Folks,

Is there ANY way this plugin can be rectified? I've upgraded to 1.5, as recommended, but really don't want to lose this feature. I understand this forum is for 1.4 plugins, but if Nibbler doesn't mind updating the plugin, that would be awesome. It's a valuable feature for me.

Thank you.

Cheers

Carl
Title: Re: Add thumbnails to Lightbox
Post by: kimchu on September 04, 2011, 04:12:20 pm
Hello,

Someone asked a few years back if it is possible to have multiple lightbox or multiple favorites per user. Is this possible with this plugin ? I'm evaluating coppermine verses 4Images and this is a needed feature.

Thanks,

Kim