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.

Use file names for captions with Simple Image Gallery Pro

  • Mohammed Khedr
  • Mohammed Khedr's Avatar Topic Author
  • Offline
  • New Member
More
9 years 8 months ago #143280 by Mohammed Khedr
Hello,

I am trying to Use the images file names for captions automatically with Simple Image Gallery Pro .

Joomla version is : v3.4.1
Simple Image Gallery Pro : v3.0.7

I saw someone used this tutorial but not worked for me and I think it is old one :

www.pixelfire.com.au/joomla-website-tutorials/item/155-use-file-names-for-captions-with-simple-image-gallery-pro

and I think I should change the code inside this file but please I need help what should I do ?

Thanks

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

More
9 years 8 months ago #143303 by Lefteris
Hi,

The tutorial is correct but the code you need to insert is stripped out in that page. Use that code:
<span class="sigProPseudoCaption"><b><?php echo $photo->captionTitle; ?></b></span>
<span class="sigProCaption" title="<?php echo $captionTitle; ?>"><?php echo preg_replace('/\.\w{3,4}$/i', '', $photo->filename); ?></span>

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