Jour : 16 août 2004

  • psnGallery2 : Syntax clarification : In a Post

    Within a post

    • <cpg_album>albumid|nCols|nSize|beforeCol|afterCol|beforeRow|afterRow</cpg_album> : Generate tags to display a full album from a specific Coppermine album (if -1 : from all albums)
    • <cpg_albumcatlist>categoryid|count|nSize|before|after</cpg_albumcatlist> : Get the album name list of a category
    • <cpg_albumname>albumid</cpg_albumname> : Get the name of an album
    • <cpg_albumpiccount>albumid</cpg_albumpiccount> : Get the number of pictures within an album
    • <cpg_albumthumb>$albumid|nSize|before|after</cpg_albumthumb> : Display the specific thumbnail associated with an album
    • <cpg_categoryname>categoryid</cpg_categoryname> : Get the name of a category
    • <cpg_gallery>albumid|count|nSize|before|after|activelink</cpg_gallery> : To display several random pictures from a specific Coppermine album (if -1 : from all albums)
    • <cpg_picture>pictureID|nSize|before|after|mode|dummy</cpg_picture> : Display a picture (in some modes)

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