<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support User Favorites: kasparsd</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support User Favorites: kasparsd</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 14:08:19 +0000</pubDate>

<item>
<title>kasparsd on "How to center Google AdSense ads in my widget sidebar?"</title>
<link>http://wordpress.org/support/topic/155758#post-691028</link>
<pubDate>Sun, 10 Feb 2008 22:27:45 +0000</pubDate>
<dc:creator>kasparsd</dc:creator>
<guid isPermaLink="false">691028@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Carlos, I am using AdSense Manager my self and it does precisely all I want and need.&#60;/p&#62;
&#60;p&#62;Now, regarding the ad placement at the bottom - do you mean at the bottom of the articles (on homepage / individual article page) or at the bottom of page (on every page)?&#60;/p&#62;
&#60;p&#62;Let me know this, and I'll be able to help you out better.
&#60;/p&#62;</description>
</item>
<item>
<title>carlosmiller on "How to center Google AdSense ads in my widget sidebar?"</title>
<link>http://wordpress.org/support/topic/155758#post-689648</link>
<pubDate>Thu, 07 Feb 2008 23:43:23 +0000</pubDate>
<dc:creator>carlosmiller</dc:creator>
<guid isPermaLink="false">689648@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Actually what I have is AdSense Deluxe. Is AdSense Manager better?
&#60;/p&#62;</description>
</item>
<item>
<title>carlosmiller on "How to center Google AdSense ads in my widget sidebar?"</title>
<link>http://wordpress.org/support/topic/155758#post-689640</link>
<pubDate>Thu, 07 Feb 2008 23:27:01 +0000</pubDate>
<dc:creator>carlosmiller</dc:creator>
<guid isPermaLink="false">689640@http://wordpress.org/support/</guid>
<description>&#60;p&#62;kasparsd,&#60;/p&#62;
&#60;p&#62;That totally made sense and it corrected the problem immediately.&#60;/p&#62;
&#60;p&#62;Can you tell me how I can place a Google Ad at the bottom of the blog?&#60;/p&#62;
&#60;p&#62;I do have AdSense Manager, but I'm not sure if I got it to work correctly. I have to go back and read through the instructions again.&#60;/p&#62;
&#60;p&#62;Thanks for your help.
&#60;/p&#62;</description>
</item>
<item>
<title>kasparsd on "How to center Google AdSense ads in my widget sidebar?"</title>
<link>http://wordpress.org/support/topic/155758#post-689565</link>
<pubDate>Thu, 07 Feb 2008 20:51:18 +0000</pubDate>
<dc:creator>kasparsd</dc:creator>
<guid isPermaLink="false">689565@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Carlos, the problem is caused by the location of your adsense code in the theme's HTML code. They are all placed &#60;strong&#62;outside&#60;/strong&#62; the sidebar wrapper (#sidebar). Thats why it is aligned right next to the main column.&#60;/p&#62;
&#60;p&#62;What plugin do you use for placing the ads? Or you placed them yourself inside the theme file? You should either put the adsense javascript inside the &#60;code&#62;sidebar.php&#60;/code&#62; file right before the closing div tag of #sidebar wrapper or use a plugin which provides widgets -- &#60;a href=&#34;http://wordpress.org/extend/plugins/adsense-manager/&#34;&#62;AdSense Manager&#60;/a&#62; (&#60;a href=&#34;http://konstruktors.com/blog/wordpress/56-updated-adsense-manager-plugin-ad-slot-ids-and-rounded-corners/&#34;&#62;latest version here&#60;/a&#62;), for example.
&#60;/p&#62;</description>
</item>
<item>
<title>carlosmiller on "How to center Google AdSense ads in my widget sidebar?"</title>
<link>http://wordpress.org/support/topic/155758#post-689558</link>
<pubDate>Thu, 07 Feb 2008 20:34:04 +0000</pubDate>
<dc:creator>carlosmiller</dc:creator>
<guid isPermaLink="false">689558@http://wordpress.org/support/</guid>
<description>&#60;p&#62;If you look at the right sidebar on my blog, &#60;a href=&#34;http://www.carlosmiller.com&#34; rel=&#34;nofollow&#34;&#62;http://www.carlosmiller.com&#60;/a&#62; and scroll a little ways down, you will see that the Google AdSense ads are a little too far to the left, unlike the rest of the content I have in the sidebar.&#60;/p&#62;
&#60;p&#62;How can I center these ads to make them uniform with the rest of the content in the sidebar?
&#60;/p&#62;</description>
</item>
<item>
<title>kasparsd on "New Plugin: Custom Function Widgets"</title>
<link>http://wordpress.org/support/topic/155304#post-688145</link>
<pubDate>Tue, 05 Feb 2008 19:19:16 +0000</pubDate>
<dc:creator>kasparsd</dc:creator>
<guid isPermaLink="false">688145@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Otto, thank you for your insight. I didn't mean to imply that that there is something wrong with your work, as I was only trying to detail my reasons for writing this plugin instead of using any of the existing solutions. Sorry if it did sound that way.&#60;/p&#62;
&#60;p&#62;I completely agree with you that plugin authors are doing wrong by not supplying widget output, but nobody can't blame them, because it is the nature of open source -- you either use it, improve it or create your own.&#60;/p&#62;
&#60;p&#62;At the same time it is obvious that plugin authors would make the world of WordPress a better place by taking that extra hour to actually create widgets for their plugin (if applicable, of course), instead of asking users to install an extra plugin.&#60;/p&#62;
&#60;p&#62;Taking your suggestion, I will definitely try to write a tutorial for the plugin authors to explain how easy it is to add a widget, and will provide a few templates as well. &#60;/p&#62;
&#60;p&#62;For me the confusing part while writing this (my first) plugin was when to use the &#60;code&#62;register_sidebar_widget&#60;/code&#62; and &#60;code&#62;add_action&#60;/code&#62; hooks. It took me days to figure out how to pass additional variables to the function defined at &#60;code&#62;register_sidebar_widget&#60;/code&#62; without making an extra call to &#60;code&#62;get_option&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;Now, regarding the &#34;limitations&#34; of this idea -- to use only one function call and not allow PHP execution.&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;I think that the function hooks provided by the plugin authors should never require users to supply variables derived from the WordPress core (like &#60;code&#62;$post-&#38;gt;ID&#60;/code&#62;), as they all are available to the plugin itself. Moreover, &#60;code&#62;$post-&#38;gt;ID&#60;/code&#62; is not even available outside the post loop, which makes it more complicated for an average user. It would be much better to ask the user for a simple argument, like &#60;code&#62;$whichpost = &#38;#39;this&#38;#39;&#60;/code&#62;, or &#60;code&#62;$whichpost = &#38;#39;next&#38;#39;&#60;/code&#62;. The plugin should do the work of finding which post ID it is that the user wants.&#60;/li&#62;
&#60;li&#62;It is hard for me to image a situation when the plugin would need multiple function calls to generate the output for a widget, if written correctly. In fact, it depends only on the number of variables that the widget has to consider to generate the desired output. In WordPress, all the dynamic information is available to plugins. Information required from the user is really very minimal.&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;Therefore, I think that the functionality of CFW plugin is not limited if the function hooks of the plugin it uses have been written with flexibility and usability in mind.&#60;/p&#62;
&#60;p&#62;Finally, I would like to explain why the option to turn off widget wrapper is valid and sound from the perspective of presentation (theme) authors and content creators (widget authors). It is important to note that this options is turned off by default, and that there are in fact two options: (1) to turn off only the title, and (2) to turn off the title and the wrapper.&#60;/p&#62;
&#60;p&#62;It is assumed that people wouldn't normally want to do it (therefore the defaults), but in special cases it might useful. Widgets can be used outside the sidebars, if the theme allows, and it probable that such an option may be required for more advances users/websites, while the average users may simply ignore it.&#60;/p&#62;
&#60;p&#62;It doesn't break the theme by default and it behaves just like the author of the theme has intended for a widget to behave. That is the most important thing.
&#60;/p&#62;</description>
</item>
<item>
<title>Otto42 on "New Plugin: Custom Function Widgets"</title>
<link>http://wordpress.org/support/topic/155304#post-688026</link>
<pubDate>Tue, 05 Feb 2008 16:48:47 +0000</pubDate>
<dc:creator>Otto42</dc:creator>
<guid isPermaLink="false">688026@http://wordpress.org/support/</guid>
<description>&#60;p&#62;It's an interesting idea, however the use is somewhat limited. Might be more useful for MU users. However, it's not entirely 'safe' by any stretch of the imagination. call_user_func_array can be exploited too. Not as simply as eval, I admit, but still...&#60;/p&#62;
&#60;p&#62;On the whole, I think it would be better to encourage plugin authors to actually write widgets into their plugins. Perhaps giving them a simple widget code template that they can easily plug into their plugins would be a good idea.&#60;/p&#62;
&#60;p&#62;Understand that I don't like the ExecPHP widget either, and I'm the one who wrote it in the first place. I think too many lazy plugin authors refer to it when telling their users how to put bits in the sidebar.&#60;/p&#62;
&#60;p&#62;Additional: &#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;&#60;em&#62;CFW gives you the option to remove default widget wrapper, including title (set in functions.php), which might be useful for displaying content which shouldn't resemble the typical look of a widget.&#60;/em&#62;&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;I hate, hate, hate it when widgets allow this sort of thing. It defeats the whole point of the separation of content and presentation. The &#34;look&#34; should be controlled by the theme and by the theme alone. Not by the widget itself. If you want a specific widget to look different, then use styling to make it look different. All widgets should have unique identifiers for them if the theme is written correctly.
&#60;/p&#62;</description>
</item>
<item>
<title>kasparsd on "New Plugin: Custom Function Widgets"</title>
<link>http://wordpress.org/support/topic/155304#post-688012</link>
<pubDate>Tue, 05 Feb 2008 16:27:49 +0000</pubDate>
<dc:creator>kasparsd</dc:creator>
<guid isPermaLink="false">688012@http://wordpress.org/support/</guid>
<description>&#60;p&#62;&#60;a href=&#34;#post-687995&#34;&#62;Michael&#60;/a&#62;, yes it works differently than Otto's plugin, because of the following reasons:&#60;/p&#62;
&#60;ol&#62;
&#60;li&#62;Custom Function Widgets (CFW) plugin doesn't use PHP &#60;code&#62;eval&#60;/code&#62; function, but rather &#60;code&#62;call_user_func_array&#60;/code&#62;. More importantly, the name of the function is being verified by &#60;code&#62;function_exists&#60;/code&#62; and &#60;code&#62;is_callable&#60;/code&#62;. This makes CFW much safer, and also potentially available to WordPress MU users, as the owners/admins of the MU installation most likely wouldn't prefer any PHP executed by the users, but at the same time may find the &#60;code&#62;call_user_func_array&#60;/code&#62; option acceptable.&#60;/li&#62;
&#60;li&#62;If the function becomes unavailable (source plugin disabled or incorrect function name), the CF Widget will simply not be displayed, instead of various error message you would typically get when writing raw &#60;code&#62;PHP&#60;/code&#62; inside a widget.&#60;/li&#62;
&#60;li&#62;CFW gives you the option to remove default widget wrapper, including title (set in &#60;code&#62;functions.php&#60;/code&#62;), which might be  useful for displaying content which shouldn't resemble the typical look of a widget.&#60;/li&#62;
&#60;/ol&#62;
&#60;p&#62;I think that these are serious improvements over the available plugins that enable similar functionality. What do you think?
&#60;/p&#62;</description>
</item>
<item>
<title>MichaelH on "New Plugin: Custom Function Widgets"</title>
<link>http://wordpress.org/support/topic/155304#post-687995</link>
<pubDate>Tue, 05 Feb 2008 15:51:49 +0000</pubDate>
<dc:creator>MichaelH</dc:creator>
<guid isPermaLink="false">687995@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Would this work differently that Otto's plugin?&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://ottodestruct.com/blog/2006/04/09/fun-with-widgets/&#34; rel=&#34;nofollow&#34;&#62;http://ottodestruct.com/blog/2006/04/09/fun-with-widgets/&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>kasparsd on "New Plugin: Custom Function Widgets"</title>
<link>http://wordpress.org/support/topic/155304#post-687952</link>
<pubDate>Tue, 05 Feb 2008 14:18:52 +0000</pubDate>
<dc:creator>kasparsd</dc:creator>
<guid isPermaLink="false">687952@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Hello, fellow WordPress Users and Developers!&#60;/p&#62;
&#60;p&#62;I have created a plugin, which allows one to &#60;strong&#62;create widgets out of other plugins for which the authors offer only raw PHP function hooks&#60;/strong&#62;.&#60;/p&#62;
&#60;p&#62;For example, the famous &#60;em&#62;&#60;a href=&#34;http://alexking.org/projects/wordpress/readme?project=popularity-contest&#34;&#62;Popularity Contest&#60;/a&#62;&#60;/em&#62; plugin by Alex King can now be used without editing your theme files.&#60;/p&#62;
&#60;p&#62;&#60;em&#62;Custom Function Widgets&#60;/em&#62; plugin doesn't use the PHP &#60;code&#62;eval&#60;/code&#62; function, which means you will never get &#60;code&#62;function not found&#60;/code&#62; errors, even if you disable the plugin which provides the function hook.&#60;/p&#62;
&#60;p&#62;&#60;strong&#62;View screenshots and the list of features at this blog post:&#60;/strong&#62;&#60;br /&#62;
&#60;a href=&#34;http://konstruktors.com/blog/wordpress/101-wordpress-plugin-custom-function-widgets/&#34;&#62;&#60;strong&#62;Custom Function Widgets&#60;/strong&#62;&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
