Bookmarks for 8 septembre 2008 through 10 septembre 2008

These are my links for 8 septembre 2008 through 10 septembre 2008:

Near Future Posts plugin

For an external development I needed to be able to display future posts but not all future posts. I started with the future posts plugin of Michael Moncur but it doesn’t fit to what I really needed.

The posts to be displayed should have been maximum 20 days in the future…

So the plugin is now able to display the future posts of ‘x’ days (defined via an simple administration screen).

Continue reading “Near Future Posts plugin”

psnGallery2 1.4 preview

As you know I had some hard time those last weeks : too much work no enough time ! Well, I assume it is end-of-year related as it is like that every year !

Oops ! I said that it is “end-of-year” period…. Oh ! No ! No gift ?!?!!!

Well, in fact there is a gift : my famous psnGallery2 new version (1.4.0) will be soon available…probably current of the coming week.

The major innovations are :

  • Install / Upgrade script (as simple as the one from WordPress !)
  • psnCPGAdmin.php has been reviewed to allow to display albums without categories (sorry to be so late, Sophist…)
  • fixes of several bugs

To install or to upgrade to this version, you will have to fill in the following screen :


Here below, some snapshots of the install script and of the psnCPGAdmin…

So this will be soon available for download ! Christmas time ! 😉

Continue reading “psnGallery2 1.4 preview”

psnGallery2 fix for dash in the database name !

Well, I was helping Peter to use psnGallery2…And I finally found the issue :

His Coppermine database name was like “database-coppermine” ! So in the code, to be able to handle several databases (one for WordPress and another for Coppermine), the plugin is using this kind of syntax :

select * from database-coppermine->cpg110_config this causes a mySQL Error ! Because the first dash seems to be considered as a special character !

To fix this, I will deliver very soon the release 1.3.2 !

In the meantime, if you have the issue, simply replace in psnGallery2.php (around line 164)

$info['TBLPREFIX'] = $info['DBNAME'].'.'.$info['TBLPREFIX'];
$info['TBLPREFIX'] = '`'.$info['DBNAME'].'`.'.$info['TBLPREFIX'];

This will fix the issue !