if ( $user->get( "user" ) == "#Me" ) { ... }else{}
switch() { case
[cb:userdata field user:"#Me"]
[cbsubs:if user="#Me"]my code[/cbsubs:if]
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
if([cb:userdata field="user_id" user="#me" /]) {
echo "Show ONLY when I view MY profile";
Some code here....
print_r(something);
} else {
echo "Show something else when I view other's profile";
Some other code here...
print_r(something else);
}
Please Log in to join the conversation.
$displayedUserId= $user->getInt( 'id', 0 );
$viewingUserId = \CBLib\Application\Application::MyUser()->getUserId();
$displayedUserId= $user->getInt( 'id', 0 );
$viewingUserId = (int) '[cb:userdata field="user_id" user="#me" /]';
Please Log in to join the conversation.
Please Log in to join the conversation.