Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

Basic syntax for activeType="imglist"
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Basic syntax for activeType="imglist"
#9414
Basic syntax for activeType="imglist" 6 Years, 10 Months ago Karma: 0
I'm new to Fancybox, and am having some problems. Can you provide a more in-depth code sample for creating an image gallery with the "Fancybox anywhere" plugin? I do NOT want to create a module for every single box (not practical), so I'm trying to use the following code as a starting point. I'm getting closer, but I don't know all of the proper syntax to use. For example, how do I set the theme? What about limiting to a certain type of image file, such as jpg?

Code:

{arifancybox activeType="imglist" generateThumbs="true" thumbWidth="200" type="gallery" dir="images/front_page/pics"}{/arifancybox}


Thanks for any help you can provide.
Last Edit: 2010/12/12 15:49 By jplacy.
The administrator has disabled public write access.
 
#9416
Re:Basic syntax for activeType="imglist" 6 Years, 10 Months ago Karma: 0
Just a quick follow-up. I'm also confused about the proper syntax for the CSV files.

I'm trying:
Code:

{arifancybox activeType="imglist" generateThumbs="true" thumbWidth="200" type="gallery" descrFile="captions.txt" dir="images/front_page/pics"}{/arifancybox}


... with no luck. titles are not showing up.
The administrator has disabled public write access.
 
#9421
Re:Basic syntax for activeType="imglist" 6 Years, 10 Months ago Karma: 667
Hello,

Use "theme" attribute of {arifancybox} tag that define gallery theme. It accepts the following values:

shadow - shadow theme
pin - pin theme
flora - flora theme
clip - clip theme

Use "fileFilter" attribute of {arifancybox} tag that filter image files. It accepts regular expression which is used for image name. If you want to use "shadow" theme and show only JPEG images, code will look like:

Code:


{arifancybox activeType="imglist" generateThumbs="true" thumbWidth="200" type="gallery" descrFile="captions.txt" dir="images/front_page/pics" theme="shadow" fileFilter="(jpg|JPG)$}{/arifancybox}



Regarding problem with CSV file, could you provide your captions.txt file that we can investigate this problem? Probably this file has incorrect format.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#9427
Re:Basic syntax for activeType="imglist" 6 Years, 10 Months ago Karma: 0
Thanks for your quick reply, this helps! Regarding the file filter, I assume your example is missing a period?

fileFilter=".(jpg|JPG)$"

Do you have documentation that lists all of the potential attributes of {arifancybox}? It would save users from asking. Maybe it exists, but I simply haven't found it yet?

captions.txt is attached. Here is the exact
File Attachment:
File Name: captions.txt
File Size: 154
code I am currently using:

Code:

{arifancybox activeType="imglist" generateThumbs="true" theme="shadow" thumbWidth="200" type="gallery" fileFilter=".(jpg|JPG)$" descrFile="captions.txt" dir="images/front_page/pics"}{/arifancybox}
The administrator has disabled public write access.
 
#9428
Re:Basic syntax for activeType="imglist" 6 Years, 10 Months ago Karma: 667
You are welcome. Available attributes can be found in "Description" field on "System - ARI Fancybox Anywhere" settings page, just download and upgrade "System - ARI Fancybox Anywhere" plugin. About CSV file, use file with the following content:

Code:


File,Title
1_sco.jpg,test title
2_historic_airphotos_325px.jpg,another test title
3_sco.jpg,here is one more test title
4_wlia_conference.jpg,and the last title



Regarding file filter, could you explain what problem you have with example which we provided?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#9431
Re:Basic syntax for activeType="imglist" 6 Years, 10 Months ago Karma: 0
Regarding the filter, you just had a typo in the example code you provided. A period was missing, as was a closing quote... no big deal. Just wanted to point this out so future newbies like me aren't confused:

fileFilter="(jpg|JPG)$

On the documentation: yes, I've seen all the details in the "Description field", but it doesn't seem to include all the possible attributes. For example, the "theme" attribute you just told me about is NOT listed. Niether is "fileFilter." I just downloaded the zip file yesterday, so I assume I am working from a current version.

I'll fix the syntax of my captions file. I'm sure it will work. Thanks!
The administrator has disabled public write access.
 
Go to topPage: 12