Général 2 min de lecture · 236 mots

How to install and use “psnGallery” module

Estimated reading time: 1 minute

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


How to install « psnGallery » module :

1/ Upload on your server the « psnGallery.php » file.
2/ In « my-hacks.php », add the following line :

require_once(ABSPATH.'wp-modules/psnGallery.php');

Notes :
1/ Of course, replace « wp-modules » with the actual location (where you put the « psnGallery.php » file).
2/ Make sure that Coppermine Gallery is correctly installed and working.
3/ Pay attention to the definition of the following parameters in Coppermine and make sure they are correct :

$CONFIG['ecards_more_pic_target']
$CONFIG['fullpath']

The albums must be located at $CONFIG['ecards_more_pic_target'] .$CONFIG['fullpath']

How to use the module :

Two differents functions exist.

the_Random_picture : Generate XHTML which display random picture(s) from an Coppermine album
the_Album_list : Generate XHTML which display random picture(s) per album within a category ( or categories)

For the parameters of those functions, for the moment, check the code. Or use the sample use in the « New tag gallery in posting »….

À propos de l'auteur

Pascal

Pascal — SRE & Observability Engineer. J'applique les pratiques SRE (SLI/SLO, alerting, observabilité) à mon homelab Proxmox, avec les mêmes exigences qu'en production.

Une remarque, un retour ?

Cet article est vivant - corrections, contre-arguments et retours de production sont les bienvenus. Trois canaux, choisis celui qui te convient.