<?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/"
		>
<channel>
	<title>Comments on: WordPress Constants</title>
	<atom:link href="http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/feed/" rel="self" type="application/rss+xml" />
	<link>http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/</link>
	<description>"It's All Geek To Me"</description>
	<lastBuildDate>Mon, 09 Apr 2012 03:49:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Momekh</title>
		<link>http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/comment-page-1/#comment-2517</link>
		<dc:creator>Momekh</dc:creator>
		<pubDate>Sat, 19 Dec 2009 15:19:25 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/?p=178#comment-2517</guid>
		<description>thanks man, appreciated. :)</description>
		<content:encoded><![CDATA[<p>thanks man, appreciated. <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen R</title>
		<link>http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/comment-page-1/#comment-2508</link>
		<dc:creator>Stephen R</dc:creator>
		<pubDate>Fri, 11 Dec 2009 16:34:02 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/?p=178#comment-2508</guid>
		<description>&quot;I just can not find any docs on register_settings to write plugins.&quot;

Check out Otto&#039;s &lt;a href=&quot;http://ottodestruct.com/blog/2009/wordpress-settings-api-tutorial/&quot;&gt;WordPress Settings API Tutorial&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>&#8220;I just can not find any docs on register_settings to write plugins.&#8221;</p>
<p>Check out Otto&#8217;s <a href="http://ottodestruct.com/blog/2009/wordpress-settings-api-tutorial/">WordPress Settings API Tutorial</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Momekh</title>
		<link>http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/comment-page-1/#comment-2506</link>
		<dc:creator>Momekh</dc:creator>
		<pubDate>Fri, 11 Dec 2009 16:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/?p=178#comment-2506</guid>
		<description>way ahead of you broda :) Thanks.

But Right now I just can not find any docs on register_settings to write plugins. Guess a good plugin author would use that activation function still, right?
And More importantly, I can set and reset the favicon etc. That bit is done. Now I want to have the option of uploading an image. The validation of the image is for later (that its a png or an ico file, is a certain size etc). But I have no clue as to HOW to upload images and store them through a plugin&#039;s options page. 

Any hints on that? Thanks either way.

P.S. I have also made bare-bones plugin that replaces the site title from text to an image (stole the code from kubrick, which injects css into the main page :) ), so yea, its a steep learning curve here :)</description>
		<content:encoded><![CDATA[<p>way ahead of you broda <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Thanks.</p>
<p>But Right now I just can not find any docs on register_settings to write plugins. Guess a good plugin author would use that activation function still, right?<br />
And More importantly, I can set and reset the favicon etc. That bit is done. Now I want to have the option of uploading an image. The validation of the image is for later (that its a png or an ico file, is a certain size etc). But I have no clue as to HOW to upload images and store them through a plugin&#8217;s options page. </p>
<p>Any hints on that? Thanks either way.</p>
<p>P.S. I have also made bare-bones plugin that replaces the site title from text to an image (stole the code from kubrick, which injects css into the main page <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ), so yea, its a steep learning curve here <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen R</title>
		<link>http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/comment-page-1/#comment-2501</link>
		<dc:creator>Stephen R</dc:creator>
		<pubDate>Thu, 10 Dec 2009 16:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/?p=178#comment-2501</guid>
		<description>Momehk -- Welcome to WordPress hacking!  ;-)

Here&#039;s my two-second &quot;How to write plugins&quot; class: learn about add_action and add_filter

In your case (just off the top of my head) I think you want to do something like this:

&lt;pre&gt;&lt;code&gt;add_action( &#039;wp-head&#039;, &#039;add_custom_favicon&#039;);

function add_custom_favicon() {
    // echo the favicon HTML line here
}
&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Momehk &#8212; Welcome to WordPress hacking!  <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Here&#8217;s my two-second &#8220;How to write plugins&#8221; class: learn about add_action and add_filter</p>
<p>In your case (just off the top of my head) I think you want to do something like this:</p>
<pre><code>add_action( 'wp-head', 'add_custom_favicon');

function add_custom_favicon() {
    // echo the favicon HTML line here
}
</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Momekh</title>
		<link>http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/comment-page-1/#comment-2500</link>
		<dc:creator>Momekh</dc:creator>
		<pubDate>Thu, 10 Dec 2009 10:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/?p=178#comment-2500</guid>
		<description>Although most of the posts here are not in English (as far as I am concerned), I am trying for the past few days to write perhaps the world&#039;s simplest plugin i.e. setting one&#039;s favicon. Along with the process, I am learning PHP and the WP system itself, so I have a long way to go to parse much of what you talk about here.

But your website looks like a great hub of info for me. Thanks for putting such stuff up. From Pakistan, peace out. :)

God bless and good luck,
M.</description>
		<content:encoded><![CDATA[<p>Although most of the posts here are not in English (as far as I am concerned), I am trying for the past few days to write perhaps the world&#8217;s simplest plugin i.e. setting one&#8217;s favicon. Along with the process, I am learning PHP and the WP system itself, so I have a long way to go to parse much of what you talk about here.</p>
<p>But your website looks like a great hub of info for me. Thanks for putting such stuff up. From Pakistan, peace out. <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>God bless and good luck,<br />
M.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stephen</title>
		<link>http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/comment-page-1/#comment-1528</link>
		<dc:creator>Stephen</dc:creator>
		<pubDate>Mon, 25 Aug 2008 00:20:12 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/?p=178#comment-1528</guid>
		<description>Wow.  That there would constitute a significant bug in my quiz plugin.  That&#039;s why it&#039;s a beta -- to discover these issues before final release. Thanks for letting me know.  ;)

&lt;blockquote&gt;Anyway, my comment was: what would help even more fellow hackers would be to mention which constants were designed to be user defined in wp-config.php&lt;/blockquote&gt;

True.  I didn&#039;t go full boat with this, but there are definitely times when I&#039;m trying to remember if such and such constant exists, or what the name is.  This list will help jog my memory -- at least let me know what to look for. :)</description>
		<content:encoded><![CDATA[<p>Wow.  That there would constitute a significant bug in my quiz plugin.  That&#8217;s why it&#8217;s a beta &#8212; to discover these issues before final release. Thanks for letting me know.  <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<blockquote><p>Anyway, my comment was: what would help even more fellow hackers would be to mention which constants were designed to be user defined in wp-config.php</p></blockquote>
<p>True.  I didn&#8217;t go full boat with this, but there are definitely times when I&#8217;m trying to remember if such and such constant exists, or what the name is.  This list will help jog my memory &#8212; at least let me know what to look for. <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozh</title>
		<link>http://striderweb.com/nerdaphernalia/2008/08/wordpress-constants/comment-page-1/#comment-1527</link>
		<dc:creator>Ozh</dc:creator>
		<pubDate>Sun, 24 Aug 2008 08:27:42 +0000</pubDate>
		<guid isPermaLink="false">http://striderweb.com/nerdaphernalia/?p=178#comment-1527</guid>
		<description>[Note: Comment originally posted to previous post.  Moved here for obvious reasons... -- ed.]

Hey, this is actually a comment for the next post about constant, but... you forgot to define a fun quizz for this post so nobody can comment because there&#039;s no question to answer and yet the plugin won&#039;t let any comment make it through :) Idea for improvement here?

Anyway, my comment was: what would help even more fellow hackers would be to mention which constants were designed to be user defined in wp-config.php (ie constants enclosed in a &quot;if !defined then define&quot;)</description>
		<content:encoded><![CDATA[<p>[Note: Comment originally posted to previous post.  Moved here for obvious reasons... -- ed.]</p>
<p>Hey, this is actually a comment for the next post about constant, but&#8230; you forgot to define a fun quizz for this post so nobody can comment because there&#8217;s no question to answer and yet the plugin won&#8217;t let any comment make it through <img src='http://striderweb.com/nerdaphernalia/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Idea for improvement here?</p>
<p>Anyway, my comment was: what would help even more fellow hackers would be to mention which constants were designed to be user defined in wp-config.php (ie constants enclosed in a &#8220;if !defined then define&#8221;)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

