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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

aliceduck’s picture

I'm also having this problem. In addition, the button also shows up in teasers when only checked to show up in full view.

blood2k’s picture

I have the same problem.

wolmi’s picture

Version: 7.x-1.x-dev » 7.x-1.1
FileSize
887 bytes

I think this is the solution,

in tweetbutton.module in line 84 the if contition was wrong, must be this:

if(isset($type[$node->type]) && $type[$node->type] !== 0
    && in_array($view_mode, variable_get('tweetbutton_node_location', array('full')))
    && user_access('access tweetbutton')) {

Attached the patch.

I test it in stable version 7.x-1.1, I think is the same problem in dev.

offerman’s picture

This 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

wolmi’s picture

Thank for the info, I'll try to resolve this

achekulaev’s picture

Thanks @offerman that total function replacement fixes the issue.

offerman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.