Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

get name of the image in gallery

More
8 years 10 months ago #151863 by Wdson
get name of the image in gallery was created by Wdson
Hello! I wonder how to get the file name in a particular gallery, and how this name is generated.

imgur.com/8MfsWZe

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #151870 by Lefteris
Replied by Lefteris on topic get name of the image in gallery
Hi,

You are using a really old version of Simple Image Gallery PRO. In the latest versions the file name of the uploaded image is not changed.

Regarding the file name, it is available in the layout overrides with the following code:
<?php echo $photo->filename; ?>

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago - 8 years 10 months ago #151886 by Wdson
Replied by Wdson on topic get name of the image in gallery
Hi!

In the old version, which type of encryption is used to generate the file name? MD5? which used key?

For example, in K2, the file name is generated as using MD5: ("image" + itemid) _L.jpg
Last edit: 8 years 10 months ago by Wdson.

Please Log in or Create an account to join the conversation.

More
8 years 10 months ago #151912 by Lefteris
Replied by Lefteris on topic get name of the image in gallery
There was no pattern for this. It was using PHP's uniqid function: php.net/manual/en/function.uniqid.php .

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum