<?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: Add WordPress Dashboard Widgets</title>
	<atom:link href="http://wpengineer.com/add-wordpress-dashboard-widgets/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com/add-wordpress-dashboard-widgets/</link>
	<description>WordPress News, Hacks, Tipps, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Mon, 15 Mar 2010 13:49:39 +0000</lastBuildDate>
	
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brent Shepherd</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-3439</link>
		<dc:creator>Brent Shepherd</dc:creator>
		<pubDate>Wed, 10 Feb 2010 10:09:05 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-3439</guid>
		<description>Hi Frank, 

Thanks for a good article. 

Do you know of a built in function to add a widget to the side dashboard? The wp_add_dashboard_widget function seems to only allow adding it to the &#039;normal&#039; area. 

I can add the fields directly to the $wp_meta_boxes array, but a built in function would be much more robust. :)</description>
		<content:encoded><![CDATA[<p>Hi Frank, </p>
<p>Thanks for a good article. </p>
<p>Do you know of a built in function to add a widget to the side dashboard? The wp_add_dashboard_widget function seems to only allow adding it to the 'normal' area. </p>
<p>I can add the fields directly to the $wp_meta_boxes array, but a built in function would be much more robust. <img src='http://wpengineer.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artem</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-3161</link>
		<dc:creator>Artem</dc:creator>
		<pubDate>Wed, 30 Dec 2009 21:22:55 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-3161</guid>
		<description>Is there a way to add a new widget to the dashboard with ajax? After the dashboard finished loading?</description>
		<content:encoded><![CDATA[<p>Is there a way to add a new widget to the dashboard with ajax? After the dashboard finished loading?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sebastien</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-3096</link>
		<dc:creator>sebastien</dc:creator>
		<pubDate>Tue, 22 Dec 2009 10:16:29 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-3096</guid>
		<description>If you use my code, a widget appears in the dashboard.
In this widget you can read &quot;Text widget by ARCHIparmentier &#124; wordpressdesigner&#039;&quot;. This text is product by the function text_widget()
You can change this function to product another result.</description>
		<content:encoded><![CDATA[<p>If you use my code, a widget appears in the dashboard.<br />
In this widget you can read "Text widget by ARCHIparmentier | wordpressdesigner'". This text is product by the function text_widget()<br />
You can change this function to product another result.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marujo</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-3083</link>
		<dc:creator>marujo</dc:creator>
		<pubDate>Tue, 22 Dec 2009 02:26:17 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-3083</guid>
		<description>hi sebastien. i try but only appears a blank widget. i need to show the editable content in the text widget also in dashboard. it is possible? i notice that the theme im usiong the sidebar as named as &#039;right&#039;, and the name of my text widget is &#039;Cotação Câmbio&quot;. if you can help me, i thank you a lot. thanks!</description>
		<content:encoded><![CDATA[<p>hi sebastien. i try but only appears a blank widget. i need to show the editable content in the text widget also in dashboard. it is possible? i notice that the theme im usiong the sidebar as named as 'right', and the name of my text widget is 'Cotação Câmbio". if you can help me, i thank you a lot. thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sebastien</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-3082</link>
		<dc:creator>sebastien</dc:creator>
		<pubDate>Mon, 21 Dec 2009 22:36:35 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-3082</guid>
		<description>Marujo &gt; paste this in function.php


&lt;?php
if (!function_exists(&#039;text_widget&#039;)) {

	
	function text_widget() {

			echo &#039;Text widget by ARCHIparmentier &#124; wordpressdesigner&#039;;

	}
 
	function archi_setup() {
	    wp_add_dashboard_widget( &#039;text_widget&#039; , &#039;text widget&#039; , &#039;text_widget&#039;);
	}
 
	add_action(&#039;wp_dashboard_setup&#039;, &#039;archi_setup&#039;);
}

?&gt;</description>
		<content:encoded><![CDATA[<p>Marujo &gt; paste this in function.php</p>
<p>&lt;?php<br />
if (!function_exists(&#039;text_widget&#039;)) {</p>
<p>	function text_widget() {</p>
<p>			echo &#039;Text widget by ARCHIparmentier | wordpressdesigner';</p>
<p>	}</p>
<p>	function archi_setup() {<br />
	    wp_add_dashboard_widget( 'text_widget' , 'text widget' , 'text_widget');<br />
	}</p>
<p>	add_action('wp_dashboard_setup', 'archi_setup');<br />
}</p>
<p>?&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marujo</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-3081</link>
		<dc:creator>marujo</dc:creator>
		<pubDate>Mon, 21 Dec 2009 21:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-3081</guid>
		<description>im trying to add a text widget of widgets sidebar in dashboard. how can i do it? anyone can help me, please!!</description>
		<content:encoded><![CDATA[<p>im trying to add a text widget of widgets sidebar in dashboard. how can i do it? anyone can help me, please!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marujo</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-3035</link>
		<dc:creator>marujo</dc:creator>
		<pubDate>Fri, 18 Dec 2009 19:14:44 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-3035</guid>
		<description>with this hack is possible to put a widget text (that configured in appearance) in the dashboard? thanks</description>
		<content:encoded><![CDATA[<p>with this hack is possible to put a widget text (that configured in appearance) in the dashboard? thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sebastien</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-2041</link>
		<dc:creator>sebastien</dc:creator>
		<pubDate>Sun, 22 Nov 2009 16:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-2041</guid>
		<description>Hi Alex, 

Do you know if i can choose the place of my widget with this function wp_add_dashboard_widget ?
Is it possible to specify that the widget must be in fisrt position to the top of the first column for example ?</description>
		<content:encoded><![CDATA[<p>Hi Alex, </p>
<p>Do you know if i can choose the place of my widget with this function wp_add_dashboard_widget ?<br />
Is it possible to specify that the widget must be in fisrt position to the top of the first column for example ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-1939</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Tue, 03 Nov 2009 20:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-1939</guid>
		<description>Hey Samuel, moving the plugin to mu-plugins solves the problem.</description>
		<content:encoded><![CDATA[<p>Hey Samuel, moving the plugin to mu-plugins solves the problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Samuel</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-1928</link>
		<dc:creator>Samuel</dc:creator>
		<pubDate>Thu, 29 Oct 2009 15:41:52 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-1928</guid>
		<description>This code works perfectly for WordPress single installation, but if you activate it site wide on WPMU it only adds the new dashboard widget in the main blog dashboard... :(

Anyone knows to make the widget to add on every blog dashboard of a WPMU installation?</description>
		<content:encoded><![CDATA[<p>This code works perfectly for WordPress single installation, but if you activate it site wide on WPMU it only adds the new dashboard widget in the main blog dashboard... <img src='http://wpengineer.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>Anyone knows to make the widget to add on every blog dashboard of a WPMU installation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex McFarlane</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-1662</link>
		<dc:creator>Alex McFarlane</dc:creator>
		<pubDate>Fri, 28 Aug 2009 10:45:02 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-1662</guid>
		<description>I have been looking at removing the dashboard widgets in WP 2.8.4. This is my plugin code, you should just be able to add the id of the widget you want to remove.

add_action(&#039;do_meta_boxes&#039;, array(&amp;$this, &#039;do_meta_boxes&#039;),10,3);
			
		
function do_meta_boxes($type, $context, $post)
{
			remove_meta_box(&#039;dashboard_quick_press&#039;, $type, $context);
}</description>
		<content:encoded><![CDATA[<p>I have been looking at removing the dashboard widgets in WP 2.8.4. This is my plugin code, you should just be able to add the id of the widget you want to remove.</p>
<p>add_action('do_meta_boxes', array(&amp;$this, 'do_meta_boxes'),10,3);</p>
<p>function do_meta_boxes($type, $context, $post)<br />
{<br />
			remove_meta_box('dashboard_quick_press', $type, $context);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: php trivandrum</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-1544</link>
		<dc:creator>php trivandrum</dc:creator>
		<pubDate>Fri, 24 Jul 2009 03:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-1544</guid>
		<description>Really Great..

I was searching for &#039;wordpress dashboard widget&#039;, and found your post. This saved me a lot.</description>
		<content:encoded><![CDATA[<p>Really Great..</p>
<p>I was searching for 'wordpress dashboard widget', and found your post. This saved me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Basilakis</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-1406</link>
		<dc:creator>Basilakis</dc:creator>
		<pubDate>Tue, 30 Jun 2009 13:17:14 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-1406</guid>
		<description>Seems that, i do not get any &quot;visible&quot; options at the Screen option menu... Seems that it does not pass there... And i have had just copy pasted the code :?</description>
		<content:encoded><![CDATA[<p>Seems that, i do not get any "visible" options at the Screen option menu... Seems that it does not pass there... And i have had just copy pasted the code <img src='http://wpengineer.com/blog/wp-includes/images/smilies/icon_confused.gif' alt=':?' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-1131</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Mon, 18 May 2009 19:23:02 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-1131</guid>
		<description>There&#039;s Paypal donate plugin at http://wordpress.org/extend/plugins/wordpress-paypal-donations-plugin/

You could search the WP plugins and widgets databases for others. Why reinvent the wheel?

If you want to create a sidebar widget with a donate button, you could use the example widget code at WP and insert your Paypal button code.</description>
		<content:encoded><![CDATA[<p>There's Paypal donate plugin at <a href="http://wordpress.org/extend/plugins/wordpress-paypal-donations-plugin/" rel="nofollow" class="liwp">http://wordpress.org/extend/plugins/wordpress-paypal-donations-plugin/</a></p>
<p>You could search the WP plugins and widgets databases for others. Why reinvent the wheel?</p>
<p>If you want to create a sidebar widget with a donate button, you could use the example widget code at WP and insert your Paypal button code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hassan</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-1127</link>
		<dc:creator>Hassan</dc:creator>
		<pubDate>Sun, 17 May 2009 21:43:09 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-1127</guid>
		<description>Hi how can I login to wordpress dashboard and to Design-&gt; Widgets on my computer? I want to transfer a donate button code to my website To create a donate button but I don&#039;t how. Could you tell me how.
Thanks</description>
		<content:encoded><![CDATA[<p>Hi how can I login to wordpress dashboard and to Design-&gt; Widgets on my computer? I want to transfer a donate button code to my website To create a donate button but I don't how. Could you tell me how.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-967</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 08 Apr 2009 12:32:16 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-967</guid>
		<description>Thanks Frank. I separated out the widget into an include and used the following code within the plugin. Maybe I should explain what I was doing. I found a plugin to create a To-Do list and wanted the list shown in the dashboard when users with particular roles logged in. This is what I ended up with:

// --------------------------------------------------------------------
// Dashboard widget
// --------------------------------------------------------------------
//Pre-check user status and role and show only to allowed roles
function hide_show_assignboard(){
  if(is_user_logged_in) { // only if there is a user logged in
  require (ABSPATH . WPINC . &#039;/pluggable.php&#039;);
   $logged_user = wp_get_current_user();
   $user_roles = $logged_user-&gt;roles; // an array of roles
     foreach($user_roles as $user_role)
   {
	  if($user_role==&#039;administrator&#039; &#124;&#124; $user_role==&#039;intern&#039; &#124;&#124;$user_role==&#039;editor&#039;)
    include(&#039;dashboard.php&#039;);}
    }
  }
hide_show_assignboard();

I discovered late last night that I had to use this line to prevent an error that had me pulling out my hair:
require (ABSPATH . WPINC . &#039;/pluggable.php&#039;);

Would your code be placed in the widget? I could send you an archive of the modified plugin.</description>
		<content:encoded><![CDATA[<p>Thanks Frank. I separated out the widget into an include and used the following code within the plugin. Maybe I should explain what I was doing. I found a plugin to create a To-Do list and wanted the list shown in the dashboard when users with particular roles logged in. This is what I ended up with:</p>
<p>// --------------------------------------------------------------------<br />
// Dashboard widget<br />
// --------------------------------------------------------------------<br />
//Pre-check user status and role and show only to allowed roles<br />
function hide_show_assignboard(){<br />
  if(is_user_logged_in) { // only if there is a user logged in<br />
  require (ABSPATH . WPINC . '/pluggable.php');<br />
   $logged_user = wp_get_current_user();<br />
   $user_roles = $logged_user-&gt;roles; // an array of roles<br />
     foreach($user_roles as $user_role)<br />
   {<br />
	  if($user_role=='administrator' || $user_role=='intern' ||$user_role=='editor')<br />
    include('dashboard.php');}<br />
    }<br />
  }<br />
hide_show_assignboard();</p>
<p>I discovered late last night that I had to use this line to prevent an error that had me pulling out my hair:<br />
require (ABSPATH . WPINC . '/pluggable.php');</p>
<p>Would your code be placed in the widget? I could send you an archive of the modified plugin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-966</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Wed, 08 Apr 2009 11:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-966</guid>
		<description>@Mark: small snippet with example, i hope you understand this.
&lt;pre lang=&quot;php&quot;&gt;
// Create the function to use in the action hook
function example_remove_dashboard_widgets() {
	// Globalize the metaboxes array, this holds all the widgets for wp-admin

	global $wp_meta_boxes;

	// Remove the quickpress widget
	// use the ID of the widget
	// Example: dashboard_quick_press
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;side&#039;][&#039;core&#039;][&#039;dashboard_quick_press&#039;]);

	// Remove the incomming links widget
	unset($wp_meta_boxes[&#039;dashboard&#039;][&#039;normal&#039;][&#039;core&#039;][&#039;dashboard_incoming_links&#039;]);	
} 

// check user role
// if NOT (!) admin: don&#039;t see the widgets
// @link:http://codex.wordpress.org/Roles_and_Capabilities
if ( !current_user_can(&#039;administrator&#039;) ) {
	// Hoook into the &#039;wp_dashboard_setup&#039; action to register our function
	add_action(&#039;wp_dashboard_setup&#039;, &#039;example_remove_dashboard_widgets&#039; );
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>@Mark: small snippet with example, i hope you understand this.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Create the function to use in the action hook</span>
<span style="color: #000000; font-weight: bold;">function</span> example_remove_dashboard_widgets<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// Globalize the metaboxes array, this holds all the widgets for wp-admin</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_meta_boxes</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Remove the quickpress widget</span>
	<span style="color: #666666; font-style: italic;">// use the ID of the widget</span>
	<span style="color: #666666; font-style: italic;">// Example: dashboard_quick_press</span>
	<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_meta_boxes</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dashboard'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'side'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'core'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dashboard_quick_press'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	<span style="color: #666666; font-style: italic;">// Remove the incomming links widget</span>
	<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_meta_boxes</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dashboard'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'normal'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'core'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'dashboard_incoming_links'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>	
<span style="color: #009900;">&#125;</span> 
&nbsp;
<span style="color: #666666; font-style: italic;">// check user role</span>
<span style="color: #666666; font-style: italic;">// if NOT (!) admin: don't see the widgets</span>
<span style="color: #666666; font-style: italic;">// @link:http://codex.wordpress.org/Roles_and_Capabilities</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>current_user_can<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'administrator'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">// Hoook into the 'wp_dashboard_setup' action to register our function</span>
	add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_dashboard_setup'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'example_remove_dashboard_widgets'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-960</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Tue, 07 Apr 2009 17:53:24 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-960</guid>
		<description>Can anyone provide a snippet for hiding/showing a dashboard widget based on user roles?

Thanks.</description>
		<content:encoded><![CDATA[<p>Can anyone provide a snippet for hiding/showing a dashboard widget based on user roles?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shagshag</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-832</link>
		<dc:creator>Shagshag</dc:creator>
		<pubDate>Mon, 16 Mar 2009 10:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-832</guid>
		<description>Thanks so much for this!</description>
		<content:encoded><![CDATA[<p>Thanks so much for this!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdamB</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-676</link>
		<dc:creator>AdamB</dc:creator>
		<pubDate>Thu, 12 Feb 2009 04:20:03 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-676</guid>
		<description>How could i even over look the obvious. Damn, musta been asleep that day. 


Thanks!!

Adam</description>
		<content:encoded><![CDATA[<p>How could i even over look the obvious. Damn, musta been asleep that day. </p>
<p>Thanks!!</p>
<p>Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick's HideOut</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-661</link>
		<dc:creator>Rick's HideOut</dc:creator>
		<pubDate>Tue, 10 Feb 2009 18:36:36 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-661</guid>
		<description>&lt;strong&gt;How add options to your WordPress 2.7 dashboard widgets...&lt;/strong&gt;

Well, in this article, I assume you have read the WP Engineer&#039;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&#039;re using WordPress i...</description>
		<content:encoded><![CDATA[<p><strong>How add options to your WordPress 2.7 dashboard widgets...</strong></p>
<p>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.<br />
So, we have this code:<br />
&nbsp;<br />
&nbsp;<br />
// Load up the localization file if we're using WordPress i...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ckd</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-593</link>
		<dc:creator>ckd</dc:creator>
		<pubDate>Mon, 02 Feb 2009 04:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-593</guid>
		<description>I am trying to create a simple widget with a control panel. Everything is working except for when user enters website address in control panel, when link is clicked on in the theme it just refreshes the page instead of taking user to the website. I have created my widgets in a file called &#039;widgets.php&#039; and all work fine, just need to figure out how to get user enetered links to work. You can see the code below:

` function twitterWidget()
{
	$settings = get_option(&quot;widget_twitterwidget&quot;);

	$title = $settings[&#039;title&#039;];
	$twiturl = $settings[&#039;twiturl&#039;];

?&gt;

		
        	
        	&lt;img src=&quot;&quot; height=&quot;16&quot; width=&quot;16&quot; alt=&quot;&quot;/&gt;&#160;&lt;a href=&quot;&quot;&gt;&lt;/a&gt;
            
        		

&lt;?php
}

// Twitter Widget
function twitterWidgetAdmin() {

	$settings = get_option(&quot;widget_twitterwidget&quot;);

	// check if anything&#039;s been sent
	if (isset($_POST[&#039;update_twitter&#039;])) {
		$settings[&#039;title&#039;] = strip_tags(stripslashes($_POST[&#039;twitter_title&#039;]));
        $settings[&#039;twiturl&#039;] = strip_tags(stripslashes($_POST[&#039;twitter_twiturl&#039;]));
		update_option(&quot;widget_twitterwidget&quot;,$settings);
	}

	echo &#039;
			Title:
			&#039;;
	echo &#039;
			Twitter URL:
			&#039;;		
	echo &#039;&#039;;

}

register_sidebar_widget(&#039;Twitter&#039;, &#039;twitterWidget&#039;);
register_widget_control(&#039;Twitter&#039;, &#039;twitterWidgetAdmin&#039;, 400, 200);`

Any help would be greatly appreciated.

Thanks</description>
		<content:encoded><![CDATA[<p>I am trying to create a simple widget with a control panel. Everything is working except for when user enters website address in control panel, when link is clicked on in the theme it just refreshes the page instead of taking user to the website. I have created my widgets in a file called 'widgets.php' and all work fine, just need to figure out how to get user enetered links to work. You can see the code below:</p>
<p>` function twitterWidget()<br />
{<br />
	$settings = get_option("widget_twitterwidget");</p>
<p>	$title = $settings['title'];<br />
	$twiturl = $settings['twiturl'];</p>
<p>?&gt;</p>
<p>        	&lt;img src="" height="16" width="16" alt=""/&gt;&nbsp;&lt;a href=""&gt;</p>
<p>&lt;?php<br />
}</p>
<p>// Twitter Widget<br />
function twitterWidgetAdmin() {</p>
<p>	$settings = get_option("widget_twitterwidget");</p>
<p>	// check if anything's been sent<br />
	if (isset($_POST['update_twitter'])) {<br />
		$settings['title'] = strip_tags(stripslashes($_POST['twitter_title']));<br />
        $settings['twiturl'] = strip_tags(stripslashes($_POST['twitter_twiturl']));<br />
		update_option("widget_twitterwidget",$settings);<br />
	}</p>
<p>	echo '<br />
			Title:<br />
			';<br />
	echo '<br />
			Twitter URL:<br />
			';<br />
	echo '';</p>
<p>}</p>
<p>register_sidebar_widget('Twitter', 'twitterWidget');<br />
register_widget_control('Twitter', 'twitterWidgetAdmin', 400, 200);`</p>
<p>Any help would be greatly appreciated.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rick</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-591</link>
		<dc:creator>Rick</dc:creator>
		<pubDate>Sun, 01 Feb 2009 17:53:31 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-591</guid>
		<description>Adam, check this:

http://rick.jinlabs.com/2009/02/01/how-add-options-to-your-wordpress-27-dashboard-widgets/</description>
		<content:encoded><![CDATA[<p>Adam, check this:</p>
<p><a href="http://rick.jinlabs.com/2009/02/01/how-add-options-to-your-wordpress-27-dashboard-widgets/" rel="nofollow" class="liexternal">http://rick.jinlabs.com/2009/02/01/how-add-options-to-your-wordpress-27-dashboard-widgets/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdamB</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-490</link>
		<dc:creator>AdamB</dc:creator>
		<pubDate>Wed, 21 Jan 2009 07:33:15 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-490</guid>
		<description>I traced it back to this function:
&lt;em&gt;s/wp-admin/includes/dashboard.php&lt;/em&gt;
&lt;code&gt;
function _wp_dashboard_control_callback( $dashboard, $meta_box ) {
	echo &#039;&#039;;
	wp_dashboard_trigger_widget_control( $meta_box[&#039;id&#039;] );
	echo &quot;&quot;;

	echo &#039;&#039;;
}

&lt;/code&gt;

then get a bit lost when it gets to here:
&lt;code&gt;
wp_dashboard_trigger_widget_control( $meta_box[&#039;id&#039;] );
&lt;/code&gt;

Any help? I just want to give a couple of options to set. I&#039;d rather not create a page under settings for this when the option to set it right there is available.

Thanks in Advance...
Adam</description>
		<content:encoded><![CDATA[<p>I traced it back to this function:<br />
<em>s/wp-admin/includes/dashboard.php</em><br />
<code><br />
function _wp_dashboard_control_callback( $dashboard, $meta_box ) {<br />
	echo '';<br />
	wp_dashboard_trigger_widget_control( $meta_box['id'] );<br />
	echo "";</code></p>
<p>	echo '';<br />
}</p>
<p></p>
<p>then get a bit lost when it gets to here:<br />
<code><br />
wp_dashboard_trigger_widget_control( $meta_box['id'] );<br />
</code></p>
<p>Any help? I just want to give a couple of options to set. I'd rather not create a page under settings for this when the option to set it right there is available.</p>
<p>Thanks in Advance...<br />
Adam</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AdamB</title>
		<link>http://wpengineer.com/add-wordpress-dashboard-widgets/#comment-487</link>
		<dc:creator>AdamB</dc:creator>
		<pubDate>Wed, 21 Jan 2009 02:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://wpengineer.com/?p=307#comment-487</guid>
		<description>Rick is correct. The 4th parameter calls a function to display configuration options. WP will automatically add the link in the corner to pull this up.</description>
		<content:encoded><![CDATA[<p>Rick is correct. The 4th parameter calls a function to display configuration options. WP will automatically add the link in the corner to pull this up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
