Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm attempting to get SWFTools display the contents of an existing Image Gallery through the default viewer for a list of images (either Simpleviewer or JW Image Rotator).
As outlined on the Emspace site (http://emspace.com.au/node/33), I've created a PHP Code filtered page with the following code:
<?php
$playlist = swftools_playlist_from_image_gallery(1, 'preview');
print swf_list($playlist, SWFDEFAULT, array('transition'=>'circles'));
?>
Where the "1" is the gallery ID.
When I view the page, I get:
Fatal error: Call to undefined function swftools_playlist_from_image_gallery() in /home/u5/eddymcmanus/eddycoyote.com/html/test/includes/common.inc(1547) : eval()'d code on line 3
Does anyone know how to make this work?
Thanks!
Comments
Comment #1
thinkbig CreditAttribution: thinkbig commentedBy the way, both SimpleViewer and Image Rotator have been installed into their proper locations in modules/swftools/shared and are NOT showing as missing in the File Handling page.
Comment #2
Stuart Greenfield CreditAttribution: Stuart Greenfield commentedThe function to produce the necessary playlist from an image gallery (
swftools_playlist_from_image_gallery
) hasn't yet been ported to SWF Tools 6. Under SWF Tools 5 there is a module called "Integration" (labelled as unstable) that provides this functionality. In an effort to get the main part of SWF Tools ported to D6 it was a conscious decision on my part to leave the Integration module till later.Once the main SWF Tools module settles down (there are still some teething troubles!) then the Integration features will follow, although probably as a series of smaller modules so you can just activate the features that you want.
Also, note that under SWF Tools 6 the format of the
swf()
andswf_list()
functions has changed, as described in the documentation. The key difference is that now you pass an associative array of (optional) parameters, in the same way that most other D6 functions work. The idea is to make things easier by not having to remember an explicit order for the various options!As part of the SWF Tools 6 project I do plan to try and get the documentation up to date to provide current examples etc, but that will also follow later as the focus for now has to be on getting the main modules stable and usable.
I'm changing the status on this thread to "postponed" as I will likely not have time to start on this in the very near future, so please bear with me.
Comment #3
thinkbig CreditAttribution: thinkbig commentedThanks for the reply, Stuart, that explains it. When you've got the time the gallery feature will be great but I understand it's lower on the priority list. Thanks for all your efforts on SWFTools!
Comment #4
skritek00 CreditAttribution: skritek00 commentedHi thinkbig, I was able to get simpleviewer working using an xml file produced from their simpleviewer photoshop script. in your page set the filter to be php with flash enabled.
The galleries dir is under the flash directory created when installing flash node. I use private file system so I put all my players in a directory off the web root. This works so far, although I'm having some issue with safari on OSX, but not sure that it's drupal related yet. The one problem I'm having which is weird is that it will only work if the content type is flash, even though I am uploading a dummy .swf file and putting this in the node body. When I figure that one out I'll repost. Anyone have any ideas? Thanks in advance
Comment #5
aiphesi'm looking for this feature in swftools 6...the function had been ported ? if no when it wiil be ? if yes, how to enable this, because i dont find it in the different choice when i create a filefield for JW Rotator
thanks
Comment #6
Ron Williams CreditAttribution: Ron Williams commentedThis has been resolved as a widget in the latest version and their is appropriate D6 code for use in node.tpl.php in http://drupal.org/node/371717.