Slideshow

Kramer

New Member
Hi @ all,

I?m using the newest version on a Joomla 2.5 Installation.

What I want to do is List with divebases and user are able to upload pictures for the bases and the pics will be shown in detailview.

What I?ve done is creating a Table called "Tauchbasenpic". There are 4 Elements
internalid
date
fileupload
name

Fileupload has this options:
Alowed file Types: .jpg, .JPG, .GIF, .gif, .png, .PNG
Upload Directory: images/TB/
Thumbnails : yes an directory images/TB/thumbs/

All other is set by default.

I createt an visualization with the following settings:

Plugin: Slideshow
Image Table : Tauchbasenpic
Image Element : fileupload
Caption Element: name

So if I call the visualization in my Browser all pictures for every Entry is shown in my Gellery.

Here is my question

1. How to Show the gallery in detailview only for the viewing "divebase"

Thanks for your help

Alex




http://www.divers-area.com/administrator/index.php?option=com_fabrik&task=list.edit&id=4
 
I'm not sure I fully understand the question.

Do you want to show a slideshow on a per record basis? So detail view may have 4 images of a divebase and you want the slideshow to show just those 4 images?
 
Well there used to be a slideshow element for this sort of stuff but's been put on hold for a little while until the official Fabrik 3.x release is out.

I assume you are using the ajax upload to allow you to upload more than one divebase per record?

There isn't really a straight forward way of doing this, as I don't think we can use filtering here on a copied table.

For things like this I use other 3rd party plugin as you can extract the information you need out of Fabrik and display it via a content plugin.

So using a random one is Nice Slide Show

Their documentation says to display images you need to do...

Code:
{niceslides:|images/picture1.jpg|images/picture2.jpg|images/picture3.jpg}
Now we can form this with a little PHP and putting it into a display element.

Code:
$image = '{niceslides:|';
$images = explode('//..*..//', '{[COLOR=Blue]fileupload_repeat_images___images[/COLOR]}');
foreach ($images as $img) {
$image .= $img . '|';
}
$image .= '/}';
return $image;
The only thing you would need to change is the element name highlighted in blue above using the following naming convention.

tablename_repeat_elementname___elementname

The result is something like THIS. (click on one of the views)


If something like that interests you and you need more assistance just shout.
 
Hey,
really nice. That?s like I searched for.

I tried it with this code

PHP:
$image = '{niceslides:|';
$images = explode('//..*..//', '{tauchbasen _tauchbasen___upload}');
foreach ($images as $img) {
$image .= $img . '|';
}
$image .= '/}';
return $image;
Listname = Tauchbasen
DB-Name = tauchbasen
Full Element Name = tauchbasen___upload

... But there ist no slideshow in detailview.

What?s wrong?
 
I think you may need this line.

Code:
$images = explode('//..*..//', '{tauchbasen_repeat_upload___upload}');


Obviously you have Nice Slide Show installed, you'll probably need to enable the plugin as well.

If the above doesn't work we can easily debug the reason.

Let me know how you get on.
 
Well, yes I installed the Nice Slide Show and enanled it. -
So I did what you said but nothing happens???
Sorry for my inability
The full code is now

PHP:
<?
$image = '{niceslides:|';
$images = explode('//..*..//', '{tauchbasen_repeat_upload___upload}');
foreach ($images as $img) {
$image .= $img . '|';
}
$image .= '/}';
return $image; 
?>
Is that right to put this code in the "Default" field with the "Display" plug-in?
Do I have to do a Table-Join or something else because of the repeat?
 
First of all you don't need the PHP tags when you paste code in the EVAL boxes. So remove the tags at the start and end of you code. :)

How is your structure set up? If you want to PM me backend access it may be quicker for me to have a look.
 
Okay you were so nearly there, just had to change

Code:
tauchbasen_repeat_tauchbasen___upload
to

Code:
tauchbasen_repeat_upload___upload
Which is strange as I thought you had already done that. :)


Okay that's working now.

The next stage is to stop the 'file upload' element from displaying the images as well, otherwise you'll have both sets of images displayed twice.

To solve this problem you can do a custom template but I have just made a modification to the default one. So basically I've done it for you.

You now have a template called slideshow which just has a small extra bit of code to stop the fileupload element from displaying.

We should really add some code to prevent to slideshow loading as well if it's empty, I only just thought of this though. :D

If you can wait a few days for that bit I will have it documented on a new Fabrik demo site.
 
No problem, glad you like it.

It allows me to test it in a real world scenario instead of just my test server, so a benefit for me as well. :)
 
Oh,

there is one more question...

Registered Users should be able to upload more pictures per "divebase" without to be able to change other fields. I don?t find the right usersettings for that. Can you explain me how to?
 
At a guess, you'd have to set the write access permissions on all other elements to something like 'Special'.

-- hugh
 
hi hug,

thanks for your reply. Thats what I?ve done, but now in the Form no one have access to make new entries...
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top