Étiquette : psnGallery

  • “Header Image generator” integrated

    I added the well-done plugin of Joel Bennett. It allows to replace text into an image… Very easy to use, very powerfull !

    More than probably I will created few new functionnalities….(eg: merge with psnGallery)

    All titles of all posts are for the moment using that plugin.

  • small issue in psnGallery2

    Issue description: If the <cpg_xxxx> tag is used with only 1 parameter and no separator, nothing is displayed.
    Discover by: William Spaetzel
    Final Fix : next release (probably 1.3.0)
    Workaround: use the tag with parameters (eg: <cpg_gallery>3|2|1</cpg_gallery> instead of <cpg_gallery>3</cpg_gallery>)

  • psnGallery2 v1.2.2 is available to download

    I fixed few issues, I followed the advices of several of you and specially those from Tarique Sani (Lead Dev Coppermine).

    Just click the download link here or on the download menu.

    As usual, if you have issue… Leave a comment !

  • Why idahocline.com and idahocline.info ?

    Well, at first sight both sites are equal… In fact, idahocline.info was created in the hurry due to issue with the webhoster of idahocline.com. But normally, idahocline.info should have been created a little later.

    In fact, I planned to create another site dedicated to Web Development with everything related. So let’s say that this site will be soon totally redesigned to be more developper oriented, with different areas, like :

    • CSS/xHTML : Templates / tutorials / links
    • Design : Ideas, discussions about Web Designs
    • PHP/mySQL : Tips and tricks for PHP, mySQL, …
    • WordPress : plugins, tips & tricks, …
    • Showcase : portfolio of several projects done or in progress
    • Testing area : do you really don’t know what it is ? 😉

    Normally this site with architecture above will be online soon, probably end of June….

    Of course, idahocline.com will stay online but will be more focused on my wife and I.

    I am also working on several other WP plugins (with an administration page):

    • psnGeneric v1.0.0 : Random Item: Random Quotes, Books, … based on a table (Totaly generic)
    • psnGallery2 v1.3.0 : Coppermine Gallery (including all supported formats)
    • psnStat v1.0.0 : TFS WebStatistics
  • Further information on psnGallery2 tags/functions

    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 the album name list of a category
    function CPGAlbumListCategory($cid, $count=-1, $nSize=1, $before='', $after='')

    // Display a picture (in some modes)
    function CPGPicture($pictID, $nSize=1, $before='', $after='', $mode='picture', $dummy=0)

    // Display the specific thumbnail associated with an album
    function CPGAlbumThumb ($aid, $nSize=1, $before='', $after='')

    Within POST

    Tag defined Associated function Action

    • <cpg_album> => CPGAlbum($elems[ 0 ], $elems[ 1 ], $elems[ 2 ], $elems[ 3 ], $elems[ 4 ], $elems[ 5 ], $elems[ 6 ]);
    • <cpg_albumcatlist> => CPGAlbumListCategory($elems[ 0 ], $elems[ 1 ], $elems[ 2 ], $elems[ 3 ], $elems[ 4 ]);
    • <cpg_albumname> => CPGAlbumName($elems[ 0 ]) ;
    • <cpg_albumpiccount> => CPGAlbumPicCount($elems[ 0 ]);
    • <cpg_albumthumb> => CPGAlbumThumb($elems[ 0 ], $elems[ 1 ], $elems[ 2 ], $elems[ 3 ], $elems[ 4 ], $elems[ 5 ], $elems[ 6 ]);
    • <cpg_categoryname> => CPGCategoryName($elems[ 0 ]) ;
    • <cpg_gallery> => CPGRndPicture($elems[ 0 ], $elems[ 1 ], $elems[ 2 ], $elems[ 3 ], $elems[ 4 ], $elems[ 5 ], $elems[ 6 ]);
    • <cpg_picture> => CPGPicture($elems[ 0 ], $elems[ 1 ], $elems[ 2 ], $elems[ 3 ], $elems[ 4 ], $elems[ 5 ], $elems[ 6 ]);
    • <gallery> => CPGRndPicture($elems[ 0 ], $elems[ 1 ], $elems[ 2 ], $elems[ 3 ], $elems[ 4 ], $elems[ 5 ], $elems[ 6 ]);

    Of course, $elems[ x ] will be replace by the according value:

    In other words : <cpg_gallery>1|5|1</cpg_gallery> will become CPGRndPicture(1, 5, 1,  »,  »,  »,  »); and finally :

    Another example : <cpg_picture>275|1</cpg_picture> will become CPGPicture(275, 1,  »,  »,  »,  »,  ») and finally :

  • cpg_picture quickfix

    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>

    Dscn0190.jpg

  • psnGallery2 version 1.2.1

    So ! Here we go !

    The release of psnGallery 2 (wordpress + Copermine) is out since few days but as you know, the idahocline.com is down for unknow reason without news from the webhoster ! 🙁

    So as promised, here is the zip of the plugin

    Have fun with it ! :o)

  • psnGallery 2 Version 1.2.1 released !

    As promised, the new release is available for download !

    Click on download to get it !

    Keep me inform if you encounter any issue !

  • psnGallery2 1.2.1 changes overview

    Well, I know it is always annoying to wait for news…. So here are some… 🙂

    The most important addition/change with the release is the fact that all the configuration parameters are now stored in a table in the « wordpress » database (see below to have further information).

    Here are the differents news functionnalities available with psnGallery2 1.2.1 :

    • User Defined tags for posting where you associate a tag to php code
    • Coppermine Albums viewer within WP-Admin area
    • Coppermine Pictures viewer within WP-Admin area
    • psnGallery2 parameters viewer within WP-Admin area
    • Fix of few bugs
    • etc…

    In the future versions, I will add a « online » configuration of psnGallery2.

    (suite…)

  • psnCPGAdmin preview (psnGallery2 admin page)

    According the WordPress Support forum, several requests appeared..about having a way to found out the albumid, the pictureid, etc…

    So, my answer is :

    Here is a preview of the Administration page for psnGallery2 plugin.

    psnCPGAdmin Overview

    psnCPGAdmin Overview

    The new psnGallery2 will be out soon. In fact, I am reviewing the way of handling the « customized » tags and as you can imaigne in the preview above, a management of the plugin parameters is done now via another way (a configuration table). This is in test phase since yesterday.

    If I have enough time, the new release (including the admin page) will be available for download tomorrow night (GMT+2).