TOPIC:

Programming an interface between BreezingForms (WP) and other applications 2 weeks 4 days ago #257814

  • Topic Author
  • EkiLaitila
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Hi,
we have an registration program, which should create and use an external reference number to get a ticket for a new participant for the coming event.

I am new to scripts. Therefore I have not found any advice of how to program external calls.

In Stackoverflow there is a sample for what I am searcing Return a unique number.
This works finely in Contact 5 forms, but we need to use BreezingForms.

If the principle of our functionality is mapped as short code, for example, as follows:
add_shortcode('quoteticket', 'genTicketString');

how to tell that in a form of scripts in BreezingForms/WP?

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

Programming an interface between BreezingForms (WP) and other applications 2 weeks 4 days ago #257816

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

I think this can help:
crosstec.org/en/forums/3-breezingforms-f....html?start=6#170909

Let me know if you need more help

Regards,
Tihana

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

Programming an interface between BreezingForms (WP) and other applications 2 weeks 4 days ago #257865

  • Topic Author
  • EkiLaitila
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 2
  • Thanks: 0
Thanks,
but it is complicated. I understand the ID, but it is not relevant here.

Can I call my mySQL directly (as a reference like shortcode), at first: to get the next ticket, and next: to mark that ticket to be used (or remove)? One or two calls into my PHP code, typical for snippets and shortcode?

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

Programming an interface between BreezingForms (WP) and other applications 2 weeks 4 days ago #257870

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

something like this in your form->Advanced->More options->Form pieces->Before form->check Custom and put this:
$this->execPieceByName('ff_InitLib');
$db =& JFactory::getDBO();

$query = 'SELECT MAX(id) FROM #__facileforms_records';
$db->setQuery($query);
$result = $db->loadResult() + 1;

ff_setValue('nameofelement', $result);
Please replace nameofelement with name for your element for ticket

Hope this helps

Regards,
Tihana

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

Programming an interface between BreezingForms (WP) and other applications 2 weeks 4 days ago #257871

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 5361
  • Karma: 3
  • Thanks: 383
Hi again,

I saw there error 500, this is php error.
Could you please check your php_error_log, and see if there is any errors or warinig and post it here? If you can't find it ask your host provide for php_error_log

Regards,
Tihana

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

  • Page:
  • 1
Time to create page: 0.048 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!