Closed (fixed)
Project:
AddThis
Version:
5.x-2.0-beta3
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Reporter:
Created:
17 Apr 2008 at 10:42 UTC
Updated:
8 Oct 2008 at 06:02 UTC
Thanks for the great module.
I have one problem though. The AddThis button gets added to the comment links.
I'm not sure if this was intentional. I would assume not as it's awkard.
Is it possible to disable this function or perhaps making an option in the module preferences to allow or disallow it showing in comment links?
Cheers.
Comments
Comment #1
accessiveapps commentedhey,
nope should be only visible at full nodes :(
I ll take a look...
Thanks,
Patrick
Comment #2
gausarts commentedYou should change line 26.
Just add !$type == 'comment' to that line.
Instead of:
if (!$teaser && user_access($string)) {
Use:
if (!$teaser && !$type == 'comment' && user_access($string)) {
This will stop the module from showing on comments links. Hope that helps. Thanks for the module.
Comment #3
MediaMunkey commentedThanks for the code fix gausarts. It certainly does take it away from the comment links.
For some reason though it also takes it away from node links. In effect I don't get the addthis button at all anymore.
Not sure why that is.
Comment #4
gausarts commentedI didn't test it thoroughly. Ignore it. Sorry.
You should instead put this line:
right after the first line of the second function, so it goes:
That should do the trick. Good luck.
Comment #5
MediaMunkey commentedGreat work gausarts. Worked like a charm.
Now, if we can just get this commited...
Comment #6
vesapalmu commentedThis has been fixed in version 2.0 of this module. Version 2.0 is available for Drupal 6 as fully functional beta and is expected to be released soon.
Comment #7
vesapalmu commentedComment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #9
john t. haller commentedThis issue has cropped up again in the 6.x-2.2 release. The code to exclude it from comments is missing. The above fix still works:
http://drupal.org/node/247813#comment-815722
Comment #10
vesapalmu commentedIt seems the bug made a comeback when handling of teasers was changed. It has now been fixed in 6.x development snapshot and the fix will be included in next release.
Comment #11
that0n3guy commentedIt doesn't appear that this is fixed in the 5x - 2.0 - beta 3 also.
Comment #12
vesapalmu commentedThis has now been fixed in 5.x development snapshot. Please test the snapshot and I will roll out new version for 5.x soon.
Comment #13
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.