hi , I wanted to know if there is a way to open swf files with shadowbox . I use shadowbox on images just by changing their format on manage display to shadowbox , I wanted to know if there is a similar way to use shadowbox on swf files , and if another module is needed for that , what's that module . I use drupal 7 and seems that I can't use swf tools module .
thanks

Comments

manfer’s picture

If you include shadowbox globally by enabling the corresponding checkbox in shadowbox auto handle settings, you can add to your contents any link that shadowbox can handle (of course depending on the players you included when you downloaded the shadowbox library): images, flash files, videos and even other pages.

The only thing you need is a way to include those links and with its correct syntax in each case. The proper syntax to add a swf file link so it is handle by shadowbox is:

  <a href="path_to_file/foo.swf" title="foo" rel="shadowbox; width=400; height=300">My swf link</a>

or if you want with a thumbnail

  <a href="path_to_file/foo.swf" title="foo" rel="shadowbox; width=400; height=300"><img src="foo_thumbnail" /></a>

and if you want it included in a 'bar' gallery with other contents:

  <a href="path_to_file/foo.swf" title="foo" rel="shadowbox[bar]; width=400; height=300"><img src="foo_thumbnail" /></a>
  <a href="path_to_file/baz.swf" title="baz" rel="shadowbox[bar]; width=640; height=480"><img src="baz_thumbnail" /></a>
  <a href="path_to_file/image.jpg" title="image" rel="shadowbox[bar]"><img src="image_thumbnail" /></a>

the 400 and 300 are foo.swf file dimensions.

For any media other than images the dimensions parameters are mandatory, so they must be included in the rel attribute.

---------------------

This is how it works, what you would need is a way to add such a link in your content and upload that content. If you are using a WYSYWYG editor and it does not allow to configure the rel attribute, if I'm not wrong all of them has a way to switch to plain html mode, so after you finish including all your content switch to that mode and add manually the rel attribute.

manfer’s picture

Status: Active » Fixed

This has no reply so I hope this has been enough to solve the issue.

If you have any more question please ask. I mark this as fixed but it remains opened for two weeks.

Regards,
manfer

Status: Fixed » Closed (fixed)
Issue tags: -SWF

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