Posted by pike67 on May 4, 2011 at 8:31pm
6 followers
| Project: | Share Buttons (AddToAny) by Lockerz |
| Version: | 7.x-3.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
| Issue tags: | hack |
Issue Summary
In my hacked version, I've added the option 'custom code' to addtoany.admin.inc, and changed a few lines in addtoany.module so that, if custom is checked and custom code is provided, it uses that (instead of the custom image url). It seems to work.
It's an expert option ofcourse, because the custom code should be html as provided by the addtoany site but without the javascript link.
The changes are minimal, I'll attach the altered code from addtoany.module.
I think (something like) this would be a nice feature. If there was a better way to do this, I didn't find it :-/
| Attachment | Size |
|---|---|
| addtoany.pike_.hack_.txt | 1.03 KB |
Comments
#1
I agree this would be a great addition please find attached a patch to accommodate this functionality.
I would be grateful if the community could review it.
#2
subscribing, this would be really important to add.
#3
+1
#4
Shoot, I somehow missed this request before finding this duplicate: #1363056: Customizing button code. Sorry about that.
Anyhow, good news: this feature is now implemented in the dev version! Check it out, and feel free to create a new issue if you have any feedback on this feature. Thanks!