PHP 1 min de lecture · 112 mots

psnGallery 1.3.0Alpha Fix

Estimated reading time: 1 minute

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

To fix the issue :

in function psnExtractTags($cBuffer, $cTag, $cEval), search for $GalleryTag = substr($GalleryTag,0,strpos($GalleryTag, "« )-1); find the line of code, simply remove the « -1« .

À 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.

  1. Great! It is finally working – for almost every constallation. But I have still problems with this album: http://www.pixal.de/cpg/thumbnails.php?album=5. I used in CPG the « Admin Tools », then « Delete original size photos ». After that, the normal pictures (called « normal_xxx.jpg ») were re-named (to « xxx.jpg »). The tumbs are still called « thumb_xxx.jpg ». Now your plugin is unable to detect wether the normal-sized-picture-file has the prefix « normal_ » or not; in this particular case (see my album no. 5) your plugin gives me the correct filename and a link to the cpg, but can not display the picture. Any suggestions?

  2. Sorry, I couldn’t reproduce the problem. I tried this again with other albums, but after updating thumbs and resized pictures, everything seemed to be working just fine… don’t bother about my last post then, maybe the album no. 5 is just corrupt…

    Thanks again!