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.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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 1 Guest 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