Here is the fast track for the « dash » in database name issue !
The release is only fixing this specific issue.
click psnGallery2 version 1.3.2 to get it.
Here is the fast track for the « dash » in database name issue !
The release is only fixing this specific issue.
click psnGallery2 version 1.3.2 to get it.
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'];
with
$info['TBLPREFIX'] = '`'.$info['DBNAME'].'`.'.$info['TBLPREFIX'];
This will fix the issue !
The new version of the psnGallery2 has been released !
As announced, the new functionnalities are :
They are available via tags in post and via php functions anywhere else.
The automatic install script will be soon available…
If I have time, the psnGallery2 version 1.3.1 will be available for download tonight (GMT+2).
It includes few fixes and the 3 new tags described in the previous post.
I have also scheduled for a near future to improve the install/upgrade procedure, it will be based on the WordPress install/upgrade script.
The install functionnalities will be :
I give no date for this but it could be soon (depending on the free time I will have in the coming days, weeks)
I will keep you posted on the evolution of that script.
Here are the new tags :
<cpg_mostviewed> which displays the most viewed pictures for an album or overall defined albums :
<cpg_bestrated> which displays the best rated pictures for an album or overall defined albums :
<cpg_lastup> which displays the latest uploaded pictures for an album or overall defined albums :
For both tags, the parameters are : albumid|count|nSize|before|after|activelink
Within a post
Parameters explanation :
Out of a post (eg: in index.php)
Parameters explanation :
The new version of psnGallery2 will be soon out.
List of new features and their statuses :
A demo page will also be created soon to demonstration all the functionnalities of the « psnGallery2 » plugin.
I can’t say now when it will be out, I am rather busy at work, at home for the moment but it should not take long to be out ! 🙂