Im trying to load piecemaker into a template but it wont load no matter what. I'm using swf object to load it.
<script type="text/javascript">
var flashvars = {};
flashvars.xmlSource = "<?php echo TEMPLATE_DIR; ?>/images/piecemaker/piecemakerXML.xml";
flashvars.cssSource = "<?php echo TEMPLATE_DIR; ?>/images/piecemaker/piecemakerCSS.css";
flashvars.imageSource = "<?php echo TEMPLATE_DIR; ?>/images/piecemaker/images";
var attributes = {};
attributes.wmode = "transparent";
swfobject.embedSWF("<?php echo TEMPLATE_DIR; ?>/images/piecemaker/piecemakerNoShadow.swf", "flashcontent", "960", "610", "10", "<?php echo TEMPLATE_DIR; ?>/images/piecemaker/expressInstall.swf", flashvars, attributes);
</script>
the links are all tested and are working fine out of the template, it just doesnt load when using WB.
Anyone? If I use a IFRAME that loads a html page that has piecemaker embeded to it, it works.
No errors showing up, even not if you check the errorlogs?
cheers
Klaus
no errors relating to piecemaker. I even tried using the article editor import flash to embed piecemaker and it still doesn't work.
And the sourcecode of the rendered Page is OK as well (give us a Link maybe)?
cheers
Klaus
The source is ok. It just seems that when that is included in a php CMS it doesnt work. But in a html file it works perfectly. Im trying to upload my local wb setup so you can take a look.
I've uploaded to here: http://felizbahia.org/wb/wb/
But I can't get it to load images and css files, dunno why..
it seems that layout.css and html.css and maybe some other files are not there where they are called:
http://felizbahia.org/wb/wb/templates/PBATheme-NoExtras/css/html.css
http://felizbahia.org/wb/wb/templates/PBATheme-NoExtras/css/layout.css
Check if you uploaded files to that folder... Also, check if template folder is exactly as in link (check for CAPITAL LETTERS)
cheers
It's not that, the filenames are right. Does WB use mod-rewrite? This website does, maybe something in .htaccess?
It could be, from what I can see.. css files werent there...
post the htaccess file so we can take a look
I've uploaded it to another host(freehostia.com, it's pretty good by the way):
http://stack-files.freehostia.com/wb//pages/testblock.php
user and pass are admin.
So? Any info?
Loads fine on FireFox here ...
cheers
Klaus
Hm ... same here, FF 3.6 - MacOS 10.5, but it took a while, nearly 20 to 25 seconds.
Maybe the images are too big?
Kind regards
Aldus
It's working because it's using an iframe to load a html page that embeds the swf using swfobject. But if I try to load it directly. it fails.
Below is the code:
<script type='text/javascript' src='http://stack-files.freehostia.com/wb/templates/PBATheme/images/piecemaker/swfobject.js'></script>
<script type="text/javascript">
var flashvars = {};
flashvars.xmlSource = "http://stack-files.freehostia.com/wb/templates/PBATheme/images/piecemaker/piecemakerXML.xml";
flashvars.cssSource = "http://stack-files.freehostia.com/wb/templates/PBATheme/images/piecemaker/piecemakerCSS.css";
flashvars.imageSource = "http://stack-files.freehostia.com/wb/templates/PBATheme/images/piecemaker/images";
var attributes = {};
attributes.wmode = "transparent";
swfobject.embedSWF("http://stack-files.freehostia.com/wb/templates/PBATheme/images/piecemaker/piecemakerNoShadow.swf", "flashcontent", "960", "610", "10", "http://stack-files.freehostia.com/wb/templates/PBATheme/images/piecemaker/expressInstall.swf", flashvars, attributes);
</script>
http://stack-files.freehostia.com/wb/pages/notworking.php
It's not working because the javascript is inside a comment.
And the path to the documents contains double slashes like "//" witch could be problematic.
As for my point of view - the slash before "images" should be removed to get it working.
Also the comment-tags around the js.
Regards
Hellblazer
Where are these "//"? I do not think so.
Iradj