Catégorie : WordPress

  • psnGallery2 : Syntax clarification : Out of Post

    Out of a post (eg: in index.php)

    • To display several random pictures from a specific Coppermine album (if -1 : from all albums) : CPGRndPicture($albumid, $count, $nSize,$before,$after, $activelink)
    • Generate tags to display a full album from a specific Coppermine album (if -1 : from all albums)… : CPGAlbum($albumid, $nCols, $nSize, $beforeCol, $afterCol, $beforeRow, $afterRow)
    • Get the name of an album : CPGAlbumName($albumid)
    • Get the name of a category : CPGCategoryName($categoryid)
    • Get the number of pictures within an album : CPGAlbumPicCount($albumid)
    • Get the album name list of a category : CPGAlbumListCategory($categoryid, $count, $nSize, $before, $after)
    • Display a picture (in some modes) : CPGPicture($pictureID, $nSize, $before, $after, $mode, $dummy)
    • Display the specific thumbnail associated with an album : CPGAlbumThumb ($albumid, $nSize, $before, $after)

    Parameters explanation :

    • « $albumid » and the « $pictureid » can be found in the « psnGallery2 » Administration page.
    • « $count » represents the number of pictures to display.
    • « $nSize » is the size of the picture to display (1=thumbnail, 2=normal size and 3 is the fullsize picture)
    • « $before » is the string (HTML) to insert before each picture
    • « $after » is the string (HTML) to insert after each picture
    • « $categoryid » is the category of the album to display
    • « $mode » will display different supplemental information on the picture according the mode (EXIF data, statistic, etc…).
  • WPPlugin psnGallery2 1.3.1 coming soon !

    The new version of psnGallery2 will be soon out.

    List of new features and their statuses :

    • « picture id » displayed via mouseover
    • « EXIF info » displayed if present
    • « Most Viewed » function as in Coppermine (overall or for a specific category/album)
    • « Last Uploaded » function as in Coppermine (overall or for a specific category/album)
    • « Best Rated » function as in Coppermine (overall or for a specific category/album)

    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 ! 🙂

  • psnGallery 2 Sticky information

    What’s that ?

    It provides you an « gateway » between your Coppermine Gallery and your WordPress Blog.

    A lot of functionnalities for your Blog within a post or outside a post !

    How to make it work ?

    The main requirements are to have installed :

    If those applications are up and running, only few steps are required :
    (suite…)

  • psnGallery 1.3.0Alpha Fix

    due to a small little tiny bug, the size selection is not working.

    To fix the issue :
    (suite…)

  • WP-plugin : psnGallery2 version 1.3.0Alpha is out !

    As you know I am working on psnGallery 1.3.0. I have decided to provide you the possibility to view it as I will be not available a while (I am going on holiday abroad).

    All the plugin parameters are displayed in the psnCPGAdmin module.

    The new functionnalities are :
    (suite…)

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

  • IE User : Don’t wait for IE version 9.7.8.1 to have PNG transparency

    Already in the past, I mentionned this stupid issue with IE… if you don’t use GIF image, you have no transparency ! The full support of PNG image is not supported by IE. To refresh your memories : usage of gif instead of png.

    I was surfing and I found this hack. Which is more than easy to implement and it seems it works more than perfectly !

    It is composed by a single clever java script ! Amazing ! Microsoft developpers should have a look at the code ! 🙂

  • psnGeneric version 1.0.1 finally out !

    the plugin « psnGeneric version 1.0.1 is finally out ! It was announced few weeks ago…But I had a lot of work to do that’s why it is out only today !

    So what’s the plugin ?

    Do you see the « quote » block on the left side of this site ? and the « download » filelist block (also on the left side) ? Both are done via the psnGeneric version 1.0.1

    So in other word, it is something that display an extract or a full list of records based on a criteria.

    For the « quote » example, here is the line added in my « index.php » : the_genRandom( 'QUOTE',1,'','','', ''); .
    For the « download » example, the following code is used : genList( 'WPHACK',100,'','','', '');

    How to create/manage those lists ?

    I create a small administration page for that.

    Three different actions are possible : editdeletecreate.

    Everything is done via a very easy and intuitive tabular interface.

    [EDIT]
    In order to fix a small mySQL syntax issue (for old mySQL versions), you have to update the line 94 of wp-admin/psnGENAdmin.php as below :

    Change $psnSQLLimit = "LIMIT ".$psnLimit." OFFSET ".$psnOffset;
    into $psnSQLLimit = "LIMIT ".$psnOffset.",".$psnLimit;

    Thanks Bernd Pressler to notify me about this.

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