TOPIC:

Limit submission per IP not working 3 weeks 13 hours ago #250305

  • kzescher
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 4
  • Thanks: 0
The strange situation wil appear at second submission.

This situation would appear once at the submission after reached the limit. I don't know how to solve it..

I think no one can enter the form after reached the limit.

Please Log in or Create an account to join the conversation.

Limit submission per IP not working 3 weeks 12 hours ago #250312

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2202
  • Karma: 3
  • Thanks: 198
Hi,
I accidentally added two ";" in the end of $ip=$_SERVER;

So please try this:
$ip=$_SERVER['REMOTE_ADDR'];
$db = JFactory::getDBO();
$db->setQuery("Select count(id) From #__facileforms_records Where ip ='".$ip."' and form = 999");
if( $db->loadResult() > 2 ){
  // replace index.php with the url to an article explaining that the max. amount has been reached
  header("Location: index.php");
  exit;
}

I tested this and this works for me

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Limit submission per IP not working 2 weeks 1 day ago #250503

  • sly123
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 57
  • Thanks: 1
Hello,
We have implemented the code above as well but the records are both submitted and sent. The person submitted the form get their email and the admin. I have tested 4 emails already and everything was sent with no issue.
We have also set ours to be a single submission.
Any help would be greatly appreciated.
Thanks so much,

Please Log in or Create an account to join the conversation.

Limit submission per IP not working 2 weeks 1 day ago #250504

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2202
  • Karma: 3
  • Thanks: 198
Hi,

in this documentation you can find limit the number of submission:
crosstec.org/en/support/online-documenta...-of-submissions.html
Here you can find what you need to replace.

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Limit submission per IP not working 2 weeks 1 day ago #250505

  • sly123
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 57
  • Thanks: 1
We have set it up correctly from the instructions but the form is still submitted after the attempts blocked.
Any help would be greatly appreciated.

Code Used:

Please Log in or Create an account to join the conversation.

Last edit: Post by sly123.

Limit submission per IP not working 2 weeks 1 day ago #250506

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 2202
  • Karma: 3
  • Thanks: 198
Hi,

please make sure that you enter in Location correct url to an article on which max amount has been reached

Regards,
Tihana
The following user(s) said Thank You: kzescher

Please Log in or Create an account to join the conversation.

Moderators: ForumSupport
Time to create page: 0.051 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!