Path für Imgalbum

Ein CMSimple Support Forum für deutsch sprechende Nutzer und Entwickler
earlybird
Posts: 12
Joined: Sun Apr 01, 2018 6:44 pm

Re: Path für Imgalbum

Post by earlybird » Wed Apr 04, 2018 7:28 pm

Hallo zusammen.

habe http://3-magi.net/de/?CMSimple_XH/Foldergallery_XH ausprobiert aber leider keine guten Ergebnisse erzielt! :-(

Jetzt habe ich von http://pluginxh.iseye.eu/?Plugins/Fotorama Fotorama installiert!
Funktioniert "super" und ist einfach zu administrieren!!

Kann ich diese Thema auf erledigt setzen ?

Nochmal Danke an alle Helfer

mit freundlichem Gruß
Jürgen

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Path für Imgalbum

Post by cmb » Wed Apr 04, 2018 9:33 pm

earlybird wrote:
Wed Apr 04, 2018 7:28 pm
Kann ich diese Thema auf erledigt setzen ?
Halte ich eigentlich für unnötig. Auch wenn sich das Thema für dich erledigt hat, möchten andere die Diskussion vielleicht noch fortführen. :)
olape wrote:
Wed Apr 04, 2018 5:05 pm
Was ich jetzt nicht nachvollziehen kann, warum muss man im Plugin überhaupt den Pfad konfigurieren, wenn man anschliessend mit dem Pfad aufruft?
Vielleicht muss man das ja auch gar nicht, sondern hätte nur {{{imgalbum("gallerie");}}} schreiben müssen.
Christoph M. Becker – Plugins for CMSimple_XH

lck
Posts: 2955
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Path für Imgalbum

Post by lck » Thu Apr 05, 2018 10:27 am

olape wrote:
Wed Apr 04, 2018 5:05 pm
Was ich jetzt nicht nachvollziehen kann, warum muss man im Plugin überhaupt den Pfad konfigurieren, wenn man anschliessend mit dem Pfad aufruft?
Aber wie schon geschrieben, ich kenne das Plugin nicht.
Diese Option der Pfadangabe gibt es in der Plugin-Konfiguration eben nicht.
cmb wrote:
Wed Apr 04, 2018 9:33 pm
Vielleicht muss man das ja auch gar nicht, sondern hätte nur {{{imgalbum("gallerie");}}} schreiben müssen.
Ja könnte man, aber gibt man es so ein, so wir der Ordner der Galerie halt im Root von CMSimple_XH erstellt, also unter ./gallerie/

Aber so oder so angegeben, da stimmt auch etwas mit der Plugin-Administration nicht. Die Galerie kann einfach nicht auswählen, bzw. taucht in der Select-Liste gar nicht auf, da steht nur " /". Sieht in der Adresszeile dann so aus:

Code: Select all

http://localhost/cmsimplexh172/?&imgalbum&admin=plugin_main&path=%20/&action=view
Ändere ich das zu

Code: Select all

http://localhost/cmsimplexh172/?&imgalbum&admin=plugin_main&path=userfiles/images/imgalbum/&action=view
... kann man die Galerie bearbeiten.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Path für Imgalbum

Post by cmb » Thu Apr 05, 2018 11:28 am

lck wrote:
Thu Apr 05, 2018 10:27 am
Diese Option der Pfadangabe gibt es in der Plugin-Konfiguration eben nicht.
Ah, danke!
lck wrote:
Thu Apr 05, 2018 10:27 am
Aber so oder so angegeben, da stimmt auch etwas mit der Plugin-Administration nicht. Die Galerie kann einfach nicht auswählen, bzw. taucht in der Select-Liste gar nicht auf, da steht nur " /". Sieht in der Adresszeile dann so aus:

Code: Select all

http://localhost/cmsimplexh172/?&imgalbum&admin=plugin_main&path=%20/&action=view
Da scheint sich ein Leerzeichen (kodiert als %20) eingeschlichen zu haben. Bei mir (diverse PHP-Version; alles XAMPP unter Windows) funktioniert {{{imgalbum('./userfiles/images/gallery');}}} (auch ohne ./ am Anfang) wie gewünscht.
Christoph M. Becker – Plugins for CMSimple_XH

lck
Posts: 2955
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: Path für Imgalbum

Post by lck » Thu Apr 05, 2018 11:40 am

cmb wrote:
Thu Apr 05, 2018 11:28 am
Da scheint sich ein Leerzeichen (kodiert als %20) eingeschlichen zu haben. Bei mir (diverse PHP-Version; alles XAMPP unter Windows) funktioniert {{{imgalbum('./userfiles/images/gallery');}}} (auch ohne ./ am Anfang) wie gewünscht.
Tatsächlich Christoph :shock: , da war doch ein Leerzeichen vor dem ersten einfachen Anführungsstrich ( 'userfiles/...)!

Code: Select all

{{{imgalbum( 'userfiles/images/imgalbum');}}}
Also, geht auch ohne ./ am Anfang, im Select-Menu steht halt dann Userfiles/images/imgalbum/.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

simpleSolutions.dk
Posts: 155
Joined: Thu Oct 06, 2011 7:00 am

Re: Path für Imgalbum

Post by simpleSolutions.dk » Thu Apr 05, 2018 11:44 am

Hi
If anybody still needs my heip, please write English

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Path für Imgalbum

Post by cmb » Thu Apr 05, 2018 11:54 am

simpleSolutions.dk wrote:
Thu Apr 05, 2018 11:44 am
If anybody still needs my heip, please write English
It seems the issue has been resolved, but maybe you could improve the gallery detection somewhat. Presently, the following plugin call does not work as expected:

Code: Select all

{{{imgalbum( './userfiles/images/gallery');}}}
Note the space immediately following the opening bracket. Line 439 in gallery_adminfunctions.php sets $i to " " in this case:

Code: Select all

$i = trim(substr($i, 0, strpos($i,"'",1)),"'");
Perhaps inserting the following line before would make the recognition more resilient:

Code: Select all

$i = trim($i);
Christoph M. Becker – Plugins for CMSimple_XH

simpleSolutions.dk
Posts: 155
Joined: Thu Oct 06, 2011 7:00 am

Re: Path für Imgalbum

Post by simpleSolutions.dk » Thu Apr 26, 2018 9:14 am

The short story is that If you have read documentation, you would never experience any path problems. Just to quote documentation:
to create and view a gallery folder enter
{ {{imgalbum( "path_to_gallery_folder );}}} (without space between "{ {{")
somewhere on your page.
Save your page and finish editing by switching to "view mode" and plugin will create all necessary folders. Use plugins administrations interface or ftp to upload images. The plugin creates itself necessary thumbnails and watermarks according to settings in plugin configuration file.
.
It should be not necessary but I will implement Christophs suggestion in next release.

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Path für Imgalbum

Post by frase » Fri Apr 27, 2018 1:20 pm

@Jerry

In plugins\imgalbum\libs\lightbox\js\lightbox.js in line 56 + 57 is a typo:
(Images not found.)

Code: Select all

fileLoadingImage:        './plugins/imgcarousel/libs/lightbox/images/loading.gif',
fileBottomNavCloseImage: './plugins/imgcarousel/libs//lightbox/images/close.gif',
It must to be called:

Code: Select all

fileLoadingImage:        './plugins/imgalbum/libs/lightbox/images/loading.gif',
fileBottomNavCloseImage: './plugins/imgalbum/libs//lightbox/images/close.gif',

frase
Posts: 5085
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: Path für Imgalbum

Post by frase » Fri Apr 27, 2018 2:14 pm

cmb wrote:
Thu Apr 05, 2018 11:54 am
Perhaps inserting the following line before would make the recognition more resilient:

Code: Select all

$i = trim($i);
In File \plugins\imgalbum\libs\gallery_adminfunctions.php insert this line in 438:

Code: Select all

...
if(strlen($i)>0){
    $i = trim($i);  // ***NEW***
    $i = trim(substr($i, 0, strpos($i,"'",1)),"'");
    ...
Call the plugin with (here with subfolder)

Code: Select all

{{{imgalbum('gallery/grafik');}}}
Result:
imgalbum.png
It works.

But, in Adminmode I have a Debug-Message:
WARNING: in_array() expects parameter 2 to be array, null given
...\plugins\imgalbum\libs\prettyphoto\index.php:23
You do not have the required permissions to view the files attached to this post.

Post Reply