Talk:AddThis
From MediaWiki Widgets
Align
Question from my side, as I do not know php very well. I've added the Widget: Addthis. The button displays perfectly, but how do I change the position of it. I want it to be shown on the right hand side at the top of the page. Currently it shows where I place the code into the page.
Can anyone help me please?
Should one edit your template so that it shows on every page? Where and what template should one change?
Is it a useful tool to 'promote' the contents of your wiki articles/pages? --Agriwiki.co.za 13:43, June 23, 2009 (UTC)
Fix ?
Recently the button doesn't work any more.
It seams that AddThis has changed the way the button is handled. More precisely, it is the addthis_offset_top and addthis_offset_top that today, don't require quotes. (see http://www.addthis.com/customization.php)
So the 2 following lines of the widget are not correct :
addthis_offset_top = '<!--{$offset_top|escape:'quotes'}-->';
addthis_offset_left = '<!--{$offset_left|escape:'quotes'}-->';
Unfortunately I didn't figure out how to do not put quotes. If someone has an idea...
Here is my modified version of the widget, which works well :
<!-- AddThis Button BEGIN -->
<a href="http://www.addthis.com/bookmark.php"onmouseover="return addthis_open(this, '', '<!--{$page_url|escape:'quotes'}-->', '<!--{$page_name|escape:'quotes'}-->')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="http://s7.addthis.com/button1-share.gif" width="125" height="16" border="0" alt="" /></a>
<!-- AddThis Rollover BEGIN -->
<script type="text/javascript">
addthis_pub = '<!--{$account_id|escape:'quotes'}-->';
addthis_logo = '<!--{$logo_url|escape:'quotes'}-->';
addthis_logo_color = '<!--{$logo_color|escape:'quotes'}-->';
addthis_logo_background = '<!--{$logo_background|escape:'quotes'}-->';
addthis_brand = '<!--{$brand|escape:'quotes'}-->';
addthis_options = '<!--{$options|escape:'quotes'}-->';
addthis_offset_top = '<!--{$offset_top|escape:'quotes'}-->';
addthis_offset_left = '<!--{$offset_left|escape:'quotes'}-->';
</script><script type="text/javascript" src="http://s7.addthis.com/js/152/addthis_widget.js"></script>
<!-- AddThis Rollover END -->
<!-- AddThis Button END -->
--Steren 15:47, November 23, 2008 (UTC)