Addthis is not very graceful with respect to deleting, removing and unistalling left-over buttons. I need a clean-up script to go through the tables and remove any references to addthis.
Specifically, I removed the addthis module (probably forgetting to turn it off, first). An add this button still appeared in my pages, at least in the profile page of my user account. I reloaded addthis to my modules, and when I triggered it to show up in node links, now I have two add this buttons.
Comments
Comment #1
vesapalmu commentedThis is a strange issue, since there is no way to put Addthis button on your profile page using this module. Addthis is only displayed on node pages and only way of doing this would be to have nodes as profile pages. Also there is no per node configuration and only thing that the module saves are a few Drupal variables. Currently the variables are not cleaned up when the module is deactivated. This is by design since extra information added to Drupal database is very small and this enables user to keep existing configuration if the module is reactivated.
All your addthis buttons should go away right away when you disable the module. If this is not the case you can have caching issues (unlikely, since saving modules page clears caches) or have inserted addthis button manually on a page.
Comment #2
tstermitzThanks for the response.
I'm using node_profile, so yes, this is in nodes.
I never manually entered addthis, and I checked my page.tpl.php and node-page.tpl.php from ZEN, just to be sure. I have addthis turned off in the modules. I checked my performance cache settings, turned them all off and cleared cache. I opened in Safari and cleared its cache. The darned thing is still stuck in my page:
See: http://tango.org/node/30
The only thing weird that I did, was to remove the addthis module without first disabling it. Then I reloaded it to my website. Even if I had variables left over, I would have expected the new install or write over them.
Does this help?
I'm thinking best practice would suggest an uninstall script be to remove variables. I don't think there is much code to add, the module is so lightweight, anyway, and clearing the cruft is always good.
Comment #3
tstermitzOkay, I finally found the error. As you suggested, I had hard-coded the button into a node.tpl.php file, that was left over from the previous version of my website. I had to search for "addthis' through my entire directory structure... Thank god for BBedit!
You may close the issue, or better, I'll close it for you.