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. 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: 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 |

Posts: 7887
Moving to gallery3 forum
-s
Posts: 25945
You will have to manually edit the view file in the module.
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 4
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
Posts: 25945
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
Posts: 4
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
Posts: 25945
remove
<?= module::get_var("about", "code"); ?>and replace with
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
Posts: 4
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