I have no idea why, but the AddThis dropdown doesn't show on my site after upgrading from 5.x-1.2 to 5.x-2.0-beta5. I'm only looking at a single (full) node. D5, PHP 5.2, MySQL 5.

Note what does happen when you mouse over the image: a long horizontal scrollbar appears and the vertical scrollbar gets longer. This indicates to me that the dropdown actually is appearing - it's just appearing very, very far away.

Comments

vesapalmu’s picture

Assigned: Unassigned » vesapalmu
Status: Active » Postponed (maintainer needs more info)

Hmm.. see http://drupal.org/node/315671#comment-1039219 and try that first. You really should run update.php after updating a module, but this will do the same for addthis module.

2.x versions of Addthis require using either a block or enabling button in links from administration.

IceCreamYou’s picture

I've already tried that. And I've run update.php. And the button is enabled, but the same behavior occurs with the block.

IceCreamYou’s picture

Also, I'm using JQuery Update 1 (JQuery version 1.1.2).

vesapalmu’s picture

We have had this kind of problems before and they were caused by CSS class name conflicts. Please check that your theme is not overriding addthis CSS.

IceCreamYou’s picture

I'm using the Pixture theme and there are no conflicts. And 5.x-1.2 works, so I don't think that's the issue.

PinoEire’s picture

I don't know if is related (different Drupal version), but have a look tho this: http://drupal.org/node/327730#comment-1084310

IceCreamYou’s picture

Probably is the same issue, will try tonight. I was thinking there could be a variable conflict or it could be a problem with Javascript Aggregator--but it makes sense that it would be the offsets.

lismail’s picture

#6 works for me.
If I hovered by mouse pointer on addthis button, my drop down was thrown to far down-left off the screen. Removing these offsets solve.

Thank you.

IceCreamYou’s picture

Hmm, forgot about this. #6 didn't work for me but I'll look at a few more things.

IceCreamYou’s picture

Alright, so that nearly worked. I needed to remove the variable reference too, so this is what I ended up with in the relevant section of code:

  if ($addthis_counter == 1) {
	  drupal_add_css((drupal_get_path('module', 'addthis') .'/addthis.css'));
	  drupal_add_js(sprintf('
	    addthis_pub = \'%s\';
	    addthis_logo = \'%s\';
	    addthis_logo_background = \'%s\';
	    addthis_logo_color = \'%s\';
	    addthis_brand = \'%s\';
	    addthis_options = \'%s\';
	',
	    variable_get('addthis_username', 'my-username'),
	    variable_get('addthis_logo', 'http://www.addthis.com/images/yourlogo.png'),
	    variable_get('addthis_logo_background', 'EFEFFF'),
	    variable_get('addthis_logo_color', '666699'),
	    variable_get('addthis_brand', 'Your Site'),
	    variable_get('addthis_options', 'favorites, email, digg, delicious, myspace, facebook, google, live, more')
	  ), 'inline');
  }

(And now it's fixed for me.)

lismail’s picture

Oopps,
Yes, I forgot to tell about removing variable reference in earlier post. Sorry about this :p

vesapalmu’s picture

Status: Postponed (maintainer needs more info) » Fixed

This has now been fixed in version 2.5. The fix is just temporary removal of offset settings until a permanent solution is found. Admin settings for offset are still available, but don't effect anything.

Status: Fixed » Closed (fixed)

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