<?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: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=8#post213912</link>
			<description>&lt;p&gt;Well... i couldn't for the life of me get the code working by inserting the html directly into the editor... it just kept stripping the values no matter what i tried.  I actually didn't get as far as to test this method in FF. I went with the original content() script because it was the only way i could get it to work both IE and FF.  I used the below code:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function Content() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$content = $this-&amp;gt;Content;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$content = str_replace('$PayPal1', $this-&amp;gt;PayPal1(), $content);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$content = str_replace('$PayPal3', $this-&amp;gt;PayPal2(), $content);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$content = str_replace('$PayPal4', $this-&amp;gt;PayPal4(), $content);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$content = str_replace('$PayPal5', $this-&amp;gt;PayPal5(), $content);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$content = str_replace('$PayPal6', $this-&amp;gt;PayPal6(), $content);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return $content;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function PayPalRecreation() { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return '&amp;lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type=&quot;hidden&quot; name=&quot;cmd&quot; value=&quot;_s-xclick&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type=&quot;hidden&quot; name=&quot;hosted_button_id&quot; value=&quot;??????&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type=&quot;image&quot; src=&quot;https://www.paypal.com/en_US/i/btn/btn_paynow_SM.gif&quot; border=&quot;0&quot; name=&quot;submit&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://www.paypal.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; height=&quot;1&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/form&amp;gt;';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;So all that is in the content editor is &lt;strong&gt;$PayPal1&lt;/strong&gt; etc.  It seems to be working all ok.  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=8#post213912&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=8#post213912&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 24 Oct 2008 10:07:41 +1300</pubDate>
			<dc:creator>Briohny</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=8#post213912</guid>
		</item>
		
		<item>
			<title>Re: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=0#post213900</link>
			<description>&lt;p&gt;Ah, good.&lt;/p&gt;&lt;p&gt;Do you want to post how you did it for future searchers please?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=0#post213900&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=0#post213900&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 24 Oct 2008 09:34:23 +1300</pubDate>
			<dc:creator>Double-A-Ron</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=0#post213900</guid>
		</item>
		
		<item>
			<title>Re: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=0#post213893</link>
			<description>&lt;p&gt;Can you confirm that this only happens in IE but is ok in firefox?&lt;/p&gt;&lt;p&gt;Personally, I don't like this sort of hack. You open your app up to security issues and give your client far too much room to mess things up.&lt;/p&gt;&lt;p&gt;Do they really need to be able to change/move these buttons around the page?&lt;/p&gt;&lt;p&gt;Cheers&lt;br /&gt;Aaron&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=0#post213893&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=0#post213893&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 24 Oct 2008 09:33:27 +1300</pubDate>
			<dc:creator>Double-A-Ron</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=0#post213893</guid>
		</item>
		
		<item>
			<title>Re: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=0#post213884</link>
			<description>&lt;p&gt;Ok... figured it out.  All good!  Thanks  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=0#post213884&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=0#post213884&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 24 Oct 2008 09:23:08 +1300</pubDate>
			<dc:creator>Briohny</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=0#post213884</guid>
		</item>
		
		<item>
			<title>Re: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=0#post213764</link>
			<description>&lt;p&gt;Sorry... only getting back to you now.  Yep, that did the trick.  Thanks.&lt;/p&gt;&lt;p&gt;edit: Actually no.  I followed the instructions and changed the tinymce.template.js valid elements as explained in above 2 links and although it included most of the &lt;em&gt;form&lt;/em&gt; paypal script, it still stripped the actual 'value' field which means it won't link through to the paypal payment page.  I'm happy enough using the original 'content' script but just don't know how to manipulate the code.  Or if you have any other ideas?  Thanks again for your help.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=0#post213764&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=0#post213764&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Fri, 24 Oct 2008 06:59:14 +1300</pubDate>
			<dc:creator>Briohny</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=0#post213764</guid>
		</item>
		
		<item>
			<title>Re: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=0#post205374</link>
			<description>&lt;p&gt;And if you look at this on Moxiecode's Wiki, about halfway down is the string to set the editor to accept the full XHTML rule set.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements&quot;&gt;http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/valid_elements&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Cheers&lt;br /&gt;Aaron&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=0#post205374&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=0#post205374&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Oct 2008 22:56:01 +1300</pubDate>
			<dc:creator>Double-A-Ron</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=0#post205374</guid>
		</item>
		
		<item>
			<title>Re: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=0#post205370</link>
			<description>&lt;p&gt;Oh I see, so you are wanting to enter the HTML direct into the content field for the page in the CMS?&lt;/p&gt;&lt;p&gt;If so, it's actually TinyMCE that does the stripping there, not Silverstripe.&lt;/p&gt;&lt;p&gt;You can edit the TinyMCE setup to allow certain tags that aren't allowed by default. It only allows the most basic formatting and element attributes by default.&lt;/p&gt;&lt;p&gt;Have a look at this: &lt;a href=&quot;http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/128480&quot;&gt;http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/128480&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Let me know if I have misunderstood what you are doing.&lt;/p&gt;&lt;p&gt;Cheers&lt;br /&gt;Aaron&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=0#post205370&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=0#post205370&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Oct 2008 22:50:49 +1300</pubDate>
			<dc:creator>Double-A-Ron</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=0#post205370</guid>
		</item>
		
		<item>
			<title>Re: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=0#post205323</link>
			<description>&lt;p&gt;Hey Double-A-Ron,&lt;/p&gt;&lt;p&gt;Thanks for your reply.  I've tried embedding the paypal code directly into the HTML editor however it strips all the form functions and hence doesn't work.  I want to be able to use $Paypal1, $Paypal2 etc directly into the HTML editor so that my client can manage the display and content of her site.  I just need to be able to define each button as they have different parameters such as name, description and price.  &lt;/p&gt;&lt;p&gt;An example of the code that needs to be placed in there for a Paypal button is:&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;&amp;lt;form action=&quot;https://www.paypal.com/cgi-bin/webscr&quot; method=&quot;post&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type=&quot;hidden&quot; name=&quot;cmd&quot; value=&quot;_s-xclick&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type=&quot;hidden&quot; name=&quot;hosted_button_id&quot; value=&quot;123456&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;input type=&quot;image&quot; src=&quot;https://www.paypal.com/en_US/i/btn/btn_paynow_SM.gif&quot; border=&quot;0&quot; name=&quot;submit&quot; alt=&quot;&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;img alt=&quot;&quot; border=&quot;0&quot; src=&quot;https://www.paypal.com/en_US/i/scr/pixel.gif&quot; width=&quot;1&quot; height=&quot;1&quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/form&amp;gt;&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;The code in my first post works fine for 2 buttons but i need around 6 and i'm not sure of the correct coding. &lt;/p&gt;&lt;p&gt;I'd be happy to use another technique other than the Content() method but i just don't know any!&lt;/p&gt;&lt;p&gt;Any ideas?&lt;/p&gt;&lt;p&gt;Thanks.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=0#post205323&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=0#post205323&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Oct 2008 21:48:04 +1300</pubDate>
			<dc:creator>Briohny</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=0#post205323</guid>
		</item>
		
		<item>
			<title>Re: multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803?start=0#post203021</link>
			<description>&lt;p&gt;Hmmm, I don't like that Content() method, but that's an opinion.&lt;/p&gt;&lt;p&gt;Is there a reason why you simply don't use $PayPal1, $PayPal2 etc directly in your template? I don't know what logic is in &amp;lt;...paypal form code...&amp;gt; so I'm not sure if this is possible for you, but the Content() method just seems to be an uncessecary layer of functionality as far as displaying Paypal buttons is concern.&lt;/p&gt;&lt;p&gt;I would probably just embed the paypal form code directly into the template for that page if it were me.&lt;/p&gt;&lt;p&gt;Cheers&lt;br /&gt;Aaron&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803?start=0#post203021&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/202803?start=0#post203021&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Oct 2008 10:58:50 +1300</pubDate>
			<dc:creator>Double-A-Ron</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803?start=0#post203021</guid>
		</item>
		
		<item>
			<title>multiple paypal buttons</title>
			<link>http://www.silverstripe.org/archive/show/202803#post202803</link>
			<description>&lt;p&gt;I want to have 6 different paypal buttons throughout my website.  Currently I have the following code in my page.php file.&lt;/p&gt;&lt;p&gt;&lt;div class=&quot;codesnippet&quot;&gt;&lt;p&gt;function Content() { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$tmp = str_replace('$PayPal1', $this-&amp;gt;PayPal1(), $this-&amp;gt;Content);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return str_replace('$PayPal2', $this-&amp;gt;PayPal2(), $tmp);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;p&gt;function PayPal1() { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return '&amp;lt;...paypal form code...&amp;gt;';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;} &lt;/p&gt;&lt;p&gt;function PayPal2() { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return '&amp;lt;...paypal form code...&amp;gt;';&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/p&gt;&lt;/div&gt;&lt;/p&gt;&lt;p&gt;It works fine for 2 buttons... but how do i change it so that it I can display 6.  I've been mucking around with all the scripting but can't get it to work... I'm still getting used to the logic, definitions and coding of Silverstripe.  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;Thanks in advance.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: multiple paypal buttons &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803#post202803&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/202803#post202803&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Thu, 16 Oct 2008 09:49:33 +1300</pubDate>
			<dc:creator>Briohny</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/202803#post202803</guid>
		</item>
		

	</channel>
</rss>