Added ability to place AddToAny button in content section. This allows you to put the button before the comments when you use the DISQUS module. The DISQUS comment section is added to the node content section via nodeapi() hook and has by default weight = 50. The node links section is displayed after content section. Have also added ability to limit AddToAny buttons to be used/displayed for just certain node types.

3 functions are affected:

  • addtoany_link() -- changed logic somewhat and added ability to limit display of button to just certain node types
  • addtoany_nodeapi() -- new function that allows user to display button in content area of a node.
  • addtoany_admin_settings() -- changed function to add new settings in admin section of module

Comments

gregstout’s picture

I have been looking for this. I tried this attachment out and it works quite nicely. We should get this folded into the source system and eventually released. I don't use DISQUS, but I can now limit AddToAny buttons for specific content types, including some control of where it shows including in the teaser, content section, or links section. I have only tested it for the "links" section.
Good work.

Fanaile’s picture

After playing around with this version, I agree with gregstout. I really like being able to choose the node types, and having it set up in the content section helps keep the link section clean-looking. I don't use disqus either; but this works well for my purposes.

Will this become an official release soon?

micropat’s picture

Assigned: Unassigned » micropat
Status: Active » Patch (to be ported)

This should make it into the next release. Thanks for the code and detailed descriptions!

micropat’s picture

Status: Patch (to be ported) » Closed (fixed)