forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 plugins => Topic started by: peterlustig on October 26, 2010, 03:42:50 pm

Title: Adding all pictures of an album to favorites
Post by: peterlustig on October 26, 2010, 03:42:50 pm
Dear all,

having migrated from 1.4.27 to 1.5.8 (also only with your help...) and having had a realm look on the features and built of the new coppermine, I have to say: THANK YOU! Looks and feels really good!

However, I still have some bugs/minor problems which I'd like to report (I am using Firefox 3.5), here's the third one:

3. Album addfav plugin
I very much liked the ability to add a whole album at once to the favorites (thus allowing easy exchange/download of pictures). Is this possibility somehow incoroporatet into the core, or will we have to wait for the plugin to get adapted to 1.5x (sorry, I am not able to do this myself...). (Not sure, whehter this belongs here or in the plugin-section of this forum).

Thanks a lot for any help.

Cheers, Peter
Title: Re: Adding all pictures of an album to favorites
Post by: peterlustig on October 26, 2010, 05:03:16 pm
...and for this one I also found the update: http://forum.coppermine-gallery.net/index.php/topic,63623.0.html (http://forum.coppermine-gallery.net/index.php/topic,63623.0.html)

Just had a look here http://coppermine-gallery.net/plugins.php?cpg_version=both&sort=category&submit=#album_addfav_cpg14x (http://coppermine-gallery.net/plugins.php?cpg_version=both&sort=category&submit=#album_addfav_cpg14x) and thus thought that there was no version for 1.5 available. Maybe "1.5" should be added there?

Cheers, Peter
Title: Re: Adding all pictures of an album to favorites
Post by: peterlustig on October 26, 2010, 05:18:44 pm
....but on the other hand, as discussed in this thread http://forum.coppermine-gallery.net/index.php/topic,63623.20.html (http://forum.coppermine-gallery.net/index.php/topic,63623.20.html) the plugin is not working under 1.5. At least, the same problem other users describe persists with me as well: broken thumbnail-pages....
Title: Re: Adding all pictures of an album to favorites
Post by: Αndré on October 29, 2010, 11:58:13 am
Moving your thread from cpg1.5 install to cpg1.5 plugins.

That still applies:
On your gallery I can confirm that the thumbnail pages results in blank pages. I cannot confirm that behavior in my testbed, so you're on your own. Have a look at the codebase.php file. There's just one important line:
Code: [Select]
$html = preg_replace('/(<td style="vertical-align:top" class="statlink">.*<h2>)(.*)(<\/h2>.*<\/td>)/Usi', '\\1\\2 <a href="index.php?file=album_addfav/add&amp;aid='.$superCage->get->getInt('album').'" title="Add all pictures of this album to your favorites"><img src="images/icons/favorites.png" border="0" style="display:inline" /></a>\\3', $html, 1, $count);
Try to figure out what the problem is and report back.
Title: Re: Adding all pictures of an album to favorites
Post by: Αndré on November 30, 2010, 05:58:15 pm
Marking as solved, as that issue has been fixed (http://forum.coppermine-gallery.net/index.php/topic,63623.msg336384.html#msg336384).