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

Mandy P. replied to Mandy P.'s discussion 'Remove unwanted space-Header'
"thanks a bunch..that helps!"
34 minutes ago
Aaron replied to Aaron's discussion 'Ning Spring Cleaning Begins This Week'
"Hi everyone, Just a quick note to let you know that this spam cleanup is complete. That said, you…"
2 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Check it out. I hovered both images, made 2 screen shots (just to capture the hover tip) and placed…"
2 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"I'm thinking it has something to do with caching. I just inspected the header, and I see 2…"
2 hours ago

NC for Hire
Jen replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Fire-Tech, You guys have given me major relief, just to know it's not something unique on my…"
2 hours ago
Fire-Tech replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Same thing here. All of the same issues...in FF and Chrome, but not as bad in Chrome."
3 hours ago
Kos replied to Kos's discussion '3.0 My Thoughts From A Non-Coder (edited 5/20/13)' in the group The Sandbox
"Edited to add a menu layer suggestion [used the Galaxy SIII]"
4 hours ago
Allison Leahy replied to Jen's discussion 'Jen's Running List - Updated 4/6/2013' in the group The Sandbox
"Sure does. Thanks for capturing this."
4 hours ago

© 2013   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service