Hi. I had swf tools working on drupaL5 but after upgrading my site last week to 6 ( shudder) I have everything back working except my vidoes.
I deactivated and uninstalled swftools 5.2.4 and installed 6x2.5 into a working drupal 6 site. I have activated the swftools core module , swfobject2, and JW Media Player 4, using JWplayer 5.1 - same as I had in my 5 site. On the SWF tools status page I have all boxes ticked and the little animation going round.
The input filter is set and is at the bottom in the filtered html i use now and same as before on drupal 5 . The player sadly is not appearing . I have made public an example of this here - http://fluxriders.net/node/1880 .
I'm looking arond the database at the moment trying to find something . All the files are in the files directory , and they are also listed in a table called upload ( which I cant remember being in drupal5 , but I'm seeing visions at the moment after this marathon upgrade . I would so appreciate anyones help please .
Thanks

Comments

Stuart Greenfield’s picture

Hmm - what happens if you create a new piece of content? Does that show up?

Looking at the page on your link SWF Tools isn't even triggering to do the embedding, so it could be that it is missing the filter for some reason, or another filter is getting a conflict with another.

Can you post a sample of the input filter you are writing and I can test it on a local copy of SWF Tools just to make sure nothing funny is going on. As you can see the animation on the status page it sounds like it has to be the input filter configuration that is the issue.

fluxrider’s picture

Thanks for your reply Stuart. No, new content is not showing . I did install the video module now and set it to use swf for flv files and it pays the vid.
"Can you post a sample of the input filter you are writing and I can test it on a local copy of SWF Tools just to make sure nothing funny is going on. As you can see the animation on the status page it sounds like it has to be the input filter configuration that is the issue."
I'm not sure what you are asking me to do here. How do I post that ?

Stuart Greenfield’s picture

If you can see the animation, and you can make the module work with the Video module, then it has to be something about the input filter.

What I was meaning was a sample of your input filter, e.g. [swf file="myFile.flv"] just to check that the format is ok (it's a long shot but...)

If that doesn't reveal anything we might need to add some debug lines to your module to work out where the problem is occurring.

fluxrider’s picture

Again , thanks for sticking with me on this Stuart.
I have this in my input format on a posting page -

You may use < swf file="song.mp3" > to display Flash files inline
That doesn't look right does it , but where do I change that if needed

Also , should this be added to the allowed html tags because its not.

fluxrider’s picture

I've had a look into the database of the 6 site and the old 5 sites sfttools filter , and the 6 site has an extra field - fid of type - int(11) value - 53. Apart from that extra field they are identical.

Stuart Greenfield’s picture

Let's go back a step - how are you (trying to!) put the videos on the page? Are you using another module to let you upload the video files and pass them to SWF Tools for formatting, or are you typing text in the body of the node to use the SWF Tools input filter? If you are using another module which one is it, and did its upgrade work correctly?

SWF Tools doesn't have any database table of its own when it comes to content and files - it relies on other modules to handle that.

If you are using the input filter, e.g. [swf file="myVideo.flv"] then the file myVideo.flv is assumed to be in the site files directory, but SWF Tools doesn't use a database table to access it. It just builds a path directly from the supplied filename.

If you are using another module to handle the upload then that module needs to pass a file path directly to SWF Tools. Again, SWF Tools doesn't look at any database tables.

As the animation on the status page is working it suggests that SWF Tools is installed correctly, so it's a question of why the path is not coming across.

fluxrider’s picture

I'm not using another mudule to upload the files.
Previously when I used swftools it just played what ever .flv file I uploaded using the drupal upload module . I didn't actually write any code into the textarea at all . I just uploaded a .flv file or an .mp3 file , or a number of them , and the player appeared and played them.

On the input format hints under the posting textarea it says

Filtered HTML

    * You may quote other posts using [quote] tags.
    * You can use BBCode tags in the text.
    * Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /><table> <tr> <td> <b> <u> <i> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <embed> <object> <param> <strike> <caption>
    * Youtube and google video links are automatically converted into embedded videos.
    * Web page addresses and e-mail addresses turn into links automatically.
    * Insert Google Map macro.Create a macro
    * Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
    * Links to video content with 'rel="lightvideo"' in the <a> tag will appear in a Lightbox when clicked on.
    * You may use <swf file="song.mp3"> to display Flash files inline 

I'm just huntind around everywhere because I have no idea really how to go about getting my vids back .It all just worked before . Sorry to be a bother.

Stuart Greenfield’s picture

Title: Not working after drupal5 to 6 upgrade » Implement upload integration feature in SWF Tools 6
Category: support » feature

Ah - now I understand what is going on!

In SWF Tools 5 there was something called the "Integration module" that did that very simple connection between uploads and SWF Tools. That wasn't implemented in SWF Tools 6 as CCK had taken off and became the "preferred" way to manage content.

But I can now see this gives a problem for people coming to SWF Tools 6 from SWF Tools 5.

There are two options. Option 1 is we write a quick D6 version of the integration module. Option 2 is that you can still use the upload module to upload files, but then in the body of nodes you use the input filter to create the player ([swf file="myUpload.flv"]).

The second option would work as of now, but you'd need to add it to every node that has audio/video so I don't know if that is practical.

The problem with upload integration was that it is "all or nothing" - either all videos get handled by SWF Tools, or none of them do.

That said, it's probably only a short module to write.

I did wonder once whether it was possible to make some sort of "toggle" (a bit like the option to list, or not list, the upload) to indicate whether the file should be sent to SWF Tools. I seem to recall this was going to be difficult to implement (but I can't think what the issue was).

Changing title to reflect the correct issue now we've pinned it down! I will think this over tonight...

fluxrider’s picture

Thank you for tracking that down Stuart. I'll admit that writing in the code on hundreds of nodes within my site has made me draw breathe, but i am rapt that the reason is now known.
Personally i would be exstatic to see an option as in install the integration module if - or use the cck approach.

That would give me time to rebuild the site on my local using the cck approach in preparation for drupal 7 an allow the members inside to continue posting their rides .
Either way , I'm very happy to know whats going on. Thank you.

Stuart Greenfield’s picture

Status: Active » Needs review

I just recreated the upload integration module for SWF Tools 6.x-3.x.

It's on DRUPAL-6--3 and will be in the next dev package when it generates.

The list of extensions to go to the integration module are configured on the file handling settings - an extra section appears when the upload integration module is enabled.

fluxrider’s picture

thats great. Thanks Stuart. I am upgrading to 6.3beta4 now and will use the dev version after that to get to the integration module and will review it soon as i can. but having some issues with that upgrade which i've raised at http://drupal.org/node/797730

ilead’s picture

i suggest you may look here below
[url=http://howtowinaiphoneforfree.blogspot.com/]win a iphone for free[/url]
i think this site has a excellent themes

you can trate it as a example .

ilead’s picture

http://howtowinaiphoneforfree.blogspot.com/
i think this site has a excellent themes

you can trate it as a example .

fluxrider’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.