<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rick's HideOut &#187; Wordpress</title>
	<atom:link href="http://rick.jinlabs.com/category/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://rick.jinlabs.com</link>
	<description>Keep Real... Don't Even Try...</description>
	<lastBuildDate>Tue, 26 Apr 2011 13:44:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How add options to your WordPress 2.7 dashboard widgets</title>
		<link>http://rick.jinlabs.com/2009/02/01/how-add-options-to-your-wordpress-27-dashboard-widgets/</link>
		<comments>http://rick.jinlabs.com/2009/02/01/how-add-options-to-your-wordpress-27-dashboard-widgets/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 16:54:48 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=874</guid>
		<description><![CDATA[Well, in this article, I assume you have read the WP Engineer's excellent post Add WordPress Dashboard Widgets, because his code will be our start point. So, we have this code: &#160; &#160; // Load up the localization file if we're using WordPress in a different language // Place it in this plugin's folder and [...]]]></description>
			<content:encoded><![CDATA[<p>Well, in this article, I assume you have read the WP Engineer's excellent post <a href="http://wpengineer.com/add-wordpress-dashboard-widgets/">Add WordPress Dashboard Widgets</a>, because his code will be our start point.</p>
<p>So, we have this code:</p>
<pre class="php">&nbsp;
&nbsp;
<span style="color: #808080; font-style: italic;">// Load up the localization file if we're using WordPress in a different language</span>
<span style="color: #808080; font-style: italic;">// Place it in this plugin's folder and name it &quot;MainFunction-[value in wp-config].mo&quot;</span>
load_plugin_textdomain<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span>, <span style="color: #ff0000;">'/wp-content/plugins/MainFunction'</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">/**
 * Content of Dashboard-Widget
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> MainFunction<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'Test Add Dashboard-Widget'</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/**
 * add Dashboard Widget via function wp_add_dashboard_widget()
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> MainFunction_Init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	wp_add_dashboard_widget<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span>, __<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction Widget Title'</span> <span style="color: #66cc66;">&#41;</span>, <span style="color: #ff0000;">'MainFunction'</span> <span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/**
 * use hook, to integrate new widget
 */</span>
add_action<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'wp_dashboard_setup'</span>, <span style="color: #ff0000;">'MainFunction_Init'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;</pre>
<p>OK, now, remenber the wp_add_dashboard_widget function?</p>
<pre class="php"><span style="color: #000000; font-weight: bold;">function</span> wp_add_dashboard_widget<span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$widget_id</span>, <span style="color: #0000ff;">$widget_name</span>, <span style="color: #0000ff;">$callback</span>, <span style="color: #0000ff;">$control_callback</span> = <span style="color: #000000; font-weight: bold;">null</span> <span style="color: #66cc66;">&#41;</span></pre>
<p>The $control_callback parameter (obviously optional) is our main target. It gives the 'Configure' option to our spiffy widget.<br />
So, we need to add a 4th parameter to wp_add_dashboard_widget:</p>
<pre class="php">wp_add_dashboard_widget<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span>, __<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction Widget Title'</span> <span style="color: #66cc66;">&#41;</span>, <span style="color: #ff0000;">'MainFunction'</span>, <span style="color: #ff0000;">'MainFunction_Setup'</span><span style="color: #66cc66;">&#41;</span>;</pre>
<p>The MainFunction_Setup function handles two things: the options (set the default options, recolect new values, etc) and the option's presentation (i.e. the HTML part)</p>
<p>So, here goes the code:</p>
<pre class="php">&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> MainFunction_Options<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$defaults</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'items'</span> =&gt; <span style="color: #cc66cc;">5</span>, <span style="color: #ff0000;">'boolean'</span> =&gt; <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> !<span style="color: #0000ff;">$options</span> = get_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> || !<a href="http://www.php.net/is_array"><span style="color: #000066;">is_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$options</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>
		<span style="color: #0000ff;">$options</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">return</span> <a href="http://www.php.net/array_merge"><span style="color: #000066;">array_merge</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$defaults</span>, <span style="color: #0000ff;">$options</span> <span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> MainFunction_Setup<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
	<span style="color: #0000ff;">$options</span> = MainFunction_Options<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'post'</span> == <a href="http://www.php.net/strtolower"><span style="color: #000066;">strtolower</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_SERVER</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'REQUEST_METHOD'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> &amp;&amp; <a href="http://www.php.net/isset"><span style="color: #000066;">isset</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'widget_id'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> &amp;&amp; <span style="color: #ff0000;">'MainFunction'</span> == <span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'widget_id'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'items'</span>, <span style="color: #ff0000;">'boolean'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$key</span> <span style="color: #66cc66;">&#41;</span>
				<span style="color: #0000ff;">$options</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$key</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$key</span><span style="color: #66cc66;">&#93;</span>;
		update_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span>, <span style="color: #0000ff;">$options</span> <span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
		&lt;label <span style="color: #b1b100;">for</span>=<span style="color: #ff0000;">&quot;items&quot;</span>&gt;&lt;PHP _e<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'How many items?'</span>, <span style="color: #ff0000;">'MainFunction'</span> <span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;select id=<span style="color: #ff0000;">&quot;items&quot;</span> name=<span style="color: #ff0000;">&quot;items&quot;</span>&gt;
				&lt;PHP
					<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$i</span> = <span style="color: #cc66cc;">5</span>; <span style="color: #0000ff;">$i</span> &lt;= <span style="color: #cc66cc;">20</span>; <span style="color: #0000ff;">$i</span> = <span style="color: #0000ff;">$i</span> + <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span>
						<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;
&lt;option value='$i'&quot;</span> . <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$options</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'items'</span><span style="color: #66cc66;">&#93;</span> == <span style="color: #0000ff;">$i</span> ? <span style="color: #ff0000;">&quot; selected='selected'&quot;</span> : <span style="color: #ff0000;">''</span> <span style="color: #66cc66;">&#41;</span> . <span style="color: #ff0000;">&quot;&gt;$i&lt;/option&gt;
&nbsp;
&quot;</span>;
				<span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/select&gt;
&nbsp;
		&lt;/label&gt;
&nbsp;
&nbsp;
&nbsp;
		&lt;label <span style="color: #b1b100;">for</span>=<span style="color: #ff0000;">&quot;boolean&quot;</span>&gt;
&lt;input id=<span style="color: #ff0000;">&quot;boolean&quot;</span> name=<span style="color: #ff0000;">&quot;boolean&quot;</span> type=<span style="color: #ff0000;">&quot;checkbox&quot;</span> value=<span style="color: #ff0000;">&quot;1&quot;</span>&lt;PHP <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">1</span> == <span style="color: #0000ff;">$options</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'boolean'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">' checked=&quot;checked&quot;'</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span> /&gt;
			&lt;PHP _e<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Activate boolean?'</span>, <span style="color: #ff0000;">'MainFunction'</span> <span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/label&gt;
&nbsp;
&nbsp;
&lt;PHP
 <span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>As you can see, MainFunction_Options puts the default values (if necessary, of course) and MainFunction_Setup show the current values and let change them. You can merge this two, of course...</p>
<p>Now, we have to get the options and use them in our MainFunction function. Change MainFunction like that:</p>
<pre class="php">&nbsp;
<span style="color: #808080; font-style: italic;">/**
 * Content of Dashboard-Widget
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> MainFunction<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
        <span style="color: #0000ff;">$widget_options</span> = MainFunction_Options<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'Test Add Dashboard-Widget'</span>;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;You have selected $widget_options['items'] items&quot;</span>;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;boolean is $widget_options['boolean']&quot;</span>;
&nbsp;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>The complete code here: </p>
<pre class="php">&nbsp;
&lt;PHP
&nbsp;
<span style="color: #808080; font-style: italic;">// Load up the localization file if we're using WordPress in a different language</span>
<span style="color: #808080; font-style: italic;">// Place it in this plugin's folder and name it &quot;MainFunction-[value in wp-config].mo&quot;</span>
load_plugin_textdomain<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span>, <span style="color: #ff0000;">'/wp-content/plugins/MainFunction'</span> <span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #808080; font-style: italic;">/**
 * Content of Dashboard-Widget
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> MainFunction<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
        <span style="color: #0000ff;">$widget_options</span> = MainFunction_Options<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">'Test Add Dashboard-Widget'</span>;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;You have selected $widget_options['items'] items&quot;</span>;
	<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;boolean is $widget_options['boolean']&quot;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/**
 * add Dashboard Widget via function wp_add_dashboard_widget()
 */</span>
<span style="color: #000000; font-weight: bold;">function</span> MainFunction_Init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	wp_add_dashboard_widget<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span>, __<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction Widget Title'</span> <span style="color: #66cc66;">&#41;</span>, <span style="color: #ff0000;">'MainFunction'</span> , <span style="color: #ff0000;">'MainFunction_Setup'</span> <span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> MainFunction_Options<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$defaults</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'items'</span> =&gt; <span style="color: #cc66cc;">5</span>, <span style="color: #ff0000;">'boolean'</span> =&gt; <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #66cc66;">&#40;</span> !<span style="color: #0000ff;">$options</span> = get_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span> || !<a href="http://www.php.net/is_array"><span style="color: #000066;">is_array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$options</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>
		<span style="color: #0000ff;">$options</span> = <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #b1b100;">return</span> <a href="http://www.php.net/array_merge"><span style="color: #000066;">array_merge</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$defaults</span>, <span style="color: #0000ff;">$options</span> <span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> MainFunction_Setup<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
&nbsp;
	<span style="color: #0000ff;">$options</span> = MainFunction_Options<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
	<span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'post'</span> == <a href="http://www.php.net/strtolower"><span style="color: #000066;">strtolower</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_SERVER</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'REQUEST_METHOD'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span> &amp;&amp; <a href="http://www.php.net/isset"><span style="color: #000066;">isset</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'widget_id'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> &amp;&amp; <span style="color: #ff0000;">'MainFunction'</span> == <span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'widget_id'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #b1b100;">foreach</span> <span style="color: #66cc66;">&#40;</span> <a href="http://www.php.net/array"><span style="color: #000066;">array</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'items'</span>, <span style="color: #ff0000;">'boolean'</span> <span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #0000ff;">$key</span> <span style="color: #66cc66;">&#41;</span>
				<span style="color: #0000ff;">$options</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$key</span><span style="color: #66cc66;">&#93;</span> = <span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #0000ff;">$key</span><span style="color: #66cc66;">&#93;</span>;
		update_option<span style="color: #66cc66;">&#40;</span> <span style="color: #ff0000;">'MainFunction'</span>, <span style="color: #0000ff;">$options</span> <span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
		&lt;label <span style="color: #b1b100;">for</span>=<span style="color: #ff0000;">&quot;items&quot;</span>&gt;&lt;PHP _e<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'How many items?'</span>, <span style="color: #ff0000;">'MainFunction'</span> <span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;select id=<span style="color: #ff0000;">&quot;items&quot;</span> name=<span style="color: #ff0000;">&quot;items&quot;</span>&gt;
				&lt;PHP
					<span style="color: #b1b100;">for</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$i</span> = <span style="color: #cc66cc;">5</span>; <span style="color: #0000ff;">$i</span> &lt;= <span style="color: #cc66cc;">20</span>; <span style="color: #0000ff;">$i</span> = <span style="color: #0000ff;">$i</span> + <span style="color: #cc66cc;">1</span> <span style="color: #66cc66;">&#41;</span>
						<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;
&lt;option value='$i'&quot;</span> . <span style="color: #66cc66;">&#40;</span> <span style="color: #0000ff;">$options</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'items'</span><span style="color: #66cc66;">&#93;</span> == <span style="color: #0000ff;">$i</span> ? <span style="color: #ff0000;">&quot; selected='selected'&quot;</span> : <span style="color: #ff0000;">''</span> <span style="color: #66cc66;">&#41;</span> . <span style="color: #ff0000;">&quot;&gt;$i&lt;/option&gt;
&nbsp;
&quot;</span>;
				<span style="color: #000000; font-weight: bold;">?&gt;</span>
			&lt;/select&gt;
&nbsp;
		&lt;/label&gt;
&nbsp;
&nbsp;
&nbsp;
		&lt;label <span style="color: #b1b100;">for</span>=<span style="color: #ff0000;">&quot;boolean&quot;</span>&gt;
&lt;input id=<span style="color: #ff0000;">&quot;boolean&quot;</span> name=<span style="color: #ff0000;">&quot;boolean&quot;</span> type=<span style="color: #ff0000;">&quot;checkbox&quot;</span> value=<span style="color: #ff0000;">&quot;1&quot;</span>&lt;PHP <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">1</span> == <span style="color: #0000ff;">$options</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'boolean'</span><span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#41;</span> <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">' checked=&quot;checked&quot;'</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span> /&gt;
			&lt;PHP _e<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'Activate boolean?'</span>, <span style="color: #ff0000;">'MainFunction'</span> <span style="color: #66cc66;">&#41;</span>; <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/label&gt;
&nbsp;
&nbsp;
&lt;PHP
 <span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/**
 * use hook, to integrate new widget
 */</span>
add_action<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'wp_dashboard_setup'</span>, <span style="color: #ff0000;">'MainFunction_Init'</span><span style="color: #66cc66;">&#41;</span>;
&nbsp;
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;</pre>
<p>You can view a PHPS version (without PHP crippled tags) <a href="http://code.jinlabs.com/MainFunction.phps">here</a>.</p>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2009. | 
<a href="http://rick.jinlabs.com/2009/02/01/how-add-options-to-your-wordpress-27-dashboard-widgets/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/english/" title="Ver todas las entradas en English" rel="category tag">English</a>, <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/dashboard/" rel="tag">dashboard</a>, <a href="http://rick.jinlabs.com/tag/widgets/" rel="tag">widgets</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2009/02/01/how-add-options-to-your-wordpress-27-dashboard-widgets/feed/</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>WordPress schwag</title>
		<link>http://rick.jinlabs.com/2009/01/21/wordpress-schwag/</link>
		<comments>http://rick.jinlabs.com/2009/01/21/wordpress-schwag/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 21:57:57 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Web2.0]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[schwag]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=837</guid>
		<description><![CDATA[Gracias a Maya, acabo de recibir mi paquetito con merchandising de WordPress. Habrá que repartirlo por ahí. Por ejemplo, en la próxima TwittVigo &#169; Rick's HideOut, 2009. &#124; Permalink &#124; Categor&#237;­a: Web2.0, Wordpress &#124; Tags: schwag]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/ryck/3216408166/" title="WordPress Schwag by Richi, on Flickr"><img src="http://farm4.static.flickr.com/3108/3216408166_2f99bfaff0.jpg" width="500" height="375" alt="WordPress Schwag" class="imagen c" /></a></p>
<p>Gracias a <a href="http://mayadesai.wordpress.com/wordpress-schwag/">Maya</a>, acabo de recibir mi paquetito con merchandising de WordPress.</p>
<p>Habrá que repartirlo por ahí. Por ejemplo, en la próxima <a href="http://twittvigo.jottit.com/">TwittVigo</a> <img src='http://rick.jinlabs.com/wp-content/plugins/smilies-themer/pau/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2009. | 
<a href="http://rick.jinlabs.com/2009/01/21/wordpress-schwag/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/web20/" title="Ver todas las entradas en Web2.0" rel="category tag">Web2.0</a>, <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/schwag/" rel="tag">schwag</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2009/01/21/wordpress-schwag/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Numerar los comentarios en WordPress (o no)</title>
		<link>http://rick.jinlabs.com/2008/10/17/numerar-los-comentarios-en-wordpress-o-no/</link>
		<comments>http://rick.jinlabs.com/2008/10/17/numerar-los-comentarios-en-wordpress-o-no/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 20:28:34 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Sorteos]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=726</guid>
		<description><![CDATA[Hablando con CrackVan de los sorteos y eso (yo haré un par de ellos enseguida, por cierto) salió a debate el tema de cual sería la mejor forma de sortear algo para que no haya después rollos raros (que la gente últimamente está muy nerviosa) y creo que hemos dado con un sistema bastante robusto: [...]]]></description>
			<content:encoded><![CDATA[<p>Hablando con <a href="http://blog.crackvan.net/">CrackVan</a> de los sorteos y eso (yo haré un par de ellos enseguida, por cierto) salió a debate el tema de cual sería la mejor forma de sortear algo para que no haya después rollos raros (que la gente últimamente está muy nerviosa) y creo que hemos dado con un sistema bastante robusto:</p>
<blockquote><p>(Nº ONCE) MOD (Nº Comentarios Post Sorteo) + 1 = Nº Comentario Ganador</p></blockquote>
<p>Así, al basarte en un numero aleatorio externo, te evitas problemas.</p>
<p>Lo cual nos lleva a tener que numerar los comentarios de todos las entradas o, al menos, de las entradas que pertenezcan a una determinada categoría (Sorteos, por poner un ejemplo original).<br />
La teoría es muy fácil (bueno, y la práctica también, la verdad). Solo hay que editar la plantilla de los comentarios de nuestro tema (normalmente <em>comments.php</em>) añadiendo un contador (que inicializaremos a 1 antes de entrar en el bucle de comentarios) y luego ir aumentándolo según nuestras condiciones.<br />
Por ejemplo, yo numero todas los comentarios, pero en las entradas que pertenecen a la categoría Sorteos, los comentarios que hago yo no cuentan (para que el sistema no le asigne un número)<br />
la cosa sería tal que así:</p>
<pre class="php">&nbsp;
&nbsp;
   <span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#40;</span>in_category<span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">321</span><span style="color: #66cc66;">&#41;</span> &amp;&amp; <span style="color: #0000ff;">$comment</span>-&gt;<span style="color: #006600;">user_id</span> != <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span> <a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a> <span style="color: #ff0000;">&quot;#&quot;</span> . <span style="color: #0000ff;">$nComm</span>; <span style="color: #0000ff;">$nComm</span>++;<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Donde 321 es el ID de la categoría Sorteos y 1 el ID de mi usuario.</p>
<p>Ala, otra clase magistral de vuestro amigo Coco :p</p>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2008. | 
<a href="http://rick.jinlabs.com/2008/10/17/numerar-los-comentarios-en-wordpress-o-no/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/sorteos/" rel="tag">Sorteos</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2008/10/17/numerar-los-comentarios-en-wordpress-o-no/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nuevo plugin: Plurk for WordPress</title>
		<link>http://rick.jinlabs.com/2008/06/09/nuevo-plugin-plurk-for-wordpress/</link>
		<comments>http://rick.jinlabs.com/2008/06/09/nuevo-plugin-plurk-for-wordpress/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 23:23:28 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Releases]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[microblogging]]></category>
		<category><![CDATA[plurk]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=494</guid>
		<description><![CDATA[Después de esperar varios días a que los de WordPress Extend me aprobasen el plugin y prepararan el repositorio y todas esas cosas (que hay que ver lo lentos que son a veces) por fin puedo anunciaros Plurk for WordPress, otro de mis cutre-plugins de la serie $foobar for WordPress que, como su propio nombre [...]]]></description>
			<content:encoded><![CDATA[<p>Después de esperar varios días a que los de WordPress Extend me aprobasen el plugin y prepararan el repositorio y todas esas cosas (que hay que ver lo lentos que son a veces) por fin puedo anunciaros <a href="http://rick.jinlabs.com/code/plurk/">Plurk for WordPress</a>, otro de mis cutre-plugins de la serie <em>$foobar for WordPress</em> que, como su propio nombre indica, simplemente muestra los últimos <em>plurks</em> en tu blog, bien mediante una función, bien mediante un widget. En la página del plugin están todas los posibles parámetros, las clases de CSS, etc (in english, sorry).</p>
<p>Si encontráis algún fallo, tenéis alguna sugerencia... <a href="/contact">ya sabéis</a>...</p>
<div class="jump-to"><a href="http://rick.jinlabs.com/code/plurk/">Plurk for WordPress</a></div>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2008. | 
<a href="http://rick.jinlabs.com/2008/06/09/nuevo-plugin-plurk-for-wordpress/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/plugins/" title="Ver todas las entradas en Plugins" rel="category tag">Plugins</a>, <a href="http://rick.jinlabs.com/category/releases/" title="Ver todas las entradas en Releases" rel="category tag">Releases</a>, <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/microblogging/" rel="tag">microblogging</a>, <a href="http://rick.jinlabs.com/tag/plurk/" rel="tag">plurk</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2008/06/09/nuevo-plugin-plurk-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Theming Advices</title>
		<link>http://rick.jinlabs.com/2008/04/23/wordpress-theming-advices/</link>
		<comments>http://rick.jinlabs.com/2008/04/23/wordpress-theming-advices/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 09:08:17 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=465</guid>
		<description><![CDATA[i18n Always use i18n functions (like _e() and __()), even if you don't know more languages, so others can do the l10n job for you. Templates At least, a template for archives, author, links, search and 404 must be provided. Alternate CSS file In your header.php link your style.css and a alternate-style.css in order to [...]]]></description>
			<content:encoded><![CDATA[<p><strong>i18n</strong><br />
Always use <a href="http://codex.wordpress.org/User:Nbachiyski/I18n_for_WordPress_Developers">i18n functions</a> (like <em>_e()</em> and <em>__()</em>), even if you don't know more languages, so others can do the l10n job for you.</p>
<p><strong>Templates</strong><br />
At least, a <a href="http://codex.wordpress.org/Templates">template</a> for archives, author, links, search and 404 must be provided.</p>
<p><strong>Alternate CSS file</strong><br />
In your header.php link your style.css and a alternate-style.css in order to allow users to add personal CSS code without fear to loose it in the next theme upgrade.</p>
<p><strong>Supported plugins</strong><br />
Add support to 3rd parties plugins is good. But always check if they exists using <a href="http://php.net/function_exists"><em>function_exists()</em></a> function to avoid PHP errors.</p>
<p><strong>Time and Date format</strong><br />
Don't use your own time/date format with <em><a href="http://codex.wordpress.org/Template_Tags/the_date">the_date()</a></em> and <em><a href="http://codex.wordpress.org/Template_Tags/the_time">the_time()</a></em> functions. Use <a href="http://codex.wordpress.org/Function_Reference/get_option">get_option()</a> function, like <em>the_date(get_option('date_format'))</em> and <em>the_time(get_option('time_format'))</em> instead. And  remenber, if you call <em>the_date()</em> function twice or more in one page, only the first will echo the date. <em>the_time()</em> function don't have this behavior.</p>
<p><strong>Lightweight</strong><br />
Use WordPress own resources if is possible: i.e. don't add jquery.js, use <a href="http://codex.wordpress.org/Function_Reference/wp_enqueue_script"><em>wp_enqueue_script()</em></a> function, like <em>wp_enqueue_script('jquery')</em>, and so on...</p>
<p><strong>Widgets</strong><br />
Even if widgets are not your thing (like me), make your theme widget-ready. <a href="http://automattic.com/code/widgets/themes/">It's so easy</a>, and sooner or later someone will ask you to do it.</p>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2008. | 
<a href="http://rick.jinlabs.com/2008/04/23/wordpress-theming-advices/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/english/" title="Ver todas las entradas en English" rel="category tag">English</a>, <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: 
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2008/04/23/wordpress-theming-advices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Requisitos mínimos de un Blog: How To</title>
		<link>http://rick.jinlabs.com/2008/04/22/requisitos-minimos-de-un-blog-how-to/</link>
		<comments>http://rick.jinlabs.com/2008/04/22/requisitos-minimos-de-un-blog-how-to/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 15:24:14 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[consejos]]></category>
		<category><![CDATA[how to]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=460</guid>
		<description><![CDATA[Repito, no soy ningún experto ni nada parecido (y la ignorancia es muy atrevida) Autor Hacer una sección de autor no tiene mucho misterio: un email como mínimo y a partir de ahí, hasta el infinito y mas allá (redes de im, skype, nick y red de IRC, clave publica PGP, formulario de contacto, etc) [...]]]></description>
			<content:encoded><![CDATA[<p>Repito, no soy ningún experto ni nada parecido (y la ignorancia es muy atrevida)</p>
<p><strong>Autor</strong><br />
Hacer una sección de autor no tiene mucho misterio: un email como mínimo y a partir de ahí, hasta el infinito y mas allá (redes de im, skype, nick y red de IRC, clave publica PGP, formulario de contacto, etc)</p>
<p><strong>Archivo</strong><br />
El WordPress (y cualquier tema medio decente) viene con un archivo y una paginación decentes. Se pueden mejorar con plugins: yo recomiendo <a href="http://www.sporadicnonsense.com" title="Visitar página web del plugin">SRG Clean Archives</a> y <a href="http://www.elektroelch.de/hacks/wp/pagebar" title="Visitar página web del plugin">Pagebar2</a> para cada cosa, respectivamente.</p>
<p><strong>Hora</strong><br />
Para añadir la hora a los posts, hay que ensuciarse un poco las manos y editar el tema: simplemente añadir la función <em>the_time()</em> donde sea conveniente (normalmente, al lado de <em>the_date()</em>)</p>
<p><strong>Colophon</strong><br />
Esta sección tambien es muy sencilla: Comentar con que esta creado el blog, de donde salen los gráficos, etc. Suele ser una buena sección para poner los correspondientes links de todo el material CC   (si es que se usa alguna, claro). También se puede usar un plugin para mostrar que plugins se usan, como <a href="http://www.andrewsw.com/pages/pluginsUsedPlugin" title="Visitar página web del plugin">Plugins Used Plugin</a>. Yo lo veo muy útil, pero hay quien lo ve como un problema de seguridad, ya que si usas un plugin que tenga algún bug de seguridad sabrán que lo estas usando.</p>
<p><strong>Quicktags</strong><br />
Añadir estos botones tan útiles a los comentarios es tan fácil como usar uno de los muchos plugins (como no) que hay para eso, como <a href="http://lmbbox.com/projects/lmbbox-comment-quicktags/">LMB^Box Comment Quicktags</a>, por ejemplo.</p>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2008. | 
<a href="http://rick.jinlabs.com/2008/04/22/requisitos-minimos-de-un-blog-how-to/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/consejos/" rel="tag">consejos</a>, <a href="http://rick.jinlabs.com/tag/how-to/" rel="tag">how to</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2008/04/22/requisitos-minimos-de-un-blog-how-to/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Requisitos mínimos de un Blog</title>
		<link>http://rick.jinlabs.com/2008/04/21/requisitos-minimos-de-un-blog/</link>
		<comments>http://rick.jinlabs.com/2008/04/21/requisitos-minimos-de-un-blog/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 15:37:35 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[consejos]]></category>
		<category><![CDATA[errores comunes]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=459</guid>
		<description><![CDATA[Vaya por delante que yo no soy ningún experto en la materia ni mucho menos, pero me gustaría comentar una serie de cosas que creo que todo blog debería de tener en cuenta: Autor: Es increíble lo que hay que hacer para poder contactar con el autor de un blog a veces. Una página de [...]]]></description>
			<content:encoded><![CDATA[<p>Vaya por delante que yo no soy ningún experto en la materia ni mucho menos, pero me gustaría comentar una serie de cosas que creo que todo blog debería de tener en cuenta:</p>
<ul>
<li>Autor: Es increíble lo que hay que hacer para poder contactar con el autor de un blog a veces. Una página de Acerca de, Sobre mi o lo que sea con un par de datos básicos (una dirección de email, la del jabber/messenger, etc) es más que suficiente. Si ya pones un formulario de contacto, eso es para nota...</li>
<li>Archivo: Por el amor de $DEITY, hacer el acceso a los archivos (entradas antiguas, vamos) lo más fácil posible: en la sidebar, el el footer, donde sea, pero que se vea. Imprescindible también el típico "Anterior...Siguiente" (o un plugin de paginación, ya que estamos) al <strong>FINAL</strong> de cada página, que al principio no vale para nada, que obliga a subir y bajar constantemente el scroll...</li>
<li>Hora: Igual es cosa mía, pero a mi me gusta saber, amen de la fecha, a la hora a la que se publicó una entrada. Será una tontería, pero ayuda a ubicar temporalmente el asunto. Y no cuesta nada ponerla, ¿no?</li>
<li>Colophon: Nunca está de más poner que plugins usas, o como haces esa cosa tan chula de la que estas tan orgulloso, etc. El tema es compartir tus conocimientos.</li>
<li>Quicktags: Que te comenten en tu blog mola, esta claro. Pues facilítale la tarea poniendo unas <em>quicktags</em>, esos botoncicos tan bonitos que hacen que poner un link, negrita o cursiva sea mucho más fácil. Tus lectores son, por defecto, unos vagos, recuérdalo <img src='http://rick.jinlabs.com/wp-content/plugins/smilies-themer/pau/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ul>
<p>Y por hoy ya me he despachado a gusto, ala :p</p>
<p>2da Parte: <a href="http://rick.jinlabs.com/2008/04/22/requisitos-minimos-de-un-blog-how-to/">Requisitos mínimos de un Blog: How To</a></p>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2008. | 
<a href="http://rick.jinlabs.com/2008/04/21/requisitos-minimos-de-un-blog/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/blog/" rel="tag">blog</a>, <a href="http://rick.jinlabs.com/tag/consejos/" rel="tag">consejos</a>, <a href="http://rick.jinlabs.com/tag/errores-comunes/" rel="tag">errores comunes</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2008/04/21/requisitos-minimos-de-un-blog/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Más Dashboards Widgets</title>
		<link>http://rick.jinlabs.com/2008/04/07/mas-dashboards-widgets/</link>
		<comments>http://rick.jinlabs.com/2008/04/07/mas-dashboards-widgets/#comments</comments>
		<pubDate>Mon, 07 Apr 2008 08:15:13 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[dashboard]]></category>
		<category><![CDATA[wigdets]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=449</guid>
		<description><![CDATA[Aparte del Dashboard: Recent Comments Extended, y con el propósito de dejar mi Dashboard como en su época pre-2.5, he creado un par más: Dashboard: Recent Posts Extended, cuya única y simple funcionalidad es mostrar los últimos posts escritos, pudiendo confugurar si mostramos la fecha y el autor.... Dashboard: Technorati Reactions Extended, muestra las reactions [...]]]></description>
			<content:encoded><![CDATA[<p>Aparte del <a href="http://rick.jinlabs.com/code/dashboard-recent-comments-extended/">Dashboard: Recent Comments Extended</a>, y con el propósito de dejar mi Dashboard como en su época <em>pre-2.5</em>, he creado un par más:</p>
<ul>
<li><a href="http://rick.jinlabs.com/code/dashboard-recent-posts-extended/">Dashboard: Recent Posts Extended</a>, cuya única y simple funcionalidad es mostrar los últimos posts escritos, pudiendo confugurar si mostramos la fecha y el autor....</li>
<li><a href="http://rick.jinlabs.com/code/dashboard-technorati-reactions-extended/">Dashboard: Technorati Reactions Extended</a>, muestra las reactions de Technorati en vez de las de Google Bloag Search</li>
</ul>
<p>La verdad es que son muy simples, y dude en si liberarlos o no, pero como no hacen daño a nadie e igual le son útiles a alguien, pues ahí estan...</p>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2008. | 
<a href="http://rick.jinlabs.com/2008/04/07/mas-dashboards-widgets/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/plugins/" title="Ver todas las entradas en Plugins" rel="category tag">Plugins</a>, <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/dashboard/" rel="tag">dashboard</a>, <a href="http://rick.jinlabs.com/tag/wigdets/" rel="tag">wigdets</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2008/04/07/mas-dashboards-widgets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dashboard Widgets</title>
		<link>http://rick.jinlabs.com/2008/04/02/dashboard-widgets/</link>
		<comments>http://rick.jinlabs.com/2008/04/02/dashboard-widgets/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 14:34:00 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[dashboard widgets]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=444</guid>
		<description><![CDATA[Los nuevos dashboard widgets son una gran idea que en las anteriores versiones del WordPress ya estaba implementada en forma de plugin (el magnífico myDashboard) y que ahora, a partir de la 2.5 vienen de serie. A mi me resultan muy útiles, pues desde el dashboard puedes controlar todo de un vistazo. Además, como son [...]]]></description>
			<content:encoded><![CDATA[<p>Los nuevos dashboard widgets son una gran idea que en las anteriores versiones del WordPress ya estaba implementada en forma de plugin (el magnífico <a href="http://dev.clearskys.net/Wordpress/MyDashboard">myDashboard</a>) y que ahora, a partir de la 2.5 vienen <em>de serie</em>. A mi me resultan muy útiles, pues desde el dashboard puedes controlar todo de un vistazo. Además, como son personalizables casi todo lo que se te ocurra se puede transformar en un dashboard widget...</p>
<p>Estos son lo widgets que me parecen más útiles (que no se porque no están integrados en el <em>trunk</em> del WordPress, la verdad)</p>
<ul>
<li><a href="http://www.berriart.com/technorati-reactions-dashboard-plugin/" title="Visit plugin homepage">Berri Technorati Reactions on Dashboard</a> (porque, sinceramente, el Blog Search de Google apesta...)</li>
<li><a href="http://www.viper007bond.com/wordpress-plugins/dashboard-draft-posts/" title="Visit plugin homepage">Dashboard: Draft Posts</a></li>
<li><a href="http://www.viper007bond.com/wordpress-plugins/dashboard-latest-spam/" title="Visit plugin homepage">Dashboard: Latest Spam</a></li>
<li><a href="http://www.viper007bond.com/wordpress-plugins/dashboard-scheduled-posts/" title="Visit plugin homepage">Dashboard: Scheduled Posts</a></li>
<li><a href="http://wordpress.org/extend/plugins/stats/" title="Visit plugin homepage">WordPress.com Stats</a> (no es un widget en si mismo, pero al usarlo en un WP2.5 pone uno en el dashboard)
</ul>
<p>Casi todos de <a href="http://www.viper007bond.com/">Viper007Bond</a>, desarrollador de WordPress, menuda máquina <img src='http://rick.jinlabs.com/wp-content/plugins/smilies-themer/pau/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Y no es un dashboard widgets, pero deberiaís tener instalado el <a href="http://www.viper007bond.com/wordpress-plugins/dashboard-widget-manager/" title="Visit plugin homepage">Dashboard Widget Manager</a> si o si: te permite organizar todos los dashboards widgets (ordenarlos, desactivarlos, etc...)</p>
<p>Non-Widget Bonus: </p>
<ul>
<li><a href="http://planetozh.com/blog/my-projects/wordpress-admin-menu-drop-down-css/" title="Visit plugin homepage">Admin Drop Down Menu</a>, convierte la barra de menus en una lista desplegable. Otra maravilla que debería venir de serie en el WordPress.</li>
<li><a href="http://dd32.id.au/wordpress-plugins/remove-max-width/" title="Visit plugin homepage">Remove Max Width</a>, para eliminar el max-width de la zona de administración (si tienes un panorámico lo agradecerás)</li>
<li><a href="http://www.viper007bond.com/wordpress-plugins/global-plugin-update-notice/" title="Visit plugin homepage">Global Plugin Update Notice</a>, y evita tener que ir mirando plugin por plugin si hay actualizaciones...</li>
</ul>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2008. | 
<a href="http://rick.jinlabs.com/2008/04/02/dashboard-widgets/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/dashboard-widgets/" rel="tag">dashboard widgets</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2008/04/02/dashboard-widgets/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress 2.5</title>
		<link>http://rick.jinlabs.com/2008/03/30/wordpress-25/</link>
		<comments>http://rick.jinlabs.com/2008/03/30/wordpress-25/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 05:28:53 +0000</pubDate>
		<dc:creator>Rick</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[2.5]]></category>
		<category><![CDATA[actualizacion]]></category>

		<guid isPermaLink="false">http://rick.jinlabs.com/?p=442</guid>
		<description><![CDATA[Ya tenemos la versión 2.5 del WordPress instalada. Todo ha ido como la seda, salvo el plugin de los favatares, pero ya lo revisaré despues. Tiene cositas interesantes, a ver si me entero de como crear widgets para el dashboard... Mañana haré más I+D+I... &#169; Rick's HideOut, 2008. &#124; Permalink &#124; Categor&#237;­a: Wordpress &#124; Tags: [...]]]></description>
			<content:encoded><![CDATA[<p>Ya tenemos la versión 2.5 del WordPress instalada. Todo ha ido como la seda, salvo el plugin de los favatares, pero ya lo revisaré despues.<br />
Tiene cositas interesantes, a ver si me entero de como crear widgets para el dashboard...</p>
<p>Mañana haré más I+D+I... <img src='http://rick.jinlabs.com/wp-content/plugins/smilies-themer/pau/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<hr />
<p><small>
&copy; <a href="http://rick.jinlabs.com">Rick's HideOut</a>, 2008. | 
<a href="http://rick.jinlabs.com/2008/03/30/wordpress-25/">Permalink</a> | 
Categor&iacute;­a: <a href="http://rick.jinlabs.com/category/wordpress/" title="Ver todas las entradas en Wordpress" rel="category tag">Wordpress</a> | 
Tags: <a href="http://rick.jinlabs.com/tag/25/" rel="tag">2.5</a>, <a href="http://rick.jinlabs.com/tag/actualizacion/" rel="tag">actualizacion</a>
</small></p>]]></content:encoded>
			<wfw:commentRss>http://rick.jinlabs.com/2008/03/30/wordpress-25/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

