<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:series="http://unfoldingneurons.com/"
		>
<channel>
	<title>Comments on: A Theme Tip For WordPress Theme Authors</title>
	<atom:link href="http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/feed/" rel="self" type="application/rss+xml" />
	<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/</link>
	<description>Faith, Family, Friends.</description>
	<lastBuildDate>Tue, 16 Mar 2010 02:33:41 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Adding Theme Options To WordPress Child Themes &#124; Papertree Design</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-24071</link>
		<dc:creator>Adding Theme Options To WordPress Child Themes &#124; Papertree Design</dc:creator>
		<pubDate>Fri, 13 Nov 2009 20:56:30 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-24071</guid>
		<description>[...] This is condensed version of the options setup for example purposes only, for further info on this please see this post. [...]</description>
		<content:encoded><![CDATA[<p>[...] This is condensed version of the options setup for example purposes only, for further info on this please see this post. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: DigitalHints &#187; Blog Archive &#187; Wordpress - Theme Options</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23851</link>
		<dc:creator>DigitalHints &#187; Blog Archive &#187; Wordpress - Theme Options</dc:creator>
		<pubDate>Mon, 06 Apr 2009 22:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23851</guid>
		<description>[...] literalbarrage [...]</description>
		<content:encoded><![CDATA[<p>[...] literalbarrage [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marc</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23712</link>
		<dc:creator>Marc</dc:creator>
		<pubDate>Sat, 01 Nov 2008 12:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23712</guid>
		<description>Ive spent last 3 hours implementing a much-better theme options page to my later WP theme, largely with thanks to the info posted above and within these comments.

However, after a lot of head-scratching and editing, I have managed to strip the slashes from inside my WP options page (I want to add a &quot;text-area&quot; field for a google adsense banner code), the adsense code when saved no longer has the slashes, but when I return to the site, clear cache and refresh, the adsense code doesn&#039;t work as when I view the source it&#039;s still showing the adsense code WITH slashes.

So can anyone tell me of a way to make the adsense banner code work on-site?

Any help would be GREATLY appreciated - I can offer a free theme from stylewp.com to anyone who solves this problem I have :)</description>
		<content:encoded><![CDATA[<p>Ive spent last 3 hours implementing a much-better theme options page to my later WP theme, largely with thanks to the info posted above and within these comments.</p>
<p>However, after a lot of head-scratching and editing, I have managed to strip the slashes from inside my WP options page (I want to add a &#8220;text-area&#8221; field for a google adsense banner code), the adsense code when saved no longer has the slashes, but when I return to the site, clear cache and refresh, the adsense code doesn&#8217;t work as when I view the source it&#8217;s still showing the adsense code WITH slashes.</p>
<p>So can anyone tell me of a way to make the adsense banner code work on-site?</p>
<p>Any help would be GREATLY appreciated &#8211; I can offer a free theme from stylewp.com to anyone who solves this problem I have :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leonaut.com</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23565</link>
		<dc:creator>Leonaut.com</dc:creator>
		<pubDate>Thu, 04 Sep 2008 05:40:39 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23565</guid>
		<description>&lt;strong&gt;A Theme Tip For WordPress Theme Authors...&lt;/strong&gt;

For theme authors looking to customize their theme offerings with a fancy options/administration screen, functions.php is the place to start. By default, WordPress loads it whenever your theme is active â€” on the front page or on the back end....</description>
		<content:encoded><![CDATA[<p><strong>A Theme Tip For WordPress Theme Authors&#8230;</strong></p>
<p>For theme authors looking to customize their theme offerings with a fancy options/administration screen, functions.php is the place to start. By default, WordPress loads it whenever your theme is active â€” on the front page or on the back end&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Agregar Opciones a tus themes &#124; Omar Corrales Blog</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23385</link>
		<dc:creator>Agregar Opciones a tus themes &#124; Omar Corrales Blog</dc:creator>
		<pubDate>Wed, 09 Jul 2008 10:32:56 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23385</guid>
		<description>[...] talvez un poco mas simple pero si desean tambien hay otra version de este con muchas mas opciones Aqui. Por lo que vi en algunos premium themes, este es el metodo que usan.    Escrito 9 de Julio, 2008 [...]</description>
		<content:encoded><![CDATA[<p>[...] talvez un poco mas simple pero si desean tambien hay otra version de este con muchas mas opciones Aqui. Por lo que vi en algunos premium themes, este es el metodo que usan.    Escrito 9 de Julio, 2008 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SevaTeem &#187; Blog Archive &#187; Adding an options page and the first options</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23252</link>
		<dc:creator>SevaTeem &#187; Blog Archive &#187; Adding an options page and the first options</dc:creator>
		<pubDate>Fri, 23 May 2008 12:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23252</guid>
		<description>[...] blazed the trail in 2006 with a great tutorial as to how to go about creating options pages and Literal Barrage added more sophistication to the original design. I&#8217;ve taken aspect of both from them in [...]</description>
		<content:encoded><![CDATA[<p>[...] blazed the trail in 2006 with a great tutorial as to how to go about creating options pages and Literal Barrage added more sophistication to the original design. I&#8217;ve taken aspect of both from them in [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23241</link>
		<dc:creator>Omar</dc:creator>
		<pubDate>Mon, 19 May 2008 20:09:21 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23241</guid>
		<description>ohh ok thanks... kinda wierd cause the code i posted works perfectly on my server... just that functions.php is messing up the headers in wordpress admin panel and yet i see no posible way this could happen :S</description>
		<content:encoded><![CDATA[<p>ohh ok thanks&#8230; kinda wierd cause the code i posted works perfectly on my server&#8230; just that functions.php is messing up the headers in wordpress admin panel and yet i see no posible way this could happen :S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23239</link>
		<dc:creator>Doug</dc:creator>
		<pubDate>Mon, 19 May 2008 14:28:00 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23239</guid>
		<description>Omar:
You&#039;re coming at it from the wrong direction, though.  The slashes generally get inserted by php at save time by magic_quotes so as to avoid confusing (certain) MySQL servers.  This will result in all data returned from the DB having the slashes in it, thus displaying them in your options page.

You want to clean the data on retrieval if possible so as to avoid \&quot;options\&quot; showing up in your options page.</description>
		<content:encoded><![CDATA[<p>Omar:<br />
You&#8217;re coming at it from the wrong direction, though.  The slashes generally get inserted by php at save time by magic_quotes so as to avoid confusing (certain) MySQL servers.  This will result in all data returned from the DB having the slashes in it, thus displaying them in your options page.</p>
<p>You want to clean the data on retrieval if possible so as to avoid \&#8221;options\&#8221; showing up in your options page.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23238</link>
		<dc:creator>Omar</dc:creator>
		<pubDate>Mon, 19 May 2008 13:53:28 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23238</guid>
		<description>sorry for doble posting, but after doing what adam said i came up with something so i dont have to add stripslashes() everytime i need to use the values i set

        if ( &#039;save&#039; == $_REQUEST[&#039;action&#039;] ) {
            foreach ($options as $value) {
				$dato = stripslashes($_REQUEST[$value[&#039;id&#039;]]);
                update_option( $value[&#039;id&#039;], $dato ); }
            foreach ($options as $value) {
				$dato = stripslashes($_REQUEST[$value[&#039;id&#039;]]);
                if( isset( $_REQUEST[ $value[&#039;id&#039;] ] ) ) { update_option( $value[&#039;id&#039;], $dato  ); } else { delete_option( $value[&#039;id&#039;] ); } }
        } 

simple add the stripslashes before the data is added :D</description>
		<content:encoded><![CDATA[<p>sorry for doble posting, but after doing what adam said i came up with something so i dont have to add stripslashes() everytime i need to use the values i set</p>
<p>        if ( &#8217;save&#8217; == $_REQUEST['action'] ) {<br />
            foreach ($options as $value) {<br />
				$dato = stripslashes($_REQUEST[$value['id']]);<br />
                update_option( $value['id'], $dato ); }<br />
            foreach ($options as $value) {<br />
				$dato = stripslashes($_REQUEST[$value['id']]);<br />
                if( isset( $_REQUEST[ $value['id'] ] ) ) { update_option( $value['id'], $dato  ); } else { delete_option( $value['id'] ); } }<br />
        } </p>
<p>simple add the stripslashes before the data is added :D</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omar</title>
		<link>http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/comment-page-1/#comment-23237</link>
		<dc:creator>Omar</dc:creator>
		<pubDate>Mon, 19 May 2008 13:14:00 +0000</pubDate>
		<guid isPermaLink="false">http://literalbarrage.org/blog/archives/2007/05/03/a-theme-tip-for-wordpress-theme-authors/#comment-23237</guid>
		<description>thanks for the fast response!! :D</description>
		<content:encoded><![CDATA[<p>thanks for the fast response!! :D</p>
]]></content:encoded>
	</item>
</channel>
</rss>
