<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: Adding a php slideshow</title>
			<link>http://www.silverstripe.org/archive/show/161969?start=0#post162407</link>
			<description>&lt;p&gt;Thank you very much simon!&lt;br /&gt;for some reason this didn't worked:&lt;/p&gt;&lt;p&gt;&amp;lt;iframe src=&quot;http://sitesimpleonline.com/demoslideshow.php&quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;but like this it did (even though it's not correct...)&lt;/p&gt;&lt;p&gt;&amp;lt;iframe src=&quot;http://sitesimpleonline.com/demoslideshow.php&quot;&amp;gt;&amp;lt;/iframe&amp;gt;&lt;/p&gt;&lt;p&gt;but &quot;the end justifies the means&quot; lol&lt;/p&gt;&lt;p&gt;Thanx again!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding a php slideshow &lt;a href=&quot;http://www.silverstripe.org/archive/show/161969?start=0#post162407&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/161969?start=0#post162407&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 07 Sep 2008 09:36:10 +1200</pubDate>
			<dc:creator>luisq</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/161969?start=0#post162407</guid>
		</item>
		
		<item>
			<title>Re: Adding a php slideshow</title>
			<link>http://www.silverstripe.org/archive/show/161969?start=0#post162400</link>
			<description>&lt;p&gt;The iframe needs to be closed, so replace &lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;iframe src=&quot;http://sitesimpleonline.com/demoslideshow.php&quot;&amp;gt;&lt;/p&gt;&lt;/div&gt; with &lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;iframe src=&quot;http://sitesimpleonline.com/demoslideshow.php&quot; /&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;You may also want to specify the width and height of the iframe.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding a php slideshow &lt;a href=&quot;http://www.silverstripe.org/archive/show/161969?start=0#post162400&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/161969?start=0#post162400&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 07 Sep 2008 09:28:31 +1200</pubDate>
			<dc:creator>simon_w</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/161969?start=0#post162400</guid>
		</item>
		
		<item>
			<title>Re: Adding a php slideshow</title>
			<link>http://www.silverstripe.org/archive/show/161969?start=0#post162329</link>
			<description>&lt;p&gt;Thanx simon but didn't make it, the slideshow has to many prints, echos, returns and to many files taht are being include = (&lt;/p&gt;&lt;p&gt;So I'm trying to use a simple &amp;lt;iframe&amp;gt;, but for some  reason SS doesn't like iframes and makes a mess of the page this is what I'm using:&lt;/p&gt;&lt;p&gt;&amp;lt;?php&lt;br /&gt;/**&lt;br /&gt; * Defines the HomePage page type&lt;br /&gt; */&lt;/p&gt;&lt;p&gt;class HomePage extends Page {&lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;class HomePage_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function Content() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  return str_replace('$slideshow', $this-&amp;gt;slideshow(), $this-&amp;gt;Content);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function slideshow() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;nbsp;&amp;nbsp;&amp;nbsp;$show = '&amp;lt;iframe src=&quot;http://sitesimpleonline.com/demoslideshow.php&quot;&amp;gt;';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $show;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/p&gt;&lt;p&gt;any suggestion??? =P&lt;/p&gt;&lt;p&gt;Thnx again!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding a php slideshow &lt;a href=&quot;http://www.silverstripe.org/archive/show/161969?start=0#post162329&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/161969?start=0#post162329&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sun, 07 Sep 2008 07:34:35 +1200</pubDate>
			<dc:creator>luisq</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/161969?start=0#post162329</guid>
		</item>
		
		<item>
			<title>Re: Adding a php slideshow</title>
			<link>http://www.silverstripe.org/archive/show/161969?start=0#post162094</link>
			<description>&lt;p&gt;What you could do is wrap the contents of slideshow.php in a function, which you can call. Instead of using echo/print/printf in that function, you'll want to return all output. Depending on how you do this, you may need to append the output to a variable and then return the variable, or, if there's only one output call, change it to return;&lt;/p&gt;&lt;p&gt;Then change the slideshow() method to something like:&lt;br /&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function slideshow() { &lt;br /&gt;   include_once('slideshow.php'); &lt;br /&gt;   return slideshowFunc();&lt;br /&gt;   }&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding a php slideshow &lt;a href=&quot;http://www.silverstripe.org/archive/show/161969?start=0#post162094&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/161969?start=0#post162094&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 06 Sep 2008 21:15:23 +1200</pubDate>
			<dc:creator>simon_w</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/161969?start=0#post162094</guid>
		</item>
		
		<item>
			<title>Adding a php slideshow</title>
			<link>http://www.silverstripe.org/archive/show/161969#post161969</link>
			<description>&lt;p&gt;Hello there,&lt;br /&gt;I'm trying to add a slideshow to my site that I got online. I got it to make it appear on the place that I want it using this code:&lt;/p&gt;&lt;p&gt;mysite/code/HomePage:&lt;/p&gt;&lt;p&gt;class HomePage_Controller extends Page_Controller {&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function Content() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  return str_replace('$slideshow', $this-&amp;gt;slideshow(), $this-&amp;gt;Content);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;function slideshow() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;  return  include('slideshow.php');&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;/p&gt;&lt;p&gt;}&lt;/p&gt;&lt;p&gt;so by that I'm able to show it (include it) on the part that I want. But when it comes on the site, it appears all the way to the top, and it only appear a number 1 where it suppose to be the slideshow. You can look at it here: &lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://sitesimpleonline.com/&quot;&gt;http://sitesimpleonline.com&lt;/a&gt;&lt;/p&gt;&lt;p&gt;I try to change the styles of the div, add a new div and put it inside, try everything with CSS but I think that it's not the problem =(&lt;/p&gt;&lt;p&gt;Any help, comments, manuals, etc will be REALLY appreciated!&lt;/p&gt;&lt;p&gt;THANK YOU very much!!!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Adding a php slideshow &lt;a href=&quot;http://www.silverstripe.org/archive/show/161969#post161969&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/161969#post161969&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Sat, 06 Sep 2008 17:31:05 +1200</pubDate>
			<dc:creator>luisq</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/161969#post161969</guid>
		</item>
		

	</channel>
</rss>