TOPIC:

Display creation date 2 months 2 days ago #245486

  • Topic Author
  • Marco34
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 12
  • Thanks: 0
Thank you Tihana,
The problem is that my site is still local, and I can't give you access... I'll find out what's wrong and will get back to you if I block ...;)
Thanks again for your help.
Marc

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

Display creation date 2 months 2 days ago #245487

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1261
  • Karma: 3
  • Thanks: 110
ok.
please follow steps which I wrote to you in message above, and everything should be ok. :)

Regards,
Tihana

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

Display creation date 1 month 4 weeks ago #245825

  • Topic Author
  • Marco34
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 12
  • Thanks: 0
Hello Tihana,
I rebuilt the integration with the script you gave me, and I get this message again when I test:

syntax error, unexpected 'length' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$'

Here's the code you gave me, and I can't find the error...

$ length = count ($ this-> savedata);
for ($ i = 0; $ i <$ length; $ i ++) {

if ($ this-> savedata [$ i] [_ FF_DATA_NAME] == 'date') {

$ date = date ('Ymd H: i: s');

$ this-> savedata [$ i] [_ FF_DATA_VALUE] = $ date;
}
}


Thanks again for your help.
Marc

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

Display creation date 1 month 4 weeks ago #245826

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

add it like this (don't use space):
$length = count( $this->savedata);
for($i = 0; $i < $length; $i++){
    
    if( $this->savedata[$i][_FF_DATA_NAME] == 'date' ){

        $date = date('Y-m-d H:i:s');

        $this->savedata[$i][_FF_DATA_VALUE] = $date;
    }
}

Regards,
Tihana

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

Display creation date 1 month 4 weeks ago #245827

  • Topic Author
  • Marco34
  • Offline
  • Fresh Breezer
  • Fresh Breezer
  • Posts: 12
  • Thanks: 0
Thank you Tihana,
Even copying your script, without any space, I still have the same mistake:
syntax error, unexpected 'length' (T_STRING), expecting variable (T_VARIABLE) or '{' or '$'

Wouldn't I miss a plug-in??
Thanks again for your patience ;)

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

Display creation date 1 month 4 weeks ago #245828

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 1261
  • Karma: 3
  • Thanks: 110
hmm, weird.

Did you add this code in:
your form->Advanced->More options->Submit pieces->Begin Submit->check custom and put this code.

Regards,
Tihana

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!