This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

several questions ~more thanks!


  1. noweb2008
    Member

    (1)a question about the notification emails

    how to Configure the "email content" to include the full url of the entry ? like this:

    "http://10.21.110.91/form/view_entry.php?form_id=6&id=4"

    so,i can click the url to directly access the entry.

    (2)a question about the success message

    after my users have successfully submitted an entry,she/he will see the success message.

    can she/he directly go to the first page to subitted again?
    maybe click the url,but i don't know how to add in the view.php.

    (3)last question:

    I edit the "includes/languanges.php" file,try to make a change to the value of 'Submit'/'Continue'/'Back'.
    I wanna translate it to chinaese simplified,but i got the messy code,can't be read normally.

    Posted 16 years ago #
  2. redityo

    Hi,

    For your questions :

    1. To create a url like you said, you can use template variable to get those value. Go to "Emails" menu and click "more options", you will see "content" text box in there. By default the value is :

    {entry_data}

    Change to

    {entry_data}
    Your URL :
    http://www.yourdomain.com/machform/view_entry.php?form_id={form_id}&id={entry_no}

    2. Simply put "[a]" tag in success text box. By default the value is "Success! Your submission has been saved!". You can change it to :

    Success! Your submission has been saved!
    <a href="http://www.yourdomain.com/machform/view.php?id=49">Go Back </a>

    Otherwise you can use redirect option for this, change your "form properties" success page option to "redirect URL" and put your form URL in there.

    3. Try to follow this post :
    http://www.appnitro.com/forums/topic/problems-with-swedish-characters?replies=2#post-4562

    I hope this help you ..


    MachForm Support

    Posted 16 years ago #
  3. noweb2008
    Member

    Dear redityo,thank you very much!
    question 1 and 2 have been decided according to your perfect advices.

    but question 3 is still existing.

    according to the old post:
    【Try this, edit your includes/language.php file, at the bottom before the ?> tag, insert this code:

    foreach ($lang as $key=>$value){
    $lang[$key] = utf8_encode($value);
    }】

    ------
    <?php
    /******************************************************************************
    MachForm

    Copyright 2007 Appnitro Software. This code cannot be redistributed without
    permission from http://www.appnitro.com/

    More info at: http://www.appnitro.com/
    ******************************************************************************/
    global $lang;

    //simple name and extended name
    $lang['name_first'] = 'First';
    $lang['name_last'] = 'Last';
    $lang['name_title'] = 'Title';
    $lang['name_suffix'] = 'Suffix';

    //address
    $lang['address_street'] = 'Street Address';
    $lang['address_street2'] = 'Address Line 2';
    $lang['address_city'] = 'City';
    $lang['address_state'] = 'State / Province / Region';
    $lang['address_zip'] = 'Postal / Zip Code';
    $lang['address_country'] = 'Country';

    //captcha
    $lang['captcha_required'] = 'This field is required. Please enter the letters shown in the image.';
    $lang['captcha_mismatch'] = 'The letters in the image do not match. Try again.';
    $lang['captcha_error'] = 'Error while processing, please try again.';
    $lang['captcha_title'] = 'Type the letters you see in the image below.';

    //date
    $lang['date_dd'] = 'DD';
    $lang['date_mm'] = 'MM';
    $lang['date_yyyy'] = 'YYYY';

    //price
    $lang['price_dollar_main'] = 'Dollars';
    $lang['price_dollar_sub'] = 'Cents';
    $lang['price_euro_main'] = 'Euros';
    $lang['price_euro_sub'] = 'Cents';
    $lang['price_pound_main'] = 'Pounds';
    $lang['price_pound_sub'] = 'Pence';
    $lang['price_yen'] = 'Yen';

    //time
    $lang['time_hh'] = 'HH';
    $lang['time_mm'] = 'MM';
    $lang['time_ss'] = 'SS';

    //error message
    $lang['error_title'] = 'There was a problem with your submission.';
    $lang['error_desc'] = 'Errors have been highlighted below.';

    //form buttons
    $lang['submit_button'] = 'Submit';
    $lang['continue_button'] = 'Continue';
    $lang['back_button'] = 'Back';

    //form status
    $lang['form_inactive'] = 'This form is currently inactive.';

    //form password
    $lang['form_pass_title'] = 'This form is password protected.';
    $lang['form_pass_desc'] = 'Please enter your password.';
    $lang['form_pass_invalid'] = 'Invalid Password!';

    //form review
    $lang['review_title'] = 'Review Your Entry';
    $lang['review_message'] = 'Please review your entry below. Click Submit button to finish.';

    //validation message
    $lang['val_required'] = 'This field is required. Please enter a value.';
    $lang['val_required_file'] = 'This field is required. Please upload a file.';
    $lang['val_unique'] = 'This field requires a unique entry and this value has already been used.';
    $lang['val_integer'] = 'This field must be an integer.';
    $lang['val_float'] = 'This field must be a float.';
    $lang['val_numeric'] = 'This field must be a number.';
    $lang['val_min'] = 'This field can not be less than %s characters.';
    $lang['val_max'] = 'This field can not be greater than %s characters.';
    $lang['val_range'] = 'This field is not in the range %s through %s characters.';
    $lang['val_email'] = 'This field is not in the correct email format.';
    $lang['val_website'] = 'This field is not in the correct website address format.';
    $lang['val_username'] = 'This field may only consist of a-z 0-9 and underscores.';
    $lang['val_equal'] = '%s must match.';
    $lang['val_date'] = 'This field is not in the correct date format.';
    $lang['val_time'] = 'This field is not in the correct time format.';
    $lang['val_phone'] = 'Please enter a valid phone number.';

    //fields on excel/csv
    $lang['export_num'] = 'No.';
    $lang['date_created'] = 'Date Created';
    $lang['date_updated'] = 'Date Updated';
    $lang['ip_address'] = 'IP Address';
    ?>
    ------

    I can't find the "?> tag"

    Posted 16 years ago #
  4. redityo

    actually you mention it, bellow this line

    $lang['ip_address'] = 'IP Address';

    You can add the code bellow that line, to be like this :

    //fields on excel/csv
    $lang['export_num'] = 'No.';
    $lang['date_created'] = 'Date Created';
    $lang['date_updated'] = 'Date Updated';
    $lang['ip_address'] = 'IP Address';
    
    foreach ($lang as $key=>$value){
    $lang[$key] = utf8_encode($value);
    }
    
    ?> <--- here is the tag

    MachForm Support

    Posted 16 years ago #
  5. noweb2008
    Member

    Dear redityo,i add the code just now,but i still can't change the the value of 'Submit'/'Continue'/'Back' to chinaese simplified,but i got the messy code just like “□ □ □”,why?

    another similar problem,user can upload the chinaese-named files nomally,but when i check the files in the background,the files'name turned to messy code 。
    if the english-named or number-named files be uploaded ,everything well be ok?

    Posted 16 years ago #
  6. redityo

    Hmm ... could you send "language.php" file and your form url to :

    customer.service[at]appnitro.com

    I need to check it further


    MachForm Support

    Posted 15 years ago #
  7. noweb2008
    Member

    Dear redityo,i have sent one mail to you just now,check it please!

    Posted 15 years ago #
  8. redityo

    Ok .. I got it, let's continue there


    MachForm Support

    Posted 15 years ago #

RSS feed for this topic

Reply