Hello, I am trying to use the logged in members email address to include in a third party application launched from within the Ning application so members don't need to log in twice. Can you advise how I can "call" the logged in members email address in this regard. See the sample script below where $USERID needs to be replaced with their email address from the Ning database.
<iframe src="http://www.masterscoreboard.co.uk/ListOfCompetitions.php?CWID=XX XX&CUID=<?php echo $USERID; ?>" width="100%" height="590" frameborder="0" scrolling="yes" id="abc" name="abc"></iframe>
Thank you for your help in advance!
Tags:
Hi Luke,
The email address for a signed in member isn't available to include in this type of situation. However, if you have a Pro network, you could include their screenName, which the third party server could use, in conjunction with the Ning API, to look up the member and retrieve their email address. You would need to update the string you called like this:
<script type="text/javascript">
var framesrc = "http://www.masterscoreboard.co.uk/ListOfCompetitions.php?CWID=XX XX&CUID=" + Ning.CurrentProfile.id;
</script>
And then use the Ning API at the third party server to take the value for CUID and look up the member's email address. You would need to assume that the value for CUID could be null, since it would be null for non-members. Also note that this method isn't completely secure; someone could tweak the value for the CUID on their client, so you might want to design your solution with that in mind.
Thanks,
Phil
Mandy P. replied to Mandy P.'s discussion 'Remove unwanted space-Header'
Aaron replied to Aaron's discussion 'Ning Spring Cleaning Begins This Week'


Fire-Tech replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
Kos replied to Kos's discussion '3.0 My Thoughts From A Non-Coder (edited 5/20/13)' in the group The Sandbox
Allison Leahy replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox© 2013 Created by Ning.
