Articles Archive for 31 mai 2004
PHP, plugins, sql »
Out of a post (eg: in index.php)
// Generate tags to display several random pictures from a specific Coppermine album (if -1 : from all albums)
function CPGRndPicture($aid=-1, $count =-1, $nSize=1,$before=”,$after=”, $activelink=true, $dummy=”) // Generate tags to display a full album from a specific Coppermine album (if -1 : from all albums)…
function CPGAlbum($aid, $nCols=4, $nSize=1, $beforeCol=”", $afterCol=”", $beforeRow=”", $afterRow=”")
// Get the name of an album
function CPGAlbumName($aid)
// Get the name of a category
function CPGCategoryName($cid)
// Get the number of pictures within an album
function CPGAlbumPicCount($aid)
// Get …
Uncategorized »
Well, I was too fast to deliver the psnGallery2…In the sql, included in the “package”. There is a “(” too much !
In order to fix the issue. Execute the following sql (eg, from phpMyAdmin) :
UPDATE wp_psnGallery SET value = ‘CPGPicture($elems[ 0 ], $elems[ 1 ], $elems[ 2 ], $elems[ 3 ], $elems[ 4 ], $elems[ 5 ], $elems[ 6 ]);’ WHERE “kind” = ‘TAG’ AND “key” = ‘picture’ LIMIT 1 ;
And here is sample of the display of one specific picture via the tag <cpg_picture>759|1</cpg_picture>
759|1
