Posted by nyleve101 on September 22, 2011 at 12:55pm
5 followers
Jump to:
| Project: | Janrain Engage (formerly RPX) |
| Version: | 6.x-2.1 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
Hi,
I have a custom template file and would like to print the 'Share' site content button, does anyone know what code be required to do this?
Thanks,
Evelyn
Comments
#1
You can call the PHP function rpx_js_social(); that will take care of
placing the required Javascript on the page.
To get the button itself, you need to place the contents returned by
_rpx_share_button() on the page. This function accepts the node object
as its argument.
Hope this helps,
George
#2
Hi,
is there any pre developed code for this? I'm not a coder I thought there might be a snippet like there is for the fivestar widget.
<?phpprint $node->content['fivestar_widget']['#value'];
?>
Thanks for getting back to me!
Evelyn
#3
i need this too...
#4
Yes we too were wondering how to get the login on or near the comment form
#5
Hi,
can any further light be shed on this. I've tried checking for available variables in the node.tpl.php
<?php
print '<pre>';
print var_export($form);
print '</pre>';
?>
Thanks,
Evelyn
#6
Hi,
is the "Share" button or link available in the D6 version of this module?
Thanks,
Evelyn
#7
#8
#9
Hi,
sorry to reopen this, I've managed to get the share button to print using
<?phpprint _rpx_share_button($node);
?>
rpx.js a non-null share_display string is required
Does anyone know what could be causing this? The button works perfectly on node types that I haven't placed manually printed the button in the template.
Thanks,
Eve
#10
@nyleve101
were u able to find a solution to this?
Thx
Suchi
#11
Hi Suchi,
unfortunately I wasn't able to find a solution after much digging. Sorry i can't be of more help.
#12
Hi Suchi,
unfortunately I wasn't able to find a solution after much digging. Sorry i can't be of more help.