hi
all is in the title...how can i do that ?
thanks
Seconded. I'm trying to code this in myself but having trouble. :(
i try with service link module but have trouble to style FB like button..but it's better solution i think
<a name="fb_share" type="button" share_url="<?php $options = array('absolute' => TRUE); $targetPath = url('node/'.drupal_get_normal_path(arg(1)), $options); print $targetPath; ?>" href="http://www.facebook.com/sharer.php?u=<?php print $targetPath; ?>">Share</a> <script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
What I'm doing is this:
print $node->content['facebookshare']['#value'];
For me it works like this:
First enable it for content type
Then, in the content type tpl.php hide it like this:
hide($content['facebookshare']);
Then add it where you want it like this:
print render($content['facebookshare']);
thanks for tips... ;)
Comments
Comment #1
ahoymehearties commentedSeconded. I'm trying to code this in myself but having trouble. :(
Comment #2
aiphesi try with service link module but have trouble to style FB like button..but it's better solution i think
Comment #3
shaunpv commentedComment #4
duvahazard commentedWhat I'm doing is this:
Comment #5
NenadP commentedFor me it works like this:
First enable it for content type
Then, in the content type tpl.php hide it like this:
Then add it where you want it like this:
Comment #6
aiphesthanks for tips... ;)