Works perfectly fine in all my tests. What about it is not working? Is the above literally being displayed? The proper check to see if viewing user is logged in is as follows.
Logged Out:
[cb:if user="#me" user_id="0"]You are not logged in.[/cb:if]
OR
[cb:if user="#me" user_id<="0"]I am A GUEST.[/cb:if]
Logged In:
[cb:if user="#me" user_id!="0"]You are logged in as [username].[/cb:if]
OR
[cb:if user="#me" user_id>"0"]I am NOT A GUEST.[/cb:if]
By default CB Content Bot substitutions are based off the owner of the article if an owner is available so it's important to specify user.
With 3.0.2 CB Content Bot is correctly a content.prepare plugin allowing it to function for all content.prepare locations as well.
Please be sure you're adding the substitutions with raw editor display (toggle the editor off) as the filtering and formatting functionality of the editor can sometimes break the substitutions.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Copy paste of the above works perfectly fine in my tests. Are you using this in a Joomla article? If it's literally being output it means it was malformed (probably by the editor) or is never loaded to be able to parse the content.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
You need to enable content prepare in your module if possible. It was never designed previously to work in a module so you were using functionality never intended. It only worked unintentionally as the content display trigger was fired after content prepare allowing the modules content to be parsed. As it's now a proper content prepare plugin it can function anywhere that content prepare can be used. The alternative is to use a CB Content Module.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.