10390 Posts in 2201 Topics by 1712 members
| Go to End | Next > | |
| Author | Topic: | 11368 Views |
-
Re: Preview: SlideshowPro Module

13 June 2009 at 11:31am Last edited: 13 June 2009 11:33am
Hi Uncle Cheese, Well so far so good re that update apart from one thing which I don't think is a direct result of that particuliar update but perhaps a general bug?
If your SlideshowPro page contains the $SearchForm tag the search gets broken and returns the following error message
Website Error
ForbiddenThe website server has not been able to respond to your request.
Contact an administrator: administrator [at] yoursite [dot]com
apending ?isDev=1 to the url gives,
Action 'SearchForm' isn't allowed on class SlideshowProPage_Controller
-
Re: Preview: SlideshowPro Module

18 June 2009 at 4:25am Last edited: 18 June 2009 4:26am
So, re my post above - any ideas why the Site search is breaking in the SlideshowPro page Uncle Cheese? Can't fathom it myself - SlideshowPro extends ImageGallery which in turn extends Page so the class inheritance would appear to be breaking for that specific function somehow :o/
-
Re: Preview: SlideshowPro Module

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! ;)
-
Re: Preview: SlideshowPro Module

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 300in 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 -
Re: Preview: SlideshowPro Module

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.
-
Re: Preview: SlideshowPro Module

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!
-
Re: Preview: SlideshowPro Module

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.
| 11368 Views | ||
| Go to Top | Next > |

