Hi Guys,
Your components are amazing and I am having alot fun using them to create a super interactive site that keep users involved and interested. Thank you!
Is there a way to configure ChronoConnectivity connections to allow the admin to view the submitted content of each user on the front side? Maybe better yet would be a way to hard link the user specific connection ID link and set it to be viewed by the user and the administrator only?
Thank you for your time,
gorg
Hi gorg,
there is, with few lines of code of course, can you list the records of any table now ? didy ou look at the Connectivity tutorial ?
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi gorg,
Check the Group id - $user->gid - and allow full access if the user is in the admin group (from memory groups 24, & 25).
Bob
Hi Guy,
I just wanted to take a second to clarify what I am trying to achieve and what I already have set up. To display the logs to the users who entered them I used the WHERE code displayed above and it seems to work perfectly except when the admin tries to see how the user is progressing. With the where code the admin sees their own information not the users information. Is there a way to supply drop down menu of the users names, or to setup a link to the users data from the users homepage?
Than you very much for dealing with another newbie.
gorg
Hi gorg,
Every user has a group id - that's the code for 'Registered', 'Manager', . . . 'Admin', 'Super Admin'. If you want to identify Admins and give them different info this is the code to use.
Bob
Hi Bob,
Ahh I understand. Where do I actually identify the allowed users for viewing of the ChronoConnectivity lists? Where would I place the code for a drop down box to select the user?
Thank you,
gorg
Hi gorg,
Sorry, I don't know ChronoConnectivity well enough to to have a sensible answer for you. Maybe when Max is around he will know.
Bob
Hi gorg,
tell me what are you trying to do exactly and I will show you how it can be done, different ways can be used depending on your specific needs!
Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max,
Thank you for taking a look here.
I am currently displaying a table of the information submitted by my users via my chronoforms. This table is created by a connection I made using ChronoConnectivity. By selecting the link a logged in user sees their information on its own page. This page is dynamic and formed specifically for the logged in user while unavailable to anyone else. This is powered by the use of the WHERE statement. Now this user information collected in the forms is diet intake and the goal is to have it posted for only the user and the administrator to view and edit. I would eventually like to work it into a community builder tab to make the user feel more comfortable but a simple page is more than enough right now.
Thank you very much for your time,
gorg
I just wanted to add that it is important to publish this connection with only one selected user.
Hi gorg,
if you need to make the connection show the current logged in user record then this code is correct :
<?php
$user = JFactory::getUser()
?>
WHERE cf_user_id = "<?php echo $user->id; ?>"
whats wrong with this ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi Max,
Thank you for looking into this for me.
What I am looking for follows this.
John: ate 2 hamburgers,2 tacos, and a sprite!
Gary: ate 1 hotdog, 1 bag of chips, and a beer!
John cannot see what Gary ate and Gary cannot see what John ate.
Although the admin can see John: ate 2 hamburgers,2 tacos, and a sprite!
and on a separate page or table Admin can see Gary: ate 1 hotdog, 1 bag of chips, and a beer!
I think my main problem here is that I need a way to post everyone's diet log on separate pages or right on their Profile page.
I hope that is more clear.
Thanks,
gorg
Hi gorg,
Assuming that John and Gary have 2 different accounts in Joomla then my code above should select the only 1 logged from them at the moment and so they can't see the records of each other!
Regards
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.