• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 624
  • Last Modified:

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
0
charmingduck
Asked:
charmingduck
  • 5
  • 5
1 Solution
 
Thomas4019Commented:
Take a look at this, http://drupal.org/node/348964
0
 
charmingduckAuthor Commented:
can you show me the code?
0
 
Thomas4019Commented:
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

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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

Fatal error: Call to undefined function share_popup_load() in....
0
 
Thomas4019Commented:
try replacing "share_popup_load" with "share_load"
0
 
charmingduckAuthor Commented:
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
0
 
Thomas4019Commented:
Hmm, I'm not really liking this "Share" module. Maybe try looking around for a better one. There's tons of other similar modules out there. Maybe you can find one that puts it where you want it.

Check out this one, http://drupal.org/project/addtoany
0
 
charmingduckAuthor Commented:
I think addtoany is awesome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 5
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now