Please Log in or Create an account to join the conversation.
You should be using the getFields API to do this not forcing a single substitution parse. See the below for getFields API.$cbUser = CBuser::getInstance($user_id, false);
$atid = $cbUser->replaceUserVars('[cb:userdata field="cb_refid" user="' . $user_id . '" /]');
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Failing how? Sounds like you're just acting on a viewing users object so it's not going to return anything since their user id is always 0.Can you tell me what I miss here to have the display of the query field even if the viewer is not logged in ??
That's normal if you're trying to manage your database outside Joomla/CB as your database is setting an SQL mode. Run the below SQL then try again.Also trying to drop the column cb_refid gives the sql error : ERROR: Invalid default value for 'message_last_sent'
Please Log in or Create an account to join the conversation.