WordPress.org

Support

Support » Plugins and Hacks » Contact Form DB » [Plugin: Contact Form 7 to Database Extension] Add a unique number to each entry

[Plugin: Contact Form 7 to Database Extension] Add a unique number to each entry

Viewing 2 replies - 1 through 2 (of 2 total)
  • hi i’m intrest about this too
    is for an id increment
    don’t see solution yet
    best regards
    Amba

    A dear friend has found a solution.

    First he added the following in functions.php of my theme :

    add_filter(‘cfdb_form_data’,’myformcallback’);
    function myformcallback($form)
    {
    $form->posted_data[‘barcode’] = (string)substr(time(), 2, 8);
    // var_dump((string)substr(time(), 2, 8)); exit;
    return $form;
    }

    In the contact form itself we added a hidden field : [text barcode class:hidden]

    The barcode is added to the outgoing message with the following link :

    Barcode: <img src=”http://www.barcodesinc.com/generator/image.php?code=[barcode]&style=453&type=C128B&width=400&height=100&xres=3&font=3″ />

    Hope this works for you too!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Contact Form 7 to Database Extension] Add a unique number to each entry’ is closed to new replies.
Skip to toolbar