Hi folks,
I was wondering if it's possible to allow Joomla admins to moderate (approve/reject) the submitted form entry when backed by a database table. I've got a database backed form properly working. It's just missing this feature as I do not want all records to be processed by another script without being looked at by an admin.
Any help is greatly appreciated.
Thanks!
Hi fulat2k,
There is nothing like this built in to ChronoForms but it wouldn't be too hard to code. Add an approved code to the table and create a moderators form that lets them check this field.
Bob
Is there a way to create a form where only Joomla admins can access? Right now, the forms are accessible by everyone.
Thanks.
If I read that PHP code correctly, that requires users to login via Joomla's administration module first and then access the CF forms URL?
Hi fulat2k,
No, logging in through the front-end gives the same user info.
Bob
Got it. Thanks for your help. By the way, one last question🙂
I have enabled file upload in the form to store an image. Is there an easy way I can redisplay the image?🙂
Hi fulat2k,
Yes, the image info is in the $attachments['field_name'] array you can get the url from this and create an <img . . . /> tag
Bob
Hi fulat2k,
No, that will only work immediately after the form is submitted. You'll need to make sure that the form path/url is saved in the database if you want to recall it later.
Bob
HI Bob,
Im trying to use this code to moderate the records, but I cant let it work
is there something Im missing, do I have to put this in CF or CC.
<?php
$user =& JFactory::getUser();
if ( $user->gid == 25 ) {
// show your form code here
}
?>
Thanks
Roy