dynamic xml for slideshow pro

8 posts by 3 authors in: Forums > CMS Builder
Last Post: May 4, 2010   (RSS)

By dsternalski - May 1, 2010

Hi,

I used this code before to make a dynamic xml, and it worked. however, it's not working now.

XML FILE:

<?php header('Content-type: application/xml; charset=utf-8'); echo '<?xml version="1.0" encoding="UTF-8"?>';

require_once "C:/xampp/htdocs/jubileehigh/cmsAdmin/lib/viewer_functions.php";
?>
<gallery>
<album title="Slide Show" description="Slide Show" lgpath="http://localhost/jubileehigh/cmsAdmin/uploads/" tnpath="http://localhost/jubileehigh/cmsAdmin/uploads/thumb/">
<?php
$uploads = getUploads('index', 'slideShow', $_GET['recordNum']);
foreach ($uploads as $upload)
{
?>
<img src="<?php echo ($upload['filename']); ?>"
title="<?php echo ($upload['info1']); ?>"
caption="<?php echo($upload['info1']); ?>"
link="<?php echo $upload['urlPath']; ?>"
alt="<?php echo $upload['info1']; ?>"
target="_blank"
pause="" />
<?php
}
?>
</album>
</gallery>

SLIDESHOW PAGE:

<?php
$slideShowXML = 'http://localhost/jubileehigh/images.xml.php?recordNum';
$slideshowRecord = $record['num'];
//new dBug($slideshowRecord);
?>
<script type="text/javascript">
if(typeof swfobject == "undefined"){
alert("The swfobject.js file is missing");
}else{
swfobject.embedSWF (
"assets/flash/homeFlash.swf", "homeFlash", "750", "381",
"7.0.0", "assets/flash/expressInstall.swf",
{ 'xmlPath':'<?php echo $slideShowXML ?>=<?php echo $slideshowRecord ?>' }, { 'wmode':'transparent' }, { 'id':'homeFlash','class':'flashClass' }
);
}
</script>
<div id="homeFlash" class="noFlash" style="height:79px; width:511px;">
<p>You must have JavaScript enabled and have the latest <a href="http://www.adobe.com/go/getflashplayer">Flash Player</a> installed to view this movie.</p>
</div>

Please help.

Re: [dsternalski] dynamic xml for slideshow pro

By gkornbluth - May 1, 2010

Hi,

I know it's frustrating when things don't work, but could you be a bit more specific?

Is this an existing page that just stopped working for no reason?

Did you change any of the slides and did that caused it not to work?

Is it a new page on the same site that won't work where an old page did?

Is this a new page on a different site?

Is it on the same or a different server?

Do the paths to the viewer_functions, table names, field names accurately reflect the new install locations?

You get the idea.

If you can give us a bit more to go on, I'm sure we'll be able to help.


Thanks,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] dynamic xml for slideshow pro

By dsternalski - May 2, 2010

Hi,

I used this code in another site (www.janizm.co.uk) and it worked perfectly.

I've now started a new site and took this code changed the variables & it's not working.

When I look at the XML feed that being pulled through, on the lgpath / thumbpath there appears to be 2 // together before the filene even though this hasn't been specified.

Re: [dsternalski] dynamic xml for slideshow pro

By gkornbluth - May 2, 2010

Well, I must admit, I don't have any concrete ideas.

I assume that if you take the / off the end of the lgpath and thumbpath in the xml that doesn't help.
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] dynamic xml for slideshow pro

By dsternalski - May 2, 2010

Hi,

I did take one of / off from the database but this didn't make any difference.

Re: [dsternalski] dynamic xml for slideshow pro

By Jason - May 4, 2010

Hi,

Could you post a link to your .xml.php file and I'll take a look at it for you. Also, are sure that the path is correct?

Let me know,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] dynamic xml for slideshow pro

By dsternalski - May 4, 2010

Hi,

Thanks. I found out what the problem was, the variable was slightly different.

Thank you anyway!