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!

Views: 54

Reply to This

Replies to This Discussion

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

Phil,

I think this is going to help a great deal. Thankyou so much for your time and knowledge!

Luke

RSS

Latest Activity

Donna Mac replied to Donna Mac's discussion '3.0 Video - can someone explain?'
"How weird is that?   I don't quite understand that concept if only I can post what is on…"
35 minutes ago
Kos replied to Donna Mac's discussion '3.0 Video - can someone explain?'
"That's my understanding but let's see if others have an approach on how they're…"
37 minutes ago
Riccardo Rossini replied to Alex's discussion 'More styling in the Design Studio'
"An another thing about avatar: the image uploaded that aren't in square aspect ratio are…"
49 minutes ago
Bree replied to soaringeagle's discussion '3.0 feature request'
"I hope this feature will be added, as SE says it will really help to drive activity and allow…"
1 hour ago

NC for Hire
Bernard Lama replied to Indrie Florin Gabriel's discussion 'Buton More Disapears'
"You are welcome Gabriel."
2 hours ago
Kos replied to Angie Fisher's discussion 'Help for a 3.0 Newbie Please....'
"Create a 2nd page and save it. Once saved a box will appear "make subtab". Check that and…"
3 hours ago
Riccardo Rossini replied to Alex's discussion 'More styling in the Design Studio'
"Alex, can you please consider this…"
3 hours ago
Riccardo Rossini replied to Riccardo Rossini's discussion 'Severe bug!' in the group The Sandbox
"Tha problem is still not solved...:(("
3 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service