Results 1 to 1 of 1

Thread: Contact Lister - added new field (Phone), how to have this send in the contact email

  1. #1
    Thread Starter
    ironfever's Avatar
    Join Date
    Jul 2014
    Location
    France
    Posts
    11
    Thanks
    0
    Thanked 1 Time in 1 Post

    Contact Lister - added new field (Phone), how to have this send in the contact email

    I have added an addditional field in the contact form, see below:
    phone.png

    using:

    <li>
    <label><?php _e('Phone:', 'cp') ?></label>
    <input name="phone" id="phone" type="text" minlength="2" value="<?php if(isset($_POST['phone'])) echo stripslashes($_POST['phone']); ?>" class="text required" />
    <div class="clr"></div>
    </li>


    however , i need the submitted number to be emailed to the lister, the instructions i've retrieved online may be outdated (although the above was achieve following the same solution:

    The you need also to edit the theme-emails.php by adding the following code;

    $message .= "Sent by : ".wordwrap(strip_tags($_POST['from_name']), 70) . "\r\n\r\n";
    $message .= "Phone : ".wordwrap(strip_tags($_POST['phone']), 70) . "\r\n\r\n";
    You need to put it right after this code in the theme-emails.php specifically the // ad poster sidebar contact form email block;

    $message .= $siteurl . "\r\n\r\n";


    There doesnt seem to be a theme-emails.php in the latest classipress if anyone knows how to complete this I would appreciate the help
    thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mod Sidebar Contact For Added Field
    By mfjdspence in forum Help Using ClassiPress
    Replies: 0
    Last Post: June 29th, 2014, 04:08 PM
  2. Contact forms in Ads / submit phone number in email
    By bwoodward in forum ClassiPress General Discussion
    Replies: 2
    Last Post: June 24th, 2014, 04:30 AM
  3. Samcy contact form don't send email to author!
    By yanam in forum Report ClassiPress Bugs
    Replies: 9
    Last Post: March 19th, 2014, 01:26 PM
  4. contact poster form, not allow email or phone number
    By oscanyon in forum ClassiPress General Discussion
    Replies: 0
    Last Post: November 3rd, 2013, 09:34 AM
  5. Google Maps wont send Contact email!! HELP!
    By tlexington in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: November 7th, 2011, 01:53 AM