Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
That's because the tab substitution is outputting the tab it self. If you put the Custom HTML field on the tab you're substituting then you're getting stuck in a loop.I tried to substitute [cb:usertab tab="11" /]in HTML Field and check the output on the Profile page and it breaks down the page the page gets repeated, though it does display the tab somewhere in the middle.
I tried to substitute these values and get the error in screenshot :-
A substitution IF usage is going to see the same values as the CB Conditional usage so it really doesn't matter which you use. CB Privacy does not reset a fields value, but just hides its HTML output. This makes conditioning against it difficult. Most importantly you're trying to condition off the output of the avatar field and you need to review that output using a Custom HTML field with the above substitution usage in my previous reply.if i can substitute the tab in HTML field then instead of using conditional can't i just use some PHP if syntax directly in the custom HTML field and display the button links from there ? instead of conditioning the HTML filed i can then condition the specific button or links ?
Please Log in or Create an account to join the conversation.
Yes, you can use IF substitutions directly in a Custom HTML field (or anywhere substitutions are supported). Please see the substitution tutorial below. Several example usages at bottom of the page.Is it possible to use IF statements to Hide and show the Buttons instead of the whole field?
No, not without a 3rd party Joomla content plugin that can parse inline PHP. You'd then need to enable content prepare under the Custom HTML fields parameters.Is it possible to put the PHP code in the custom HTML field directly.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
What do you mean by it's not working? They can't select privacy options at all? The privacy option selected doesn't save? The privacy option selected doesn't even work? Please note CB Moderators and the profile owner themselves are exempt and can always see tabs/fields regardless of privacy setting. As you did not give super administrator permissions there's only so much I can review and test (e.g. I've no access to CB > Configuration to see if moderator view access level is set incorrectly).were you able to check the privacy issue also? it's only workign for one user who can Hide parts of his profile and not other.
If substitutions use raw database value. They don't do access checks. So your condition will always fail because it will always have a value if an avatar has been uploaded otherwise it needs to condition against the default image as follows.I am using this in the custom HTML field,andthe avatar field is hidden, but the button/ link is not visible. I have also enabled Content prepare option. BTW - i am using Sourcerer to parse the PHP code in Joomla.
Please Log in or Create an account to join the conversation.