I think there must be a fairly simple answer to this:
I want to be able to show some of the fields from my database to the general public, and some extra fields only to logged in users.
I guess I need to use php but can anyone give me an example?
Thanks very much!
Thanks so much for your help Bob,
I am getting an error message in the header code:
Parse error: syntax error, unexpected '{' in /....../components/com_chronoconnectivity/libraries/connection.php(246) : eval()'d code on line 5
The body code works to remove the fields I've selected from public view, but now even super admin cannot view them! Is this because of the problem in the header code?
How can I change the code so that all logged in users can see the extra fields?
Thanks again
Back again! I still can't figure out what is causing the parsing error, but have found the list of Joomla group IDs as follows:
Joomla Group ID - Joomla User Type
29 - Public Frontend
18 - Registered
19 - Author
20 - Editor
21 - Publisher
30 - Public Backend
23 - Manager
24 - Administrator
25 - Super Administrator
So if I can get Bob's code to work, I would need to add everything but group 29 to the array. This should allow all logged in users to access the extra fields.
All help with this is greatly appreciated!
Thanks Greyhead, I think that's one too many ')' now.
I get the following error:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in .../components/com_chronoconnectivity/libraries/connection.php(246) : eval()'d code on line 5
Hi growlcat,
Too early in the morning to be sure but three ((( and three ))) looks correct.
Bob