Getting logged in members Display Name or Email address via PHP API - Build2024-03-28T21:37:01Zhttp://build.ning.com/forum/topics/getting-logged-in-members?commentId=6308082%3AComment%3A7320&x=1&feed=yes&xn_auth=noOk, ignore me.
I hadn't upd…tag:build.ning.com,2011-08-03:6308082:Comment:73202011-08-03T14:51:55.631ZAlex Seymourhttp://build.ning.com/profile/AlexSeymour
<p>Ok, ignore me.</p>
<p> </p>
<p>I hadn't updated my tokens and network address in NingApi.php</p>
<p> </p>
<p>It was still set to my test network. Schoolboy error. Nothing to see here...move along. All working fine!</p>
<p>Ok, ignore me.</p>
<p> </p>
<p>I hadn't updated my tokens and network address in NingApi.php</p>
<p> </p>
<p>It was still set to my test network. Schoolboy error. Nothing to see here...move along. All working fine!</p> Why does this work fine on my…tag:build.ning.com,2011-08-03:6308082:Comment:73182011-08-03T14:42:02.485ZAlex Seymourhttp://build.ning.com/profile/AlexSeymour
<p>Why does this work fine on my test network, but doesn't work for non-admin users (i.e. members) on my live network?</p>
<p> </p>
<p>On my live network, I get the following error:</p>
<p><b>Fatal error</b>: Uncaught No User matches your query. (404) 3-1 thrown in <b>/var/www/app.royalcanin.ca/ning/api/ning-api-php/NingException.php</b> on line <b>56</b></p>
<p> </p>
<p>In the above code example, if the $author is a 'member' id, I get the above error.</p>
<p>Works fine for admin. On test,…</p>
<p>Why does this work fine on my test network, but doesn't work for non-admin users (i.e. members) on my live network?</p>
<p> </p>
<p>On my live network, I get the following error:</p>
<p><b>Fatal error</b>: Uncaught No User matches your query. (404) 3-1 thrown in <b>/var/www/app.royalcanin.ca/ning/api/ning-api-php/NingException.php</b> on line <b>56</b></p>
<p> </p>
<p>In the above code example, if the $author is a 'member' id, I get the above error.</p>
<p>Works fine for admin. On test, members and admins get data returned appropriately.</p>
<p><b><br/></b></p> You can access the member's f…tag:build.ning.com,2011-08-03:6308082:Comment:73152011-08-03T00:06:51.971ZDevinhttp://build.ning.com/profile/Devin
You can access the member's full name via '<span class="objectBox objectBox-text">ning.CurrentProfile.fullName'. You can't access email addresses via JavaScript, so your current method is the best option for now.<br/></span>
You can access the member's full name via '<span class="objectBox objectBox-text">ning.CurrentProfile.fullName'. You can't access email addresses via JavaScript, so your current method is the best option for now.<br/></span>