• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: User can use the form only 5 times a day - Script?

User can use the form only 5 times a day - Script? 16 years 9 months ago #3869

Have anybody an idea to make a restriction of 5 times a day access to the form. That means he can only send 5 times a day the form.
And on the next day he can send 5 times again.

dragonjc idea was: a hidden field with value:

<code>
$user = $RSadapter->user();
jimport('joomla.utilities.date');
$now = new JDate():
$db =& Jfactory::getDB0();
$db->setQuery(\"SELECT * FROM #__rsform_submissions WHERE DateSubmitted = '$now' AND UserId = '$user'\");
$data = $db->loadObjectList();
$numer = count($data);
return $numer;
//</code>

But the problem is, the hidden field write no value to database and so no count is possible!?:whistle:
The administrator has disabled public write access.

Re:User can use the form only 5 times a day - Script? 16 years 1 month ago #7042

Try putting it in the Script Box of the field
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!