Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Preview: SlideshowPro Module


Go to End


70 Posts   21754 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

18 June 2009 at 5:24am

I've fixed that for ya.

Avatar
bod

Community Member, 72 Posts

18 June 2009 at 6:57am


$allowed_actions

Duh of course! Sometimes you can't see the wood for the trees! Thanks for that Cheese!! Great stuff! ;)

Avatar
bod

Community Member, 72 Posts

26 June 2009 at 2:25am

Hey Uncle Cheese,

Not sure where to post this as it covers your other modules in conjunction with the SSP one so forgive me and move/pair off if needed,

Saw the videos to the FileUpdateManager http://www.youtube.com/watch?v=239nAqxizjA&feature=related and tried it myself however I'm not getting the same behaviour as shown in the videos. File fomats flv and mp3 still remain greyed out and not selectable by the upload manager? I can temporarily 'hack' swfupload to enable me to select those file formats however when I do I get a filesize error message stating

The file you selected is too big. The maximum size allowed is 8MB. This file is 13.5M

despite having

php_value upload_max_filesize "75M"
php_value post_max_size "75M"
php_value max_execution_time 300

in my htaccess file

also the DataObjectManager example files >> Resources when integrated (ala video) displays PDF and Doc only on upload button again a bit confusing.

So I guess what I want to ask you is, does the module features as shown in the video work 'out of the box' (latest svn) or does it require page types to be set up and further customised coding, if the later do you have an up to date tutorial or how to doc available?

Why would there be an upload file size error when htaccess set values should override the swfupload default. Is there somewhere else I need to change this?

Why can I still not select flv or mp3 as shown in your video do you think any ideas appreciated.

As the SSP module piggy backs off of the DataObjectManager and ImageGallery functionality what would be needed to get it to upload and show video? Would it be just a case of getting the Image Gallery/SwfUpload working correctly with these files or is there more to it (this is what I want to ultimately work towards - although I would also like to get the Resource page type working ala video too)

Phew! Look forward to your answers/clearing of the fog. Appreciate your time. Many thanks!

SS 3.2.1 public release
SVN Latest on all modules (updated yesterday 24th June 09)
Servers MAMP Pro and deployed Linux RedHat
PHP 5.2
Local dev OS OS X Leopard 10.5.7

Avatar
UncleCheese

Forum Moderator, 4102 Posts

26 June 2009 at 9:01am

So I guess what I want to ask you is, does the module features as shown in the video work 'out of the box' (latest svn) or does it require page types to be set up and further customised coding, if the later do you have an up to date tutorial or how to doc available?

==> It doesn't work "out of the box" per se, because it's an open-ended feature that allows users to do with it what they want. But I wouldn't go as far to say that it requires custom coding, either. It's no more difficult that building a news page or something. It just a matter of setting up relationships in the model. I do intend to post some documentation soon.

Why would there be an upload file size error when htaccess set values should override the swfupload default. Is there somewhere else I need to change this?

==> Unfortunately, .htaccess doesn't always have the power to override those php values -- especially if you're on shared hosting. You can talk to your hosting provider about raising the values, but the SWFUploadField will always return the true value, because it is taken from the php ini_get() function. Those values can be a real pain to change. They tend to be well protected.

Why can I still not select flv or mp3 as shown in your video do you think any ideas appreciated.

==> That's all handled by the allowedFileTypes in SWFUpload or the FileDataObjectManager. Somewhere that's getting set in your code, because it defaults to *.*

As the SSP module piggy backs off of the DataObjectManager and ImageGallery functionality what would be needed to get it to upload and show video? Would it be just a case of getting the Image Gallery/SwfUpload working correctly with these files or is there more to it (this is what I want to ultimately work towards - although I would also like to get the Resource page type working ala video too)

==> We're certainly getting there. I haven't tested it, but with all the new features, I think it's very realistic. I just don't know enough about the SSP video functionality to do it at this point. I'll post a tutorial soon. It's very easy. The only hard part is getting FFMPEG installed.

Avatar
bod

Community Member, 72 Posts

26 June 2009 at 10:17am

It doesn't work "out of the box" per se, because it's an open-ended feature that allows users to do with it what they want. But I wouldn't go as far to say that it requires custom coding, either. It's no more difficult that building a news page or something. It just a matter of setting up relationships in the model. I do intend to post some documentation soon.

==>Right I kinda thought that was the case so some layman type howtos would be handy when you have time, even just the resource page type that deals with video/mp3 from the video show and tell would give those of us with a bit of code knowledge a head start (any chance of that being added to the DataObject examples here perhaps in the meantime? http://www.silverstripe.org/dataobjectmanager-module-forum/show/260984#post260984)

Unfortunately, .htaccess doesn't always have the power to override those php values -- especially if you're on shared hosting. You can talk to your hosting provider about raising the values, but the SWFUploadField will always return the true value, because it is taken from the php ini_get() function. Those values can be a real pain to change. They tend to be well protected.

==> That makes sense, it loaded locally but not on the production box so will contact my hosts tomorrow cheers for the heads up

==> That's all handled by the allowedFileTypes in SWFUpload or the FileDataObjectManager. Somewhere that's getting set in your code, because it defaults to *.*

==> Doesn't *.* mean any file format? If it's restricted in either the svn of SWFUpload or FileDataObjectMAnager to certain file types can you give me a line number as I've gone through those files with fine tooth coombe and still haven't tracked down where it's just allowing .jpgs. If its down to the way the page type handles stuff and therefore video/mp3 for example is declared when creating a certain page type then I guess that would step back to my first point re an zip example being added to existing repository or howto doc

We're certainly getting there. I haven't tested it, but with all the new features, I think it's very realistic. I just don't know enough about the SSP video functionality to do it at this point. I'll post a tutorial soon. It's very easy. The only hard part is getting FFMPEG installed.

==> This is the easy bit then 'I just don't know enough about the SSP video functionality to do it at this point' there's nothing to know UC! The SSP player treats flv the exact same as a jpg - in other words you add the flv to the xml feed using the exact same syntax as images in fact the beauty of SSP is that it can show a slideshow mix of still images (jpg's) and video (flv) so if your image gallery module can upload a video file either native flv or mpg converted on the fly by ffmpeg then the rest is done, just serve the xml as per normal see my example below

<?xml version="1.0" encoding="UTF-8"?>
<gallery>
	
	<album title="my gallery" description="" tn="">
		
			<img tn="/assets/image-gallery/My-Gallery/my-gallery/_resampled/CroppedImage100100-bn-1.jpg" src="/assets/image-gallery/WLR-Gallery/wlr-gallery/_resampled/SetHeight323-bn-1.jpg" caption="My caption here" />
		
                        <img tn="/assets/image-gallery/My-Gallery/my-gallery/_resampled/CroppedImage100100-bn-2.jpg" src="/assets/image-gallery/WLR-Gallery/wlr-gallery/_resampled/SetHeight323-bn-2.flv" caption="Another caption here" />

                        <img tn="/assets/image-gallery/My-Gallery/my-gallery/_resampled/CroppedImage100100-bn-3.jpg" src="/assets/image-gallery/WLR-Gallery/wlr-gallery/_resampled/SetHeight323-bn-3.jpg" caption="My caption here" />
		
	</album>
	
</gallery>

The SSP will show an image, then load the video and once the video has finished move on automatically to the next slide!

Hope that clears that bit up anyway!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

27 June 2009 at 1:31am

Oh, wow. I didn't realize it was that easy! Thanks for that. I'll try to get some example code up today: Re: Allowed file types -- I had forgotten you were using the ImageDataObjectManager (SSP module) which does limit you to JPEG. But if we go forward with the video gallery features, then I'll open it up to those, too. I suppose by default the ImageDataObjectManager should allow GIF and PNG, too, though.

Avatar
bod

Community Member, 72 Posts

27 June 2009 at 2:18am

Thought that would pleasantly suprise you :) Look forward to it - re png & gif good call, also add mp3 to the mix as it can play audio the same way AFAIK, you can also assign an mp3 to an album like you can the album thumbnail here's what the xml syntax looks like with that for future ref.

<?xml version="1.0" encoding="UTF-8"?>
<gallery>
   
   <album title="my gallery" description="Images of trees, lakes and flowers" lgPath="gallery/album1/lg/" audio="gallery/album1/mp3/audio.mp3" audioCaption="Talking Heads - Nothing but Flowers">
      
         <img tn="/assets/image-gallery/My-Gallery/my-gallery/_resampled/CroppedImage100100-bn-1.jpg" src="/assets/image-gallery/WLR-Gallery/wlr-gallery/_resampled/SetHeight323-bn-1.jpg" caption="My caption here" />
      
         <img tn="/assets/image-gallery/My-Gallery/my-gallery/_resampled/CroppedImage100100-bn-2.jpg" src="/assets/image-gallery/WLR-Gallery/wlr-gallery/_resampled/SetHeight323-bn-2.flv" caption="Another caption here" />

         <img tn="/assets/image-gallery/My-Gallery/my-gallery/_resampled/CroppedImage100100-bn-3.jpg" src="/assets/image-gallery/WLR-Gallery/wlr-gallery/_resampled/SetHeight323-bn-3.jpg" caption="My caption here" />
      
   </album>
   
</gallery>

...but this may complicate matters and take time you haven't got, so best left for another day but useful to know for somewhere down the line once we get videos working that albums can have background music and albums can contain music tracks as children of albums as well as attributes of. Let me know if there is anything else I can help with.

Here is the link to the SSP Wiki just in case you need it and don't have it,
http://wiki.slideshowpro.net/SSPfl/UG-UserGuide

It has further examples of additional XML schemas you can employ along with the API

Look forward to seeing the update, give me a shout if you need any testing or flash/SSP type advice!

Avatar
bod

Community Member, 72 Posts

6 August 2009 at 7:34pm

Hi Uncle Cheese, did you get a chance to look at updating the code on this mod re our conversation yet? Was wondering about the flv stuff mentioned in your last post as the mod still cannot upload flv's or place them correctly in the resampled folder. Any help getting this mod through to completion would be very welcomed if you have the time that is.