Active Slideshow Pro Support Product Page
This topic was archived
Active Slideshow Pro
Asked 13 Sep 2007 20:16:15
1
has this question
13 Sep 2007 20:16:15 eddie young posted:
I like this product very much. Lately I have been trying to put a dynamic slideshow on a realty website. I can get the images to load dynamically and play. It looks good. My question is.... Is it possible to pass a parameter to the slideshow so that I can have it in another window to show the slideshow for any model?I have tried and I keep getting a slideshow for the one model.
Thanks in advance,
Replies
Replied 14 Sep 2007 11:32:56
14 Sep 2007 11:32:56 Georgi Kralev replied:
Hi eddie,
I have tested Active Slideshow Pro with passing parameter both with Session variable and URL and it work without any problems.
For example:
* Using Session variable:
In the page with the slideshow set the Session variable:
<i><%Session("imagegroupid"
= 17 %></i>
and into the Asp file that generate the xml read it and use it for selecting the appropriate images:
<i>Dim rsImages__MMColParam
rsImages__MMColParam = "1"
If (Session("imagegroupid"
<> ""
Then
rsImages__MMColParam = <b>Session("imagegroupid"
</b>
End If</i>
* Using the parameter into the URL.
<i><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="250" height="200" id="storm" align="middle">
<param name="FlashVars" value="<b>xmlFile=storm.asp?imagegroupid=<%= "17" %></b>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" />
<param name="movie" value="slideshowpro.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="wmode" value="window" />
<param name="bgcolor" value="#FFFFFF" />
<embed src="slideshowpro.swf" id="storm" wmode="window" quality="best" FlashVars="<b>xmlFile=storm.asp?imagegroupid=<%= "17" %></b>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" scale="noscale" bgcolor="#FFFFFF" type="application/x-shockwave-flash" width="250" height="200" pluginspage="www.macromedia.com/go/getflashplayer" />
</object></i>
And into the Asp file that generate the xml read it with <b>Request.QueryString</b>
<i>Dim rsImages__MMColParam
rsImages__MMColParam = "1"
If (Request.QueryString("imagegroupid"
<> ""
Then
rsImages__MMColParam = <b>Request.QueryString("imagegroupid"
</b>
End If</i>
Thant's it. I hope this helps you.
Regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com
I have tested Active Slideshow Pro with passing parameter both with Session variable and URL and it work without any problems.
For example:
* Using Session variable:
In the page with the slideshow set the Session variable:
<i><%Session("imagegroupid"

and into the Asp file that generate the xml read it and use it for selecting the appropriate images:
<i>Dim rsImages__MMColParam
rsImages__MMColParam = "1"
If (Session("imagegroupid"


rsImages__MMColParam = <b>Session("imagegroupid"

End If</i>
* Using the parameter into the URL.
<i><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="250" height="200" id="storm" align="middle">
<param name="FlashVars" value="<b>xmlFile=storm.asp?imagegroupid=<%= "17" %></b>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" />
<param name="movie" value="slideshowpro.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="wmode" value="window" />
<param name="bgcolor" value="#FFFFFF" />
<embed src="slideshowpro.swf" id="storm" wmode="window" quality="best" FlashVars="<b>xmlFile=storm.asp?imagegroupid=<%= "17" %></b>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" scale="noscale" bgcolor="#FFFFFF" type="application/x-shockwave-flash" width="250" height="200" pluginspage="www.macromedia.com/go/getflashplayer" />
</object></i>
And into the Asp file that generate the xml read it with <b>Request.QueryString</b>
<i>Dim rsImages__MMColParam
rsImages__MMColParam = "1"
If (Request.QueryString("imagegroupid"


rsImages__MMColParam = <b>Request.QueryString("imagegroupid"

End If</i>
Thant's it. I hope this helps you.
Regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com
Replied 15 Sep 2007 17:57:07
15 Sep 2007 17:57:07 eddie young replied:
George,
Thanks for the help. I am so sorry, but I am using php not asp and I need to know how to do this with php.
Thanks again for your help,
Eddie
Thanks for the help. I am so sorry, but I am using php not asp and I need to know how to do this with php.
Thanks again for your help,
Eddie
Replied 15 Sep 2007 19:57:42
15 Sep 2007 19:57:42 eddie young replied:
Hi George,
One other point I need to make is that I do not want to use session variables. I want all users to be seeing the same data. I want to make a realty type slideshow of images for different homes. I want the slideshow to show all of the images for home 1 when someone clicks on that homes detail page. Then I want the same detail page to show all of the images for home 2 when someone clicks on that home and goes to the detail page.
Thanks again in advance for your help,
Eddie Young
One other point I need to make is that I do not want to use session variables. I want all users to be seeing the same data. I want to make a realty type slideshow of images for different homes. I want the slideshow to show all of the images for home 1 when someone clicks on that homes detail page. Then I want the same detail page to show all of the images for home 2 when someone clicks on that home and goes to the detail page.
Thanks again in advance for your help,
Eddie Young
Replied 17 Sep 2007 10:09:14
17 Sep 2007 10:09:14 Georgi Kralev replied:
Hi eddie,
If you do not want to use Session variables then you can pass the parameter into the URL.
For example:
<i>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="450" height="300" id="dynslideshow" align="middle">
<param name="FlashVars" value="<b>xmlFile=dynslideshow_xml.php?imagegroupid=<?php echo 1 ?></b>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" />
<param name="movie" value="slideshowpro.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="wmode" value="window" />
<param name="bgcolor" value="#FFFFFF" />
<embed src="slideshowpro.swf" id="dynslideshow" wmode="window" quality="best" FlashVars="<b>xmlFile=dynslideshow_xml.php?imagegroupid=<?php echo 1 ?></b>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" scale="noscale" bgcolor="#FFFFFF" type="application/x-shockwave-flash" width="450" height="300" pluginspage="www.macromedia.com/go/getflashplayer" />
</object></i>
And in the php file that generate the xml code you can get the variable and use it for selecting the appropriate database records.
For example:
<i>$colname_rsImages = "-1";
if (isset($_GET['imagegroupid'])) {
<b>$colname_rsImages = $_GET['imagegroupid'];</b>
}
mysql_select_db($database_cnn_TestDB, $cnn_TestDB);
$query_rsImages = sprintf("SELECT * FROM images WHERE userId = %s", GetSQLValueString(<b>$colname_rsImages</b>, "int"
);
</i>
I hope this helps you.
For more information you can also check the following FAQ:
www.dmxzone.com/ShowDetail.asp?NewsId=13948
(It is for Flash Album Generator 2 but the approach could be used for Active Slideshow Pro).
<b>NOTES:</b>
1. The above code and FAQ are tested only on Windows XP, IIS 5.0 and PHP 5.2
2. This solution comes without warranty or support of any kind.
Best regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com
If you do not want to use Session variables then you can pass the parameter into the URL.
For example:
<i>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="450" height="300" id="dynslideshow" align="middle">
<param name="FlashVars" value="<b>xmlFile=dynslideshow_xml.php?imagegroupid=<?php echo 1 ?></b>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" />
<param name="movie" value="slideshowpro.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="wmode" value="window" />
<param name="bgcolor" value="#FFFFFF" />
<embed src="slideshowpro.swf" id="dynslideshow" wmode="window" quality="best" FlashVars="<b>xmlFile=dynslideshow_xml.php?imagegroupid=<?php echo 1 ?></b>&preloaderBackColor=0x0099FF&preloaderBorderColor=0xCCCCCC" scale="noscale" bgcolor="#FFFFFF" type="application/x-shockwave-flash" width="450" height="300" pluginspage="www.macromedia.com/go/getflashplayer" />
</object></i>
And in the php file that generate the xml code you can get the variable and use it for selecting the appropriate database records.
For example:
<i>$colname_rsImages = "-1";
if (isset($_GET['imagegroupid'])) {
<b>$colname_rsImages = $_GET['imagegroupid'];</b>
}
mysql_select_db($database_cnn_TestDB, $cnn_TestDB);
$query_rsImages = sprintf("SELECT * FROM images WHERE userId = %s", GetSQLValueString(<b>$colname_rsImages</b>, "int"

</i>
I hope this helps you.
For more information you can also check the following FAQ:
www.dmxzone.com/ShowDetail.asp?NewsId=13948
(It is for Flash Album Generator 2 but the approach could be used for Active Slideshow Pro).
<b>NOTES:</b>
1. The above code and FAQ are tested only on Windows XP, IIS 5.0 and PHP 5.2
2. This solution comes without warranty or support of any kind.
Best regards,
Georgi Kralev
----------------------------------
Support - www.DMXzone.com