krileon wrote: There's no way to know if two users are connected or not without using CB Query Field to query the database.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
krileon wrote: You have no quotes in the query and those are not valid substitutions. An example of a valid query is as follows.
Code:SELECT `email` FROM `#__users` WHERE `id` = '[user_id]'
To grab the user id of the viewing user you'll also need to use the following substitution.
[cb:userfield field="user_id" user="#me" /]
Please see the below tutorial for further substitution usage information.
www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.