Hello,<br>&nbsp;&nbsp; Yes you do have to register for an account at AddThis.&nbsp; There is a link in the admin panel right above where you enter your username.<br><br>--Paul<br><br><div class="gmail_quote">On Sat, Jul 12, 2008 at 8:50 AM, fabian büttner &lt;<a href="mailto:fabian-buettner@gmx.de">fabian-buettner@gmx.de</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Does one have to register at <a href="http://addthis.com" target="_blank">addthis.com</a> to be able to use this plugin?<br>

<br>
Sorry, but I have to admit this plugin looks a lot better than the<br>
sociable plugin (have seen it on your blog) :)<br>
<br>
Can&#39;t wait to get my hands on it :)<br>
<div><div></div><div class="Wj3C7c"><br>
On Sat, 2008-07-12 at 06:46 -0400, <a href="mailto:pwestbro@devel.lifetype.net">pwestbro@devel.lifetype.net</a> wrote:<br>
&gt; Author: pwestbro<br>
&gt; Date: 2008-07-12 06:46:31 -0400 (Sat, 12 Jul 2008)<br>
&gt; New Revision: 6693<br>
&gt;<br>
&gt; Added:<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/README.txt<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/class/<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/class/action/<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/class/action/pluginaddthisconfigaction.class.php<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/class/action/pluginaddthisupdateconfigaction.class.php<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/class/view/<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/class/view/pluginaddthisconfigview.class.php<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/locale/<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/locale/locale_en_UK.php<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/pluginaddthis.class.php<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/templates/<br>
&gt; &nbsp; &nbsp;plugins/branches/lifetype-1.2/addthis/templates/addthis.template<br>
&gt; Log:<br>
&gt; Initial checkin of the AddThis plugin.<br>
&gt;<br>
&gt; Check out AddThis at <a href="http://www.addthis.com" target="_blank">http://www.addthis.com</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Added: plugins/branches/lifetype-1.2/addthis/README.txt<br>
&gt; ===================================================================<br>
&gt; --- plugins/branches/lifetype-1.2/addthis/README.txt &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(rev 0)<br>
&gt; +++ plugins/branches/lifetype-1.2/addthis/README.txt &nbsp;2008-07-12 10:46:31 UTC (rev 6693)<br>
&gt; @@ -0,0 +1,44 @@<br>
&gt; +[DESCRIPTION]<br>
&gt; +The AddThis plugin adds links to social bookmarking sites to each of<br>
&gt; +your blog posts.<br>
&gt; +<br>
&gt; +[USAGES]:<br>
&gt; +1. Upload: Upload all the extract files and directories to<br>
&gt; + &nbsp; $LifeType_Install_Dir/plugin/addthis<br>
&gt; +2. Next you need to add the following to post.template:<br>
&gt; + &nbsp; &nbsp;{assign var=&quot;addThisPostId&quot; value=$post-&gt;getId()}<br>
&gt; + &nbsp; &nbsp;{$addthis-&gt;show($addThisPostId)}<br>
&gt; +<br>
&gt; +<br>
&gt; +[EXAMPLE (From the template &#39;Falling Leaves with plug-ins]<br>
&gt; +{assign var=&quot;postDate&quot; value=$post-&gt;getDateObject()}<br>
&gt; +{assign var=&quot;postOwner&quot; value=$post-&gt;getUserInfo()}<br>
&gt; +{assign var=&quot;addthisPostId&quot; value=$post-&gt;getId()}<br>
&gt; +<br>
&gt; + &nbsp; &lt;DIV class=post&gt;<br>
&gt; + &nbsp; &nbsp; &nbsp;&lt;H2 class=storytitle &gt;&lt;A class=aposted<br>
&gt; + &nbsp; &nbsp; &nbsp;href=&quot;{$url-&gt;postPermalink($post)}&quot;&gt;{$post-&gt;getTopic()}&lt;/A&gt;&lt;/H2&gt;<br>
&gt; + &nbsp; &nbsp; &nbsp;&lt;DIV class=date&gt;Published on<br>
&gt; + &nbsp; &nbsp; &nbsp;{$locale-&gt;formatDate($postDate,&quot;%H:%M, %m/%d,%Y&quot;)}&lt;/DIV&gt;<br>
&gt; + &nbsp; &nbsp; &nbsp;&lt;DIV class=storycontent&gt;<br>
&gt; + &nbsp; &nbsp; &nbsp;&lt;P&gt;{$post-&gt;getText()}&lt;/P&gt;<br>
&gt; + &nbsp; &lt;/DIV&gt;&lt;BR&gt;<br>
&gt; + &nbsp; &lt;DIV class=feedback&gt;<br>
&gt; + &nbsp; &nbsp; &nbsp;&lt;DIV class=meta&gt;Posted under<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; {foreach name=categories from=$post-&gt;getCategories()<br>
&gt; + &nbsp; &nbsp; &nbsp;item=postcategory}<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;a<br>
&gt; + &nbsp; &nbsp; &nbsp;href=&quot;{$url-&gt;categoryLink($postcategory)}&quot;&gt;{$postcategory-&gt;getName()}&lt;/a&gt;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; {if !$smarty.foreach.categories.last}, {/if}<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; {/foreach}<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;| &lt;A<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;href=&quot;{$url-&gt;postPermalink($post)}#comments&quot;&gt;{$locale-&gt;tr(&quot;comment<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;on this&quot;)} ({$post-&gt;getTotalComments()})&lt;/A&gt;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;{$addthis-&gt;show($addthisPostId)}<br>
&gt; + &nbsp; &nbsp; &nbsp;&lt;/DIV&gt;<br>
&gt; + &nbsp; &lt;/DIV&gt;<br>
&gt; + &nbsp; &lt;DIV class=sep&gt;&lt;/DIV&gt;<br>
&gt; + &nbsp; &lt;/DIV&gt;<br>
&gt; +<br>
&gt; +[END EXAMPLE]<br>
&gt;<br>
&gt; Added: plugins/branches/lifetype-1.2/addthis/class/action/pluginaddthisconfigaction.class.php<br>
&gt; ===================================================================<br>
&gt; --- plugins/branches/lifetype-1.2/addthis/class/action/pluginaddthisconfigaction.class.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(rev 0)<br>
&gt; +++ plugins/branches/lifetype-1.2/addthis/class/action/pluginaddthisconfigaction.class.php &nbsp; &nbsp;2008-07-12 10:46:31 UTC (rev 6693)<br>
&gt; @@ -0,0 +1,47 @@<br>
&gt; +&lt;?php<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;/*<br>
&gt; + &nbsp; &nbsp;Copyright 2006, 2008 Paul Westbrook (<a href="mailto:paul@westbrooks.org">paul@westbrooks.org</a>)<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify<br>
&gt; + &nbsp; &nbsp;it under the terms of the GNU General Public License as published by<br>
&gt; + &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or<br>
&gt; + &nbsp; &nbsp;(at your option) any later version.<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;This program is distributed in the hope that it will be useful,<br>
&gt; + &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
&gt; + &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
&gt; + &nbsp; &nbsp;GNU General Public License for more details.<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;You should have received a copy of the GNU General Public License<br>
&gt; + &nbsp; &nbsp;along with this program; if not, write to the Free Software<br>
&gt; + &nbsp; &nbsp;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &nbsp;02111-1307 &nbsp;USA<br>
&gt; + &nbsp; &nbsp;*/<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/action/admin/adminaction.class.php&quot; );<br>
&gt; + &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;plugins/addthis/class/view/pluginaddthisconfigview.class.php&quot; );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; /**<br>
&gt; + &nbsp; &nbsp; &nbsp;* shows a form with the current configuration<br>
&gt; + &nbsp; &nbsp; &nbsp;*/<br>
&gt; + &nbsp; &nbsp; class PluginAddThisConfigAction extends AdminAction<br>
&gt; + &nbsp; &nbsp; {<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function PluginAddThisConfigAction( $actionInfo, $request )<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;AdminAction( $actionInfo, $request );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error_log(&quot;PluginAddThisConfigAction&quot;);<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function perform()<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error_log(&quot;PluginAddThisConfigAction::perform&quot;);<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginAddThisConfigView( $this-&gt;_blogInfo );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; + &nbsp; &nbsp; }<br>
&gt; +?&gt;<br>
&gt;<br>
&gt; Added: plugins/branches/lifetype-1.2/addthis/class/action/pluginaddthisupdateconfigaction.class.php<br>
&gt; ===================================================================<br>
&gt; --- plugins/branches/lifetype-1.2/addthis/class/action/pluginaddthisupdateconfigaction.class.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(rev 0)<br>
&gt; +++ plugins/branches/lifetype-1.2/addthis/class/action/pluginaddthisupdateconfigaction.class.php &nbsp; &nbsp; &nbsp;2008-07-12 10:46:31 UTC (rev 6693)<br>
&gt; @@ -0,0 +1,92 @@<br>
&gt; +&lt;?php<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;/*<br>
&gt; + &nbsp; &nbsp;Copyright 2006, 2008 Paul Westbrook (<a href="mailto:paul@westbrooks.org">paul@westbrooks.org</a>)<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify<br>
&gt; + &nbsp; &nbsp;it under the terms of the GNU General Public License as published by<br>
&gt; + &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or<br>
&gt; + &nbsp; &nbsp;(at your option) any later version.<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;This program is distributed in the hope that it will be useful,<br>
&gt; + &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
&gt; + &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
&gt; + &nbsp; &nbsp;GNU General Public License for more details.<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;You should have received a copy of the GNU General Public License<br>
&gt; + &nbsp; &nbsp;along with this program; if not, write to the Free Software<br>
&gt; + &nbsp; &nbsp;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &nbsp;02111-1307 &nbsp;USA<br>
&gt; + &nbsp; &nbsp;*/<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/action/admin/adminaction.class.php&quot; );<br>
&gt; + &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;plugins/addthis/class/view/pluginaddthisconfigview.class.php&quot; );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; /**<br>
&gt; + &nbsp; &nbsp; &nbsp;* updates the plugin configuration<br>
&gt; + &nbsp; &nbsp; &nbsp;*/<br>
&gt; + &nbsp; &nbsp; class PluginAddThisUpdateConfigAction extends AdminAction<br>
&gt; + &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $_pluginEnabled;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $_username;<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function PluginAddThisUpdateConfigAction( $actionInfo, $request )<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;AdminAction( $actionInfo, $request );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function validate()<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_pluginEnabled = $this-&gt;_request-&gt;getValue( &quot;pluginEnabled&quot; );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_pluginEnabled = ($this-&gt;_pluginEnabled != &quot;&quot; );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_username = $this-&gt;_request-&gt;getValue( &quot;username&quot; );<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( $this-&gt;_pluginEnabled == true &amp;&amp; $this-&gt;_username == &quot;&quot; ) {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginAddThisConfigView( $this-&gt;_blogInfo );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage( $this-&gt;_locale-&gt;tr(&quot;addthis_missing_username&quot;));<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function perform()<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // update the plugin configurations to blog setting<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings = $this-&gt;_blogInfo-&gt;getSettings();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings-&gt;setValue( &quot;plugin_addthis_enabled&quot;, $this-&gt;_pluginEnabled );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings-&gt;setValue( &quot;plugin_addthis_username&quot;, $this-&gt;_username );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_blogInfo-&gt;setSettings( $blogSettings );<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // save the blogs settings<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogs = new Blogs();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !$blogs-&gt;updateBlog( $this-&gt;_blogInfo )) {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginAddThisConfigView( $this-&gt;_blogInfo );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setErrorMessage( $this-&gt;_locale-&gt;tr(&quot;error_updating_settings&quot;));<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return false;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // if everything went ok...<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_blogInfo-&gt;setSettings( $blogSettings );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_session-&gt;setValue( &quot;blogInfo&quot;, $this-&gt;_blogInfo );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;saveSession();<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view = new PluginAddThisConfigView( $this-&gt;_blogInfo );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;_view-&gt;setSuccessMessage( $this-&gt;_locale-&gt;tr(&quot;addthis_settings_saved_ok&quot;));<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setCommonData();<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // clear the cache<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; CacheControl::resetBlogCache( $this-&gt;_blogInfo-&gt;getId());<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return true;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; + &nbsp; &nbsp; }<br>
&gt; +?&gt;<br>
&gt;<br>
&gt; Added: plugins/branches/lifetype-1.2/addthis/class/view/pluginaddthisconfigview.class.php<br>
&gt; ===================================================================<br>
&gt; --- plugins/branches/lifetype-1.2/addthis/class/view/pluginaddthisconfigview.class.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(rev 0)<br>
&gt; +++ plugins/branches/lifetype-1.2/addthis/class/view/pluginaddthisconfigview.class.php &nbsp; &nbsp; &nbsp; &nbsp;2008-07-12 10:46:31 UTC (rev 6693)<br>
&gt; @@ -0,0 +1,49 @@<br>
&gt; +&lt;?php<br>
&gt; + &nbsp; &nbsp;/*<br>
&gt; + &nbsp; &nbsp;Copyright 2006, 2008 Paul Westbrook (<a href="mailto:paul@westbrooks.org">paul@westbrooks.org</a>)<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify<br>
&gt; + &nbsp; &nbsp;it under the terms of the GNU General Public License as published by<br>
&gt; + &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or<br>
&gt; + &nbsp; &nbsp;(at your option) any later version.<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;This program is distributed in the hope that it will be useful,<br>
&gt; + &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
&gt; + &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
&gt; + &nbsp; &nbsp;GNU General Public License for more details.<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;You should have received a copy of the GNU General Public License<br>
&gt; + &nbsp; &nbsp;along with this program; if not, write to the Free Software<br>
&gt; + &nbsp; &nbsp;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &nbsp;02111-1307 &nbsp;USA<br>
&gt; + &nbsp; &nbsp;*/<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/view/admin/adminplugintemplatedview.class.php&quot; );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; /**<br>
&gt; + &nbsp; &nbsp; &nbsp;* implements the main view of the feed reader plugin<br>
&gt; + &nbsp; &nbsp; &nbsp;*/<br>
&gt; + &nbsp; &nbsp; class PluginAddThisConfigView extends AdminPluginTemplatedView<br>
&gt; + &nbsp; &nbsp; {<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function PluginAddThisConfigView( $blogInfo )<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;AdminPluginTemplatedView( $blogInfo, &quot;addthis&quot;, &quot;addthis&quot; );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function render()<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // load some configuration settings<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings = $this-&gt;_blogInfo-&gt;getSettings();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pluginEnabled = $blogSettings-&gt;getValue( &quot;plugin_addthis_enabled&quot; );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $username = $blogSettings-&gt;getValue( &quot;plugin_addthis_username&quot; );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // create a view and export the settings to the template<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;pluginEnabled&quot;, $pluginEnabled );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;setValue( &quot;username&quot;, $username );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parent::render();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; + &nbsp; &nbsp; }<br>
&gt; +?&gt;<br>
&gt;<br>
&gt; Added: plugins/branches/lifetype-1.2/addthis/locale/locale_en_UK.php<br>
&gt; ===================================================================<br>
&gt; --- plugins/branches/lifetype-1.2/addthis/locale/locale_en_UK.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (rev 0)<br>
&gt; +++ plugins/branches/lifetype-1.2/addthis/locale/locale_en_UK.php &nbsp; &nbsp; 2008-07-12 10:46:31 UTC (rev 6693)<br>
&gt; @@ -0,0 +1,17 @@<br>
&gt; +&lt;?php<br>
&gt; +$messages[&quot;manageAppearancePlugins&quot;] = &quot;Appearance Management&quot;;<br>
&gt; +$messages[&quot;addthis&quot;] = &quot;AddThis&quot;;<br>
&gt; +<br>
&gt; +$messages[&quot;addthis_plugin_enabled&quot;] = &quot;Enable this plugin&quot;;<br>
&gt; +$messages[&quot;addthis_username&quot;] = &quot;Username for account on AddThis. &nbsp;To obtain account go to &lt;a href=\&quot;<a href="http://www.addthis.com/%5C" target="_blank">http://www.addthis.com/\</a>&quot;&gt;<a href="http://www.addthis.com/" target="_blank">http://www.addthis.com/</a>&lt;/a&gt;&quot;;<br>

&gt; +$messages[&quot;addthis_plugin&quot;] = &quot;AddThis Plugin&quot;;<br>
&gt; +$messages[&quot;detail&quot;] = &quot;Detail&quot;;<br>
&gt; +<br>
&gt; +$messages[&quot;addthis_settings_saved_ok&quot;] = &quot;AddThis settings saved successfully!&quot;;<br>
&gt; +$messages[&quot;addthis_missing_username&quot;] = &quot;AddThis username needs to be specified!&quot;;<br>
&gt; +<br>
&gt; +<br>
&gt; +$messages[&quot;label_configuration&quot;] = &quot;Configuration&quot;;<br>
&gt; +$messages[&quot;label_addthis_username&quot;] = &quot;AddThis username&quot;;<br>
&gt; +$messages[&quot;label_enable&quot;] = &quot;Enable&quot;;<br>
&gt; +?&gt;<br>
&gt;<br>
&gt; Added: plugins/branches/lifetype-1.2/addthis/pluginaddthis.class.php<br>
&gt; ===================================================================<br>
&gt; --- plugins/branches/lifetype-1.2/addthis/pluginaddthis.class.php &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (rev 0)<br>
&gt; +++ plugins/branches/lifetype-1.2/addthis/pluginaddthis.class.php &nbsp; &nbsp; 2008-07-12 10:46:31 UTC (rev 6693)<br>
&gt; @@ -0,0 +1,107 @@<br>
&gt; +&lt;?php<br>
&gt; + &nbsp; &nbsp;/*<br>
&gt; + &nbsp; &nbsp;Copyright 2006, 2008 Paul Westbrook (<a href="mailto:paul@westbrooks.org">paul@westbrooks.org</a>)<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;This program is free software; you can redistribute it and/or modify<br>
&gt; + &nbsp; &nbsp;it under the terms of the GNU General Public License as published by<br>
&gt; + &nbsp; &nbsp;the Free Software Foundation; either version 2 of the License, or<br>
&gt; + &nbsp; &nbsp;(at your option) any later version.<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;This program is distributed in the hope that it will be useful,<br>
&gt; + &nbsp; &nbsp;but WITHOUT ANY WARRANTY; without even the implied warranty of<br>
&gt; + &nbsp; &nbsp;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. &nbsp;See the<br>
&gt; + &nbsp; &nbsp;GNU General Public License for more details.<br>
&gt; +<br>
&gt; + &nbsp; &nbsp;You should have received a copy of the GNU General Public License<br>
&gt; + &nbsp; &nbsp;along with this program; if not, write to the Free Software<br>
&gt; + &nbsp; &nbsp;Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA &nbsp;02111-1307 &nbsp;USA<br>
&gt; + &nbsp; &nbsp;*/<br>
&gt; +<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/plugin/pluginbase.class.php&quot; );<br>
&gt; + &nbsp; &nbsp; lt_include( PLOG_CLASS_PATH.&quot;class/plugin/pluginmanager.class.php&quot; );<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; class PluginAddThis extends PluginBase<br>
&gt; + &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $pluginEnabled;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var $addThisUsername;<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function PluginAddThis( $source = &quot;&quot; )<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;PluginBase($source);<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;id &nbsp; &nbsp; &nbsp;= &quot;addthis&quot;;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;author &nbsp;= &quot;Paul Westbrook&quot;;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;desc &nbsp; &nbsp;= &quot;The AddThis plugin creates an AddThis button for each post. &nbsp;This allows your users to bookmark or share your articles&quot;;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;version = &quot;20080712&quot;;<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;locales = Array( &quot;en_UK&quot;);<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( $source == &quot;admin&quot; )<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;initAdmin();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function initAdmin()<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;registerAdminAction( &quot;addthisConfig&quot;, &quot;PluginAddThisConfigAction&quot; );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;registerAdminAction( &quot;updateAddThisConfig&quot;, &quot;PluginAddThisUpdateConfigAction&quot; );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $menu =&amp; Menu::getMenu();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if( !$menu-&gt;entryExists( &quot;/menu/controlCenter/manageAppearancePlugins&quot; ))<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;addMenuEntry( &quot;/menu/controlCenter&quot;, &quot;manageAppearancePlugins&quot;, &quot;&quot;, &quot;&quot;, true, false );<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;addMenuEntry( &quot;/menu/controlCenter/manageAppearancePlugins&quot;, &quot;addthis&quot;, &quot;?op=addthisConfig&quot;, &quot;&quot; );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; function register()<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings = $this-&gt;blogInfo-&gt;getSettings();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;pluginEnabled = $blogSettings-&gt;getValue( &quot;plugin_addthis_enabled&quot; );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $this-&gt;addThisUsername = $blogSettings-&gt;getValue( &quot;plugin_addthis_username&quot; );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; function isEnabled()<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $this-&gt;pluginEnabled;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; function show($postId)<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $str = &#39;&#39;;<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($this-&gt;isEnabled())<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // articles object<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$articles = new Articles;<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rg = $this-&gt;blogInfo-&gt;getBlogRequestGenerator();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $rg-&gt;setXHTML( false );<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $post = $articles-&gt;getBlogArticle($postId);<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $blogSettings = $this-&gt;blogInfo-&gt;getSettings();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $locale =&amp; $this-&gt;blogInfo-&gt;getLocale();<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$blogname = $this-&gt;blogInfo-&gt;getBlog();<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$permalink = $rg-&gt;postPermalink($post);<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$title = $post-&gt;getTopic();<br>
&gt; +<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$str .= &#39;&lt;!-- ADDTHIS BUTTON BEGIN --&gt;&#39;;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $str .= &#39;&lt;script type=&quot;text/javascript&quot;&gt;&#39;;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $str .= &#39;addthis_pub &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;&#39; . $this-&gt;addThisUsername . &#39;&quot;;&#39;;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $str .= &#39;addthis_brand &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = &quot;&#39; . $blogname . &#39;&quot;;&#39;;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $str .= &#39;&lt;/script&gt;&#39;;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $str .= &#39;&lt;a href=&quot;<a href="http://www.addthis.com/bookmark.php" target="_blank">http://www.addthis.com/bookmark.php</a>&quot; onmouseover=&quot;return addthis_open(this, \&#39;\&#39;, \&#39;&#39; . $permalink . &#39;\&#39;, \&#39;&#39; . $title . &#39;\&#39;)&quot; onmouseout=&quot;addthis_close()&quot; onclick=&quot;return addthis_sendto()&quot;&gt;&lt;img src=&quot;<a href="http://s9.addthis.com/button1-share.gif" target="_blank">http://s9.addthis.com/button1-share.gif</a>&quot; width=&quot;125&quot; height=&quot;16&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&#39;;<br>

&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $str .= &#39;&lt;script type=&quot;text/javascript&quot; src=&quot;<a href="http://s7.addthis.com/js/152/addthis_widget.js" target="_blank">http://s7.addthis.com/js/152/addthis_widget.js</a>&quot;&gt;&lt;/script&gt;&#39;;<br>

&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $str .= &#39;&lt;!-- ADDTHIS BUTTON END --&gt;&#39;;<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return $str;<br>
&gt; + &nbsp; &nbsp; &nbsp; &nbsp;}<br>
&gt; +<br>
&gt; + &nbsp; &nbsp; }<br>
&gt; +?&gt;<br>
&gt;<br>
&gt; Added: plugins/branches/lifetype-1.2/addthis/templates/addthis.template<br>
&gt; ===================================================================<br>
&gt; --- plugins/branches/lifetype-1.2/addthis/templates/addthis.template &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(rev 0)<br>
&gt; +++ plugins/branches/lifetype-1.2/addthis/templates/addthis.template &nbsp;2008-07-12 10:46:31 UTC (rev 6693)<br>
&gt; @@ -0,0 +1,32 @@<br>
&gt; +{include file=&quot;$admintemplatepath/header.template&quot;}<br>
&gt; +{include file=&quot;$admintemplatepath/navigation.template&quot; showOpt=addthis title=$locale-&gt;tr(&quot;addthis_plugin&quot;)}<br>
&gt; +&lt;form name=&quot;commentPluginConfig&quot; method=&quot;post&quot;&gt;<br>
&gt; + &lt;fieldset class=&quot;inputField&quot;&gt;<br>
&gt; + &lt;legend&gt;{$locale-&gt;tr(&quot;label_configuration&quot;)}&lt;/legend&gt;<br>
&gt; + &nbsp;{include file=&quot;$admintemplatepath/successmessage.template&quot;}<br>
&gt; + &nbsp;{include file=&quot;$admintemplatepath/errormessage.template&quot;}<br>
&gt; + &nbsp;&lt;div class=&quot;field&quot;&gt;<br>
&gt; + &nbsp; &lt;label for=&quot;pluginEnabled&quot;&gt;{$locale-&gt;tr(&quot;label_enable&quot;)}&lt;/label&gt;<br>
&gt; + &nbsp; &lt;div class=&quot;formHelp&quot;&gt;<br>
&gt; + &nbsp; &nbsp;&lt;input class=&quot;checkbox&quot; type=&quot;checkbox&quot; name=&quot;pluginEnabled&quot; id=&quot;pluginEnabled&quot; {if $pluginEnabled} checked=&quot;checked&quot; {/if} value=&quot;1&quot; /&gt;{$locale-&gt;tr(&quot;addthis_plugin_enabled&quot;)}<br>

&gt; + &nbsp; &lt;/div&gt;<br>
&gt; + &nbsp;&lt;/div&gt;<br>
&gt; +<br>
&gt; + &nbsp;&lt;div class=&quot;field&quot;&gt;<br>
&gt; + &nbsp; &lt;label for=&quot;username&quot;&gt;{$locale-&gt;tr(&quot;label_addthis_username&quot;)}&lt;/label&gt;<br>
&gt; + &nbsp; &lt;span class=&quot;required&quot;&gt;*&lt;/span&gt;<br>
&gt; + &nbsp; &lt;div class=&quot;formHelp&quot;&gt;{$locale-&gt;tr(&quot;addthis_username&quot;)}<br>
&gt; + &nbsp; &nbsp; &lt;input class=&quot;text&quot; type=&quot;text&quot; name=&quot;username&quot; id=&quot;username&quot; value=&quot;{$username}&quot; width=&quot;10&quot; /&gt;<br>
&gt; + &nbsp; &lt;/div&gt;<br>
&gt; + &nbsp;&lt;/div&gt;<br>
&gt; +<br>
&gt; + &lt;/fieldset&gt;<br>
&gt; +<br>
&gt; + &lt;div class=&quot;buttons&quot;&gt;<br>
&gt; + &nbsp;&lt;input type=&quot;hidden&quot; name=&quot;op&quot; value=&quot;updateAddThisConfig&quot; /&gt;<br>
&gt; + &nbsp;&lt;input type=&quot;reset&quot; name=&quot;{$locale-&gt;tr(&quot;reset&quot;)}&quot; /&gt;<br>
&gt; + &nbsp;&lt;input type=&quot;submit&quot; name=&quot;{$locale-&gt;tr(&quot;update_settings&quot;)}&quot; value=&quot;{$locale-&gt;tr(&quot;update&quot;)}&quot; /&gt;<br>
&gt; + &lt;/div&gt;<br>
&gt; +&lt;/form&gt;<br>
&gt; +{include file=&quot;$admintemplatepath/footernavigation.template&quot;}<br>
&gt; +{include file=&quot;$admintemplatepath/footer.template&quot;}<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; pLog-svn mailing list<br>
&gt; <a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>
&gt; <a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn</a><br>
<br>
_______________________________________________<br>
pLog-svn mailing list<br>
<a href="mailto:pLog-svn@devel.lifetype.net">pLog-svn@devel.lifetype.net</a><br>
<a href="http://limedaley.com/mailman/listinfo/plog-svn" target="_blank">http://limedaley.com/mailman/listinfo/plog-svn</a><br>
</div></div></blockquote></div><br>