Forum

    Welcome Guest 

    Show/Hide Header
    Welcome Guest. This forum allows guest posts without registration. However, please provide a name and a valid e-mail address (which will not be published). If you use the same e-mail address each time, you can subscribe to be notified when your post receives a reply.
    Pages: [1]
      Reply RSS feed   
    Author Topic: How To Remove a Line?
    RedBlood
    Newbie
    Posts: 2
    PostHow To Remove a Line?
    on: February 13, 2011, 05:14

    Hello can you please tell me how do i remove Lines in the code such as:

    Less Deposit, Less Trade Allowance, Monthly payment
    payment protection, presuming a typical APR of 5.25%:

    Check/uncheck this box to view figures with/without Payment Protection,

    Vehicle Details

    Make

    Model

    Spec

    Year

    Please help i know where is located but when i remove it it gives Errors the page does not work Pleas Help thank you..

    Chip
    Administrator
    Posts: 19
    PostRe: How To Remove a Line?
    on: February 13, 2011, 13:43

    You shouldn't remove the fields, but make them hidden. So, instead of type="text", you should write type="hidden". This way, the values are still passed to the final function and no errors occur. You could also go a s tep further and delete the lines from the mail function, too. There's a big list there and you should figure out the variable names yourself.

    RedBlood
    Newbie
    Posts: 2
    PostRe: How To Remove a Line?
    on: February 14, 2011, 03:50

    Thank You Chip i figured it out but i have big issue
    on Application when you type your email and confirm the email why it shows that the email has been sent from wordpress@mysite.com why is not showing email from the customer?

    Thanks.

    Chip
    Administrator
    Posts: 19
    PostRe: How To Remove a Line?
    on: February 14, 2011, 08:46

    Thanks for using the plugin and providing valuable feedback. Your big issue is now solved.

    Either you update your plugin to version 1.3.3 or make the following changes inside the plugin's index.php:

    // send email using WordPress function // find this line
    $headers =
    	"MIME-Version: 1.0\n".
    	"From: ".$_POST['EMAIL_2']."\n".
    	"Content-Type: text/html; charset=\"".get_settings('blog_charset')."\"\n";
    
    $to = $f_email;
    $mail = wp_mail($to, $subject, $message, $headers);

    The sender email is now picked up straight from the application form using: $_POST['EMAIL_2'].

    Also another change is sending emails as text/html, as some WordPress configurations wouldn't pick up the default one.

    Hope that helps!
    Cheers!

    Quick Reply:

    Name: (required)
    Email: (required, not published)
    Website: (optional)
       Add this topic to your email notifications?

    Enter Security Code: (required)
    Pages: [1]
    Mingle Forum by cartpauj
    Version: 1.0.29 ; Page loaded in: 0.067 seconds.