How to add XML to html block. Help needed

Im trying to add an XML image rotator to an html block on my site.

I dloaded the files which include the following

Bin folder + images, xml, swfobject

src folder

 

What I dont know is now what to do with them!

Do I place these 2 folders anywhere in particular within dolphin?

Then what do I need to add to the html to display the flash?

 

Any help appreciated :-)

 

Thanks!

Quote · 8 May 2011

Im trying with this code

 

<p>

<object width="950" height="300" data="/bin/preview.swf" type="application/x-shockwave-flash">

<param name="data" value="/bin/preview.swf" />

<param name="src" value="/bin/preview.swf" />

<param name="quality" value="high" />

</object>

</p>

 

 

However, this is just showing a black flash image with no content.

In the bin file, I have the following.

 

FOLDER - images

index.html

preview.swf

swfobject.js

FOLDER - xml

 

Am I pointing to the right file?

If I view the index.html on its own, it shows the flash file as I want it displayed.

Not sure how to call this up in embed though?

Quote · 8 May 2011

I tried doing something like that before and if I recal the only way I was able to do it was by calling it with iframe.

Try placing your code in its own html file and then call the htlm file with iframe in your block.

Give me something to believe in...
Quote · 8 May 2011

Your paths are most likely wrong.

The path your using is /bin  Because of the preceding / you have there your telling the script the files are in bin on the servers root. Not bin in in your dolphin site. Path names are the key here. A path without the leading / would be a relative path. In other words, a path starting from the root of where the script is running. Because pages in dolphin can be relative to the root of your site or relative to a modules folder using relative paths would not be a good idea if you want to be able to use the script anywhere in the site on any page.

Therefor you should use full paths so it will work on any page in dolphin you place it on.

<param name="data" value="FULL PATH TO BIN FOLDER/bin/preview.swf" />

<param name="src" value="FULL PATH TO BIN FOLDER/bin/preview.swf" />

It would be something like this for example.

<param name="data" value="/home/myname/public_html/bin/preview.swf" />

The proper path is the key. If it's correct it will work, if it's not correct it will not work.


 

https://www.deanbassett.com
Quote · 8 May 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.