TOPIC:

Teilnehmeranzahl begrenzen bei BreezingForms 6 years 9 months ago #186572

  • Topic Author
  • baumel
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 2
  • Thanks: 0
Ich habe in der aktuellen Version (Joomla 3.6.5) zwei funktionierende Formulare und möchte gern für eines von beiden eine maximale Teilnehmerzahl einstellen. Ist das möglich und wenn ja wie.
Danke und frohes Fest

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

Teilnehmeranzahl begrenzen bei BreezingForms 6 years 9 months ago #186600

  • pedro81's Avatar
  • pedro81
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 15269
  • Thanks: 1078
Hallo,

hier findest du eine gute Lösung.


Frohes Fest!

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

Teilnehmeranzahl begrenzen bei BreezingForms 6 years 9 months ago #186620

  • Topic Author
  • baumel
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 2
  • Thanks: 0
Super und Danke, das passt. Und da frage ich gleich weiter :
Lässt sich die Anmeldezahl im Anmeldeformular mit anzeigen bzw. ausgeben.
In etwa: Freie Plätze: 25 von 100

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

Teilnehmeranzahl begrenzen bei BreezingForms 6 years 9 months ago #186644

  • pedro81's Avatar
  • pedro81
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 15269
  • Thanks: 1078
ja, du kannst diese Code so erweitern:
$db = JFactory::getDBO();
$db-> setQuery("Select count(id) From #__facileforms_records Where form = 999");
$current = $db->loadResult();
echo 'Freie Plätze: ' + $current + ' von 100';
if( $db->loadResult() > 100 )
{
     // replace index.php with the url to an article explaining that the max. amount has been reached
     header("Location: index.php");
     exit;
}
The following user(s) said Thank You: baumel

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

Teilnehmeranzahl begrenzen bei BreezingForms 6 years 8 months ago #188022

  • bilal_moussawi
  • Offline
  • New Member
  • New Member
  • Registered
  • Posts: 2
  • Thanks: 0
Hallo Pedro,
ich habe versucht folgende Code bei Vor Formular eingefügt, allerdings beim absenden den ersten Eintrag, werden ich auf den Beitrag weitergeleitet dass ich mich schon angemeldet habe.

$user = JFactory::getUser();
$db = JFactory::getDbo();
$db->setQuery('SELECT COUNT(id) FROM #__facileforms_records WHERE user_id ="'.$user->id.'" AND form = 9');
$db->loadResult();
if($db->loadResult() > 0){
// replace index.php with the url to an article explaining that the max. amount has been reached
header("Location: "article explaining that the max. amount has been reached"");
exit;
}
was mache ich falsch? ich bitte um Unterstützung.

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

Teilnehmeranzahl begrenzen bei BreezingForms 6 years 8 months ago #188168

  • pedro81's Avatar
  • pedro81
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 15269
  • Thanks: 1078
Hallo,

falsch ist was du ins header erstellt hast. versuch es aber mit
$user = JFactory::getUser();
$db = JFactory::getDbo();
$db->setQuery('SELECT COUNT(id) FROM #__facileforms_records WHERE user_id ="'.$user->id.'" AND form = 9');
$db->loadResult();
if($db->loadResult() > 0){

header("Location: www.crosstec.org");
exit;
}

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

  • Page:
  • 1
  • 2
Moderators: ForumSupport
Time to create page: 0.058 seconds

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!