<?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>ThemeShaper Forums Topic: How to filter a plugin which doesn't use variables</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Thu, 09 Feb 2012 04:22:38 +0000</pubDate>

<item>
<title>talino on "How to filter a plugin which doesn't use variables"</title>
<link>http://themeshaper.com/forums/topic/how-to-filter-a-plugin-which-doesnt-use-variables#post-4919</link>
<pubDate>Sat, 04 Jul 2009 01:18:56 +0000</pubDate>
<dc:creator>talino</dc:creator>
<guid isPermaLink="false">4919@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Obviously. Should've figured it out myself, but didn't. Thanks a lot kari.patila (and Chris!).
&#60;/p&#62;</description>
</item>
<item>
<title>kari.patila on "How to filter a plugin which doesn't use variables"</title>
<link>http://themeshaper.com/forums/topic/how-to-filter-a-plugin-which-doesnt-use-variables#post-4914</link>
<pubDate>Fri, 03 Jul 2009 17:46:13 +0000</pubDate>
<dc:creator>kari.patila</dc:creator>
<guid isPermaLink="false">4914@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;What Chris probably meant was that you can use the output_buffering parameter to prevent the button from being echoed:&#60;/p&#62;
&#60;p&#62;if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) $button = ADDTOANY_SHARE_SAVE_BUTTON( array(&#34;output_buffering&#34;=&#38;gt;TRUE, &#34;html_wrap_open&#34; =&#38;gt; &#34;&#38;lt; li &#38;gt;&#34;, &#34;html_wrap_close&#34; =&#38;gt; &#34;&#38;lt; /li &#38;gt;&#60;br /&#62;
&#34;) );&#60;/p&#62;
&#60;p&#62;After this echoing $button would print out the output from the plugin.
&#60;/p&#62;</description>
</item>
<item>
<title>talino on "How to filter a plugin which doesn't use variables"</title>
<link>http://themeshaper.com/forums/topic/how-to-filter-a-plugin-which-doesnt-use-variables#post-4910</link>
<pubDate>Fri, 03 Jul 2009 14:37:43 +0000</pubDate>
<dc:creator>talino</dc:creator>
<guid isPermaLink="false">4910@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I appreciate your reply for being more of a hint to a puzzle rather than a ready-made solution. However, I'll have to ask for another hint since I'm not sure of what you mean, and also because I'm just discovering the innards of Wordpress+Thematic: do you suggest that I modify the plugin so that it can apply my own filters to its output?&#60;/p&#62;
&#60;p&#62;The variable assignment in your code, from my understanding, doesn't achieve anything on its own since the ADDTOANY_SHARE_SAVE_BUTTON function isn't called, and I don't see how it helps getting that function to return a string instead of printing it.&#60;/p&#62;
&#60;p&#62;Thanks again for your help.
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "How to filter a plugin which doesn't use variables"</title>
<link>http://themeshaper.com/forums/topic/how-to-filter-a-plugin-which-doesnt-use-variables#post-4873</link>
<pubDate>Thu, 02 Jul 2009 13:15:40 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">4873@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;from time to time it's helpful to look into a plugin's source.&#60;/p&#62;
&#60;p&#62;Use&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$button = array(&#38;quot;output_buffering&#38;quot; =&#38;gt; TRUE, &#38;quot;html_wrap_open&#38;quot; =&#38;gt; &#38;quot;&#38;lt;li&#38;gt;&#38;quot;, &#38;quot;html_wrap_close&#38;quot; =&#38;gt; &#38;quot;&#38;lt;/li&#38;gt;&#38;quot;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;With this information you should be able to create your filter.&#60;/p&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>talino on "How to filter a plugin which doesn't use variables"</title>
<link>http://themeshaper.com/forums/topic/how-to-filter-a-plugin-which-doesnt-use-variables#post-4818</link>
<pubDate>Mon, 29 Jun 2009 22:19:38 +0000</pubDate>
<dc:creator>talino</dc:creator>
<guid isPermaLink="false">4818@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi all,&#60;/p&#62;
&#60;p&#62;I'm getting pretty comfortable with shaping up my Thematic child theme (at &#60;a href=&#34;http://www.talino.org&#34; rel=&#34;nofollow&#34;&#62;www.talino.org&#60;/a&#62;). However I'm having some difficulty with the Add To Any plugin (http://wordpress.org/extend/plugins/add-to-any/). I would like to add it in the .entry-utility div, but I can't figure out how to accomplish that.&#60;/p&#62;
&#60;p&#62;The plugin's admin page says the code to include is the following:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;echo &#38;#39;&#38;lt;ul class=&#38;quot;addtoany_list&#38;quot;&#38;gt;&#38;#39;;
if( function_exists(&#38;#39;ADDTOANY_SHARE_SAVE_ICONS&#38;#39;) ) ADDTOANY_SHARE_SAVE_ICONS( array(&#38;quot;html_wrap_open&#38;quot; =&#38;gt; &#38;quot;
&#38;lt;li&#38;gt;&#38;quot;, &#38;quot;html_wrap_close&#38;quot; =&#38;gt; &#38;quot;&#38;lt;/li&#38;gt;
&#38;quot;) );
if( function_exists(&#38;#39;ADDTOANY_SHARE_SAVE_BUTTON&#38;#39;) ) ADDTOANY_SHARE_SAVE_BUTTON( array(&#38;quot;html_wrap_open&#38;quot; =&#38;gt; &#38;quot;
&#38;lt;li&#38;gt;&#38;quot;, &#38;quot;html_wrap_close&#38;quot; =&#38;gt; &#38;quot;&#38;lt;/li&#38;gt;
&#38;quot;) );
echo &#38;#39;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I've tried filtering different steps in the Thematic code, such as thematic_postfooter, thematic_postfooter_postconnect &#38;#38; thematic_postfooter_postcategory, but no matter what I do the plugin outputs its own HTML whenever my filter is called, instead of where Thematic would place it, i.e. somewhere here:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$postfooter = &#38;#39;&#38;lt;div class=&#38;quot;entry-utility&#38;quot;&#38;gt;&#38;#39; . $postcategory . $posttags . $postconnect;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is there any way to do this cleanly? I've been doing a lot of customizations in my functions.php and I would hate touching the framework files.&#60;/p&#62;
&#60;p&#62;Thanks for your help.
&#60;/p&#62;</description>
</item>

</channel>
</rss>

