Flash Image Rotator

10 posts by 3 authors in: Forums > CMS Builder
Last Post: March 9, 2010   (RSS)

By drewh01 - January 4, 2010

I am using JW Image Rotator and cannot get my CMS uploaded images to load.

http://vps.fp2marketing.com/~chamberm/index.php

<embed
src="imagerotator.swf"
width="607"
height="282"
allowscriptaccess="always"
allowfullscreen="false"
flashvars="file=flash.xml.php&transition=fade&showicons=false&shownavigation=false&screencolor=0x6b330a&overstretch=true"
/>

The xml file appears to load properly and I even was able to get the images to display once - but then all of a sudden they stopped working when I reloaded the page.

http://vps.fp2marketing.com/~chamberm/flash.xml.php

Also, I can get the static image flash player to work just fine. The only difference is that it uses the flash.xml (without the .php)
http://vps.fp2marketing.com/~chamberm/index2.php

Ideas?

Re: [drewh01] Flash Image Rotator

By drewh01 - January 5, 2010 - edited: January 5, 2010

update:

I removed this line from my top load header and it worked!

'where' => whereRecordNumberInUrl(1),

Re: [drewh01] Flash Image Rotator

By Chris - January 5, 2010

Hi drewh01,

Glad to hear you've figured this out. Looks good! :D
All the best,
Chris

Re: [sublmnl] Flash Image Rotator

By Chris - March 9, 2010

Hi sublmnl,

What I don't understand is why removing this from the above code, actually gets it to work?!


What URL are you using to access your XML page? With no where clause, getRecords() will simply return the first record in your section. Is your section Multi Record or Single Record?
All the best,
Chris

Re: [chris] Flash Image Rotator

By sublmnl - March 9, 2010 - edited: March 9, 2010

Well its a single record with one section editor that only has an image upload with a limit of 20 total images.

It does work, just need to figure out why taking that line out works - or perhaps, is there a better way to write that xml.php file?

Re: [sublmnl] Flash Image Rotator

By Chris - March 9, 2010

Hi sublmnl,

For a Single Record section, you'll never need a where clause. Taking out that line is the right thing to do. :)

I hope this helps! Please let me know if you have any questions.
All the best,
Chris

Re: [chris] Flash Image Rotator

By sublmnl - March 9, 2010

Thanks.

can I poke you into helping with the limit wysiwyg post we've been running for about a year now?
[cool]

Re: [sublmnl] Flash Image Rotator

By Chris - March 9, 2010

Which post is that?
All the best,
Chris

Re: [chris] Flash Image Rotator

By sublmnl - March 9, 2010

looks like you found it [;)]