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


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

Data driven fancybox gallery
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Data driven fancybox gallery
#53374
Data driven fancybox gallery 9 Years, 9 Months ago Karma: 0
I present users data-driven webpages and images. All images of a collection are in one folder on the server. Based on the users selection specific data and specific pictures from that serverside pictures folder are shown on a webpage.

I can make a Fancybox gallery of these specific pictures by making a string of the urls of those pictures divided by spaces. This works. So far so good.
But I would like to add titles to these pictures too. Is this possible? Eg by making a description file with picture names, links and titles and let Fancybox read that file?

Regards
Stephan.
The administrator has disabled public write access.
 
#53377
Re:Data driven fancybox gallery 9 Years, 9 Months ago Karma: 760
Hello,

Upgrade the extension to v. 2.2.10 (including "Media Gallery" application). After this you can create a data source with "Media data -> Images" type. Specify path to folder(s) with images in data source settings and name of CSV file with description then use the created data source for "ARI Smart Content - Media Gallery" module and integration it with "Fancybox" application (set "Lightbox integration" parameter to "Fancybox" in module settings, check that "ARI Smart Content - Integration - Fancybox" plugin is configured and enabled).

Regards,
ARI Soft
The administrator has disabled public write access.
 
#53380
Re:Data driven fancybox gallery 9 Years, 9 Months ago Karma: 0
Thanks for your answer and work, but I am afraid this it not the solution for me.
The Media Gallery has a specific named csv file attached to it. I can of course write content to that file for a specific user, so that he sees the images according to his selection. But if, at the same time, another user want to see different pictures, the collection of the first user gets lost if I write content to that same csv file that is attached to the Media Gallery.
So I need to have a specific csv file for the session of the user at that time. I cannot of course present several selections for several users in one csv file at the same time. Or another way to show a data-driven gallery with Fancybox for that user at that time. As I said: the gallery itself is no problem: I make a list of space-seperated links for Fancybox and present that. But I would like to present the titles too in these links.

If what I want is not possible, let me know.

Regards.
Stephan.
The administrator has disabled public write access.
 
#53381
Re:Data driven fancybox gallery 9 Years, 9 Months ago Karma: 760
Each folder contains own description file. If want to use different tiles and descriptions for the same images from a folder then it requires to create several files.

Could you specify what code do you use now?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#53382
Re:Data driven fancybox gallery 9 Years, 9 Months ago Karma: 0
It is a database with trees. Different types (Apples, Pears, Cherries, ...). And each type has subtypes (different types of Apples, ...). Trees are located on several locations. Maybe one user wants to see a specific Apple tree on a specific location. He needs to see the data of that tree and its pictures. Another user (at the same time) may want to see all Apple trees on all locations. Another at the same time wants to see all trees (no matter what kind) on a specific location. They all get the data of all that trees AND all the images of that trees.
All pictures have a name that is made of the recordid of the picturetable + '.jpg'. So the tree with recordid #100 in the treetable can have 3 pictures in the picturetable in eg records #892, #1013 and #1918 in that picturetable, named 892.jpg, 1013.jpg and 1918.jpg in the picturesfolder. The field 'link' in the picturetable
So a bunch of queries on the MySQL database that collect all the data AND all the picturelinks that belong to that data (there is a separate imagestable with all the links of all the images connected to the trees; each tree can have n images connected to it).

I now build a imagelink, space seperated and give it to Fancybox to show a gallery. A few parts based on real code will give you an idea:

Code:

//(...)
$query = "SELECT * FROM #__picturetable WHERE location='" . $lcode . "' "
  . "ORDER BY picturedate DESC";
$db->setQuery($query);
$rowsP= $db->loadAssocList();
foreach( $rowsP as $rowP ) {
  // (...)
  $gallery .= $rowP['link'] . ' ' ;
}

//(...)
// Tab with picturegallery
$html .= '{tab title="Picture Gallery"}{fancybox url="' . trim($gallery) 
  . '"}Slideshow pictures{/fancybox}' ;
// (...)
echo $html ;



Of course, for a user that needs a complete other selection, another query is used to make the gallerylink to show a complete other set of pictures.
The administrator has disabled public write access.
 
#53388
Re:Data driven fancybox gallery 9 Years, 9 Months ago Karma: 760
We can extend functionality for "Fancybox" application and add ability to define titles with image links. It can look like:

Code:


{fancybox url="images/img1.jpg||title 1;images/img2.jpg||title 2"}Slideshow pictures{/fancybox}



Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 12