Integration of flash-files

kulturmensch

Joined: 2012-06-29
Posts: 4
Posted: Fri, 2012-06-29 12:33

I try to use the "about" and also the "pages" modules to present some short swf-file from the WWF.
I used the following html code:
<object data="/logo/tiger.swf" type="application/x-shockwave-flash" width="728" height="90">
<param name="movie" value="tiger.swf">
<param name="quality" value="high">
<param name="scale" value="exactfit">
<param name="menu" value="true">
<param name="bgcolor" value="#000040">
</object>

In the preview of i.e. tinyMCE it works perfect. But when I save it the object lines are automatically removed and it remains as code just:
<param name="movie" value="tiger.swf">
<param name="quality" value="high">
<param name="scale" value="exactfit">
<param name="menu" value="true">
<param name="bgcolor" value="#000040">

This does obviously not work.

Does anybody have an idea how to get this swf-file working in Gallery 3?

Login or register to post comments
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 7887
Posted: Fri, 2012-06-29 12:46

Moving to gallery3 forum

-s

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25945
Posted: Sat, 2012-06-30 00:39

You will have to manually edit the view file in the module.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
kulturmensch

Joined: 2012-06-29
Posts: 4
Posted: Sat, 2012-06-30 16:10

Hi Dave,
thanks for the suggestion! Before I start to search - do you know file-name and directory I have to look for?
Regards
Jürgen

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25945
Posted: Sat, 2012-06-30 21:09

If it is the about module you are using then it depends if you want it on the sidebar block or the page view of the module.
Edit gallery3/modules/about/views/about_block.html.php for the sidebar.
Edit gallery3/modules/about/views/about.html.php for the page view.

If you want this flash file to show on all pages then it is a different view file from the module to edit.

Dave

_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
kulturmensch

Joined: 2012-06-29
Posts: 4
Posted: Mon, 2012-07-02 10:47

about.html.php is the right one for me and it has the following content:

<?php defined("SYSPATH") or die("No direct script access.") ?>
<? if (module::get_var("about", "sidebar")) : ?>
<style type="text/css">
#g-sidebar {
display: none;
}
#g-content {
width: 950px;
}
</style>
<? endif ?>
<h1><?= module::get_var("about", "title"); ?></h1>
<?= module::get_var("about", "code"); ?>

I do not know how to put my code for the swf.file here, .iE:
<object data="/logo/tiger.swf" type="application/x-shockwave-flash" width="728" height="90">
...
...
</object>
Can you give me an advice?
Regards
Jürgen

Login or register to post comments
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25945
Posted: Mon, 2012-07-02 17:01

remove
<?= module::get_var("about", "code"); ?>
and replace with

<object data="/logo/tiger.swf" type="application/x-shockwave-flash" width="728" height="90">
...
...
</object>

but remember that the path /logo/tiger.swf might be different for different albums, so it might be easier to use http://example.com//logo/tiger.swf

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

Login or register to post comments
kulturmensch

Joined: 2012-06-29
Posts: 4
Posted: Tue, 2012-07-17 09:55

Everything works fine with the "about- and pages-modules" after following Daves hints:-) Thank you for this!

However I got a new problem by installing the "Shopping Basket Module".
If I activate it, then the content of the "about" page and the other pages disappears completely. Instead of the expected text just the basket appears on the right side of the screen. By de-activating the basket-module everything works fine again? Any idea how to get both modules working together?
Regards
Jürgen

Login or register to post comments