[SOLVED] What's the best way to load field values externaly

13 years 3 months ago #147227 by sfraise
Ahhh perfect, exactly what I was looking for.

Please Log in to join the conversation.

13 years 3 months ago #147395 by sfraise
One last thing on this.
I'm having trouble determining if you're viewing your own profile or not.

Here's how I'm trying to do this:
[code:1]
$user_id = cbGetParam( $_REQUEST, 'user', null );
$myId = $_CB_framework->myId();
if ( ! $myId ) {
$cbUser =& CBuser::getInstance( $myId ); }
else {
$cbUser =& CBuser::getInstance( $user_id ); }
if ( ! $cbUser ) {
$cbUser =& CBuser::getInstance( null );
}
$user = $cbUser->getUserData();
if ( ! $user ) {
return;
}
[/code:1]

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.144 seconds

Facebook Twitter LinkedIn