Add all pictures/files from a particular album to your favorites - Page 2 Add all pictures/files from a particular album to your favorites - Page 2
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Add all pictures/files from a particular album to your favorites

Started by Αndré, April 27, 2009, 08:45:39 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

peterlustig

thanks a lot for your support! however, replacing the function didn't help :(  (I did so by changing a version of `codebase.php' on my harddisk and then transferring on the plugins folder via ftp, overwriting the existing file)

No seemingly change in what's going on, I still get a blank page when clicking on an album....

Αndré

Can you give me ftp access to your plugin directory? If yes, I'll give you my email address.

peterlustig


Αndré

Problem solved. Your PHP version is too old for my plugin. The count parameter was added in PHP 5.1.0.

Everyone who is running PHP < 5.1.0 please replace the entire function album_addfav_html with the following code:
function album_addfav_html($html) {
    $html = preg_replace('/<td width="100%" class="statlink"><h2>(.*)<\/h2><\/td>/Usi', '<td width=\"100%\" class=\"statlink\"><h2>\\1 <a href="index.php?file=album_addfav/album_addfav&album='.$_GET['album'].'" title="Add album to favorites"><img src="plugins/album_addfav/favorites.png" border="0" style="display:inline" /></a></h2></td>', $html);
    $html = preg_replace('/<td width="100%" class="statlink">(.*)<\/td>/Usi', '<td width=\"100%\" class=\"statlink\">\\1 <a href="index.php?file=album_addfav/album_addfav&album='.$_GET['album'].'" title="Add album to favorites"><img src="plugins/album_addfav/favorites.png" border="0" style="display:inline" /></a></td>', $html);

    return $html;
}

Joachim Müller