Active
Project:
Janrain Social Login
Version:
6.x-2.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2011 at 12:55 UTC
Updated:
1 Aug 2012 at 11:39 UTC
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
Comment #1
geokat commentedYou 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
Comment #2
nyleve101 commentedHi,
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.
print $node->content['fivestar_widget']['#value'];Thanks for getting back to me!
Evelyn
Comment #3
brunorios1 commentedi need this too...
Comment #4
venusrising commentedYes we too were wondering how to get the login on or near the comment form
Comment #5
nyleve101 commentedHi,
can any further light be shed on this. I've tried checking for available variables in the node.tpl.php
Thanks,
Evelyn
Comment #6
nyleve101 commentedHi,
is the "Share" button or link available in the D6 version of this module?
Thanks,
Evelyn
Comment #7
nyleve101 commentedComment #8
brunorios1 commentedComment #9
nyleve101 commentedHi,
sorry to reopen this, I've managed to get the share button to print using
print _rpx_share_button($node);. However; when clicking on the button the janrain popup doesn't appear. I've checked in firebug and the following error is present: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
Comment #10
gargsuchi commented@nyleve101
were u able to find a solution to this?
Thx
Suchi
Comment #11
nyleve101 commentedHi Suchi,
unfortunately I wasn't able to find a solution after much digging. Sorry i can't be of more help.
Comment #12
nyleve101 commentedHi Suchi,
unfortunately I wasn't able to find a solution after much digging. Sorry i can't be of more help.
Comment #13
Max_Headroom commentedAs pointed out in #1. You have to run another function to load js as well. This works in a block on a node page: