access levels

Questions and bug reports for current release of CKForms

access levels

Postby reko » Wed Feb 03, 2010 1:09 pm

Hi,
I'm new to CKforms and have a Question: Is it possible to set the access rights (public, registered or special in Joomla! 1.5) for the forms?
I know that i can set it for the menu link to the form but if the exact URL is known (which can be guessed extremely easy, just add "?option=com_ckforms&view=ckforms&id=X", X being a Number starting with 1 to Joomla!'s index.php) everyone can access the surveys!

Thanks for any replies!

Regards,
RK
reko
 
Posts: 5
Joined: Wed Feb 03, 2010 1:01 pm
Top

Re: access levels

Postby reko » Fri Feb 05, 2010 11:44 am

any word from the developer(s) one this?
i'd really appreciate it!
thx
rk
reko
 
Posts: 5
Joined: Wed Feb 03, 2010 1:01 pm
Top

Re: access levels

Postby ikkes » Wed Jun 09, 2010 8:17 pm

Hello!

We have made a hack for this, using the regular Joomla user layers.
Modify components/com_ckforms/views/ckforms/tmpl/default.php and at the following at the top off the file:

Code: Select all
<?php
  $user = & JFactory ::getUser();
  $current_user_id = $user->id;
  if ($current_user_id == 0) {
   echo "Registered users only!";
} else {

?>


and add the following at the bottom of the file:

Code: Select all
<?php } ?>


I hope you find this usefull ;-)But remember that this is at you're own risk!!

Regards,

Ikkes
ikkes
 
Posts: 3
Joined: Wed Jun 09, 2010 8:08 pm
Top


Return to CKForms 1.3.x Support forum

Who is online

Users browsing this forum: No registered users and 2 guests