Link to home
Start Free TrialLog in
Avatar of charmingduck
charmingduck

asked on

drupal share module

i have drupal share module enabled

but i dont like where it is displayed

what's the code for the share button? i want to put it  in the php file so it can be whereever i like
Avatar of Thomas4019
Thomas4019
Flag of United States of America image

Take a look at this, http://drupal.org/node/348964
Avatar of charmingduck
charmingduck

ASKER

can you show me the code?
Yeah there doesn't seem to a terribly easy way to do it. So have you tried printing $output from the attached code?
$share = share_popup_load(1, 'share');
$output = $share->render($node);

Open in new window

I have, but I need to define the function first, can you show me?
what do you mean "define the function"? what about just putting it in your node-[contenttype].tpl.php
I tried and this is what i got

Fatal error: Call to undefined function share_popup_load() in....
try replacing "share_popup_load" with "share_load"
Fatal error: Call to a member function render() on a non-object

didnt work


btw, i had share module enabled and the "node mode" on
ASKER CERTIFIED SOLUTION
Avatar of Thomas4019
Thomas4019
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I think addtoany is awesome.