Hello again...
I am trying and testing for many hours searching the forum and the cb substitutions tutorial. I did not manage to fix what i want but i found what is going on.
The closest approach to what i want is the example that you have in your substitution tutorial...
[cb:if usergroup includes "2"]I have Registered Usergroup[/cb:if]
Well this is wrong... at least on my site. This should be...
[cb:if usergroup includes "2"]The displayed user has Registered Usergroup[/cb:if]
I tested it with many users and this is exactly what i get. [cb:if usergroup includes "2"] refers to the displayed user.
Then i tried the following... tested with User in Registered usergroup (id 2)
[cb:if user="#displayed" usergroup="2"]Testing if this message displays for registered user.[/cb:if]
Viewing his profile shows nothing!
I modify the substitution and make it not equal to 2...
[cb:if user="#displayed" usergroup!="2"]Testing if this message displays for registered user.[/cb:if]
Viewing his profile the message shows fine.
I am stack! I do not understand what made my site not to deal with substitutions correctly! I used the same substitutions on my previous JOOMLA 3 site without problems.
Now on a JOOMLA 4 site i have the above issues.
Can you please advise?
Thank you.