rejetto forum
Software => HFS ~ HTTP File Server => Topic started by: D on September 08, 2023, 12:45:02 PM
-
I am using a script for displaying folder previews
{. if|{. exists|%item-folder%{.decodeuri|%item-url%.}.jpg .}| <img src="%item-url%.jpg" /> | .}
It doesn't work for some folders using cyrillic names. What can I do about it?
-
try to have on screen the result, so maybe the problem will be clearer.
The easier way is to have {.decodeuri|%item-url%.} duplicated, after your code. That should make it visible.
Did you consider using HFS 3?
-
The easier way is to have {.decodeuri|%item-url%.} duplicated, after your code. That should make it visible.
Only worked for already good folders.
Did you consider using HFS 3?
What scares me is that I'll need to rebuild everything from scratch.
-
Only worked for already good folders (attached a pic)
ok but what do you see on "bad" folders ?
What scares me is that I'll need to rebuild everything from scratch.
if you want I can try to help you with that
-
ok but what do you see on "bad" folders ?
Nothing at all.
if you want I can try to help you with that
How?
-
what is the URL of the folder?
you can omit the server/IP part, to keep it private
How?
You can contact me on telegram or gmail chat, and we can have a closer look at what you need
-
Did you try removing the decodeuri? like this
{.exists|%item-folder%%item-url%.jpg .}
but command "exists" works both with url and with path on disk, so you can also try
{.exists|%item-resource%.jpg .}
or something like this, i'm not sure if item-resource has a final \
-
Did you try removing the decodeuri? like this
{.exists|%item-folder%%item-url%.jpg .}
Yes, it's even worse, almost no pics appear.
but command "exists" works both with url and with path on disk, so you can also try
{.exists|%item-resource%.jpg .}
or something like this, i'm not sure if item-resource has a final \
Yes it does: {.exists|%item-resource%\.jpg.} - this one works perfectly, thank you.
You can contact me on telegram or gmail chat, and we can have a closer look at what you need
Telegram - @rejetto ?
-
this one works perfectly, thank you.
nice. btw, are you using 2.3 or 2.4?
Telegram - @rejetto ?
yes, if you'd like to use version 3 in the future, consider contacting me anyway, as I'm interested in understanding what are real customization needs, I'm still "shaping" version 3.