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
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
Take a look at this, http://drupal.org/node/348964
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);
ASKER
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
ASKER
I tried and this is what i got
Fatal error: Call to undefined function share_popup_load() in....
Fatal error: Call to undefined function share_popup_load() in....
try replacing "share_popup_load" with "share_load"
ASKER
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
didnt work
btw, i had share module enabled and the "node mode" on
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I think addtoany is awesome.