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.

<?php
print $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

Status:active» closed (fixed)

#8

Status:closed (fixed)» active

#9

Hi,

sorry to reopen this, I've managed to get the share button to print using

<?php
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

#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.

nobody click here