Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In configuration area on drupal 7.7; on the "tweet button node settings" page - I only selected "blog entry" for the tweet button to appear.
It's appearing on my "services" page and my "about" page (both of which are "Basic pages"):
http://www.tmc13.com/services
http://www.tmc13.com/about
In fact, I tried every other option including unchecking every box - and the tweet button still shows on every page. The "weighting" option does work, but the selection boxes based on nodes do not work.
Comment | File | Size | Author |
---|---|---|---|
#3 | show_button_in_node_types_disticnt_of_config-1272424-3.patch | 887 bytes | wolmi |
Comments
Comment #1
aliceduck CreditAttribution: aliceduck commentedI'm also having this problem. In addition, the button also shows up in teasers when only checked to show up in full view.
Comment #2
blood2k CreditAttribution: blood2k commentedI have the same problem.
Comment #3
wolmi CreditAttribution: wolmi commentedI think this is the solution,
in tweetbutton.module in line 84 the if contition was wrong, must be this:
Attached the patch.
I test it in stable version 7.x-1.1, I think is the same problem in dev.
Comment #4
offerman CreditAttribution: offerman commentedThis patch no longer needed after repairing this problem: "Currently displayed on teaser and node regardless of settings", replacing the entire function 'tweetbutton_node_view':
http://drupal.org/node/1139470
Comment #5
wolmi CreditAttribution: wolmi commentedThank for the info, I'll try to resolve this
Comment #6
achekulaev CreditAttribution: achekulaev commentedThanks @offerman that total function replacement fixes the issue.
Comment #7
offerman CreditAttribution: offerman commented