HI, so I embedded a flash node in a block and have it showing in my frontpage.

As a anon I can veiw it, but if I click refresh it disappears and I get "FLASHNODE_DEFAULT_HTML_ALT".

If I enable php for anon in input filters then refresh works, but then of course that is a big security risk so is there something that I did not do correctly.

If I log in it has no problems...it's just when I am anon that it causes problems.

There are no problems if it is not in a block. The node plays fine as anon.

I am using a localhost with php 5 and mysql 5.

Comments

Stuart Greenfield’s picture

Title: Works sometimes? » Flashnode in a block - works sometimes?

I'll need to do some investigating! It shouldn't need PHP filtering enabled for anon users to make it work!

Stuart Greenfield’s picture

Status: Active » Postponed (maintainer needs more info)

I tried this, and it is working ok for me. I used a flash node macro in my custom block and enabled it, and it shows up for both logged in and anonymous users. I didn't need to enable PHP.

What embedding method are you using, and what version of SWF Tools? SWF Tools is a complex project and every now and then glitches show up with specific embedding methods.

PS - I completely forgot about creating custom blocks in Drupal! A neat way to add flash content to the side bar - must add this to the readme file!

Stuart Greenfield’s picture

if I click refresh it disappears and I get "FLASHNODE_DEFAULT_HTML_ALT".

Ah - that's a bug - I copied a line of code back from the version 6 module and accidentally referred to a constant that doesn't exist!

Seeing this text means that the javascript substitution didn't trigger. Are you using any other javascript modules - for example, someone discovered that the admin_menu module doesn't play nicely with SWF Tools?

Also, if you view the source code for the page when the flash doesn't appear, do you have a line like <script type="text/javascript" src="/modules/swftools/shared/swfobject/swfobject.js"></script> in the head of the page? If you *do* it says the script is being inserted but not triggered. If you *don't* it means the script isn't getting attached for some reason.

If we can pin down which of those two cases applies that will help us fault find.

Stuart Greenfield’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

No further info provided and unable to recreate the bug using my regular set up. Therefore unable to determine if anything is wrong with flash node.

Please re-open this thread if more info is available.