Extension talk:Add to Any Share/Save/Bookmark Button

From MediaWiki.org

Jump to: navigation, search

[edit] Doesn't seem to work?

I've installed the extension. It shows up in the Special:Version page. I put the <sharesave /> tag on a page. Nothing happens. I removed the comments around the "to do" section in the php file. Still nothing happens.

Any suggestions?

--C4duser 01:53, 16 January 2009 (UTC)


The <sharesave /> tag is a work in progress.

The goal is to have the <sharesave /> tag load the external JavaScript call before the </body> tag (so that content always loads first). If anyone knows how to make this happen, please do get in touch! http://www.addtoany.com/contact/

Micropat 05:31, 17 January 2009 (UTC)

[edit] Extremely annoying!

Its a good tool but its incredibly frustrating to have on a site due to the fact its a big pop up window in a regular cursor path that will activate even on a quick brush-over of the cursor. Any modifications? A 1/2 second delay on popup would probably work fine. --86.28.134.69 22:17, 10 July 2009 (UTC)

A Fix to Stop the Automatic Pop-Up

I agree that the automated pop-up can be a bit annoying at times, but I found that if you just add this quick bit of code, you can make it so the window will not drop down until the user clicks on the Add-to-Any icon. Here we go with the mod:

Open the php file you put into your extensions directory
add-to-any-share-save.php
About halfway down there is a section that has this code
   '<script type="text/javascript">a2a_linkname="' .$link_title. '";
    a2a_linkurl="' .$link_url. '";</script>';
			
return $markup;
Right before the closing

</script>';

Simply add

a2a_onclick=1;


So when you are done it looks like
   '<script type="text/javascript">a2a_linkname="' .$link_title. '";
    a2a_linkurl="' .$link_url. '";a2a_onclick=1;</script>';

			
return $markup;

See it in action

ßℜåΔ£εψ  ΜΩηαΚH∅Š

Monakhos