Étiquette : coppermine

  • 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 :

  • 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…)

  • How to install and use “psnGallery” module

    Here is the draft version of the « how to install » and « how to use » psnGallery module

    (suite…)

  • Tag Gallery added in Posting…

    I have implemented a new tag in any post…

    The tag <gallery>AlbumID|Count|Size</gallery> !

    This in conjunction with the « psnGallery.php » addon allows you to display within a post « Count » random pictures from the Coppermine Album « AlbumID » in the « Size » (1= small, 2=normal).

    For example, to get 4 random small pictures from the Album 6 (Boussole), the following command <gallery>6|4|1</gallery> will give :

    Easy no ? In my-hacks.php, you have to add…
    (suite…)

  • Addons for WP available for download

    I worked all the week-end in my house (in the kitchen in fact). Some manual work, « bricolage » as we say in French….But I took few seconds to deliver you few of my modules for WordPress.

    So now, you are able to download :

    • psnStat which is the TFS addon module (you can see it in action on the right side of this page, requires TFS installed).
    • psnStatGraph which is the Pie3D of psnStat (requires JPGraph)
    • psnGallery which is the Coppermine addon (you can see it in action on this site, each time you see « random » pictures they are coming from a Coppermine album of the galleries.arewel.com ).

    I hope you will have fun with those add-ons to WordPress.

    If you use one of those scripts, please, let me know !
    If you want few adaptations or new functionnalities, I will be happy (if possible) to do it !

    Read you soon !

  • Previous modules back online (random pictures, quotes)

    I added 2 modules to this site.

    • « random pictures » module from the Coppermine Gallery is available. It shows pictures from the galleries
    • « Quote of the day » module is also available

    Of course, those modules will be available for download very very soon (in few hours)….via the new module « Generic List » which is nearly finished. It was already on the former site, but to increase the compatibility with WordPress, I still few works to do (usage of the WPDB class).

  • New modules foreseen for WP

    Several people ask to have an integration of several « pictures galery » systems in WP. As I already wrote the Coppermine Integration. I will try to integrate few other systems as 4Images gallery and Gallery.

    The basic functionnalities will be the same as for Coppermine :

    – Random pictures for an album
    – List of all albums with x random pictures for each sub-albums.

    I hope I will have the time to write those add-ons this week-end.

  • Random Image block from COPPERMINE gallery

    Yeap ! First step…

    Now the WordPress has a « limited » access to COPPERMINE (the gallery part of this site).

    ————————————-
    Eh oui ! Le premier pas…

    Maintenant mon WordPress dispose de fonctionnalit

  • Integration of Coppermine Gallery in WordPress

    In few days, I have sceduled to port Coppermine Gallery to WordPress.

    The main issue will be the « frontend ». It is a project so I still not have the full picture of it… I will keep you posted on the evolution of this project….