Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

wp_eMember_profile_edit_form fields not shown in form

by

Tips and Tricks HQ Support Portal › Forums › WP eMember › wp_eMember_profile_edit_form fields not shown in form

Tagged: add fields to the edit profile, affiliate, eMember edit profile, problem, program

  • This topic has 9 replies, 4 voices, and was last updated 13 years, 2 months ago by amin007.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • December 13, 2009 at 7:10 pm #550
    gstout
    Member

    How do I get these fields to appear on the profile form? They are in the member profile.

    Address Street

    Address City

    Address State

    Address Zipcode

    Country

    Gender

    Referrer

    December 13, 2009 at 7:44 pm #16682
    gstout
    Member

    Oh and…could you explain how I export this address info so I could send it to a printer for a mass mailing.

    Thanks

    December 14, 2009 at 11:52 pm #16683
    amin007
    Participant

    Hi Greg, You shouldn’t have to tweak it. We have plans to add these fields to the member profile page anyway. We are working on adding a bookmarking feature to this plugin. This will allow your members to be able to bookmark certain posts or pages from your site and it will be saved in their profile. The members can later access these bookmarks from their profile page. We will add those other fields in the profile page after this work is done.

    If you are pressed for time then you can manually add these by modifying the “function show_edit_profile_form()” file. Look inside the “show_edit_profile_form()” function. All the database columns are already there.. all it needs is to add the HTML form fields to take the input from the user.

    December 16, 2009 at 2:44 am #16684
    gstout
    Member

    Here is my code if you’d like to use it. PS I think you should add a Company field, that’s very common and useful for when an Organization joins that isn’t just one person. You might want to make first and last name required an optional setting.

    function show_edit_profile_form()
    {
    global $wpdb;
    if($_POST['eMember_update_profile'] == 'Update')
    {
    $fields = array();
    $fields['first_name'] = $_POST['afirstname'];
    $fields['last_name'] = $_POST['alastname'];
    $fields['address_street'] = $_POST['aaddressstreet'];
    $fields['address_city'] = $_POST['aaddresscity'];
    $fields['address_state'] = $_POST['aaddressstate'];
    $fields['address_zipcode'] = $_POST['aaddresszipcode'];
    $fields['country'] = $_POST['acountry'];
    $fields['email'] = $_POST['aemail'];
    $fields['password'] = $_POST['pwd'];
    dbAccess::update(WP_EMEMBER_MEMBERS_TABLE_NAME, ' member_id ='. $wpdb->escape($_POST['member_id']), $fields);
    $output .= "Your profile has been updated!";
    }
    else
    {
    global $auth;
    $member_id = $auth->getUserInfo('member_id');
    $resultset = dbAccess::find(WP_EMEMBER_MEMBERS_TABLE_NAME, ' member_id=' . $wpdb->escape($member_id));
    $username = $resultset->user_name;
    $first_name = $resultset->first_name;
    $last_name = $resultset->last_name;
    $address_street = $resultset->address_street;
    $address_city = $resultset->address_city;
    $address_state = $resultset->address_state;
    $address_zipcode = $resultset->address_zipcode;
    $country = $resultset->country;
    $email = $resultset->email;
    $password = $resultset->password;

    $output .= '
    <form action="" method="post" name="profileUpdateForm" id="profileUpdateForm" >
    <table width="95%" border="0" cellpadding="3" cellspacing="3" class="forms">';

    $output .= '<input type="hidden" name="member_id" id="member_id" value ="'.$member_id.'"/>';
    $output .= '<tr><td><label class="eMember_label">Username: </label></td>';
    $output .= '<td><label class="eMember_highlight">'.$username.'</label></td></tr>';
    $output .= '
    <tr>
    <td><label for="afirstname" class="eMember_label">First Name: </label></td>
    <td><input type="text" name="afirstname" size=20 value="'.$first_name.'" class="eMember_text_input"></td>
    </tr>
    <tr>
    <td><label for="alastname" class="eMember_label">Last Name: </label></td>
    <td><input type="text" name="alastname" size=20 value="'.$last_name.'" class="eMember_text_input"></td>
    </tr>
    <tr>
    <td><label for="aaddressstreet" class="eMember_label">Street: </label></td>
    <td><input type="text" name="aaddressstreet" size=20 value="'.$address_street.'" class="eMember_text_input"></td>
    </tr>
    <tr>
    <td><label for="aaddresscity" class="eMember_label">City: </label></td>
    <td><input type="text" name="aaddresscity" size=20 value="'.$address_city.'" class="eMember_text_input"></td>
    </tr>
    <tr>
    <td><label for="aaddressstate" class="eMember_label">State: </label></td>
    <td><input type="text" name="aaddressstate" size=20 value="'.$address_state.'" class="eMember_text_input"></td>
    </tr>
    <tr>
    <td><label for="aaddresszipcode" class="eMember_label">Zip Code: </label></td>
    <td><input type="text" name="aaddresszipcode" size=20 value="'.$address_zipcode.'" class="eMember_text_input"></td>
    </tr>
    <tr>
    <td><label for="acountry" class="eMember_label">Country: </label></td>
    <td><input type="text" name="acountry" size=20 value="'.$country.'" class="eMember_text_input"></td>
    </tr>
    <tr>
    <td><label for="aemail" class="eMember_label">Email: </label></td>
    <td><input type="text" name="aemail" size=20 value="'.$email.'" class="eMember_text_input"></td>
    </tr>
    <tr>
    <td><label for="pwd" class="eMember_label">Password: </label></td>
    <td><input type="password" name="pwd" size=20 value="'.$password.'" class="eMember_text_input"></td>
    </tr>
    <tr><td></td><td><input class="eMember_button" name="eMember_update_profile" type="submit" id="eMember_update_profile" class="button" value="Update"></td></tr>
    </table>
    </form>';
    }
    return $output;
    }

    December 16, 2009 at 8:31 am #16685
    amin007
    Participant

    Thanks Greg, will do

    January 19, 2010 at 2:15 pm #16686
    valerie
    Member

    Hello amin,

    Can you please let us know how it is going with the eMember plugin for the custom fields? Is it to be available soon? I have the eMember and I really need those custom fields too.

    Thank you!

    Valerie

    January 19, 2010 at 3:21 pm #16687
    webtechdg
    Member

    When trying to test the affliate program I get the following error after clicking the sign up button, yet it sends a blank email to the email account I entered: Warning: Cannot modify header information – headers already sent by (output started at /home/moiracr1/public_html/testblog/wp-content/plugins/wp-affiliate-platform/affiliates/lang/eng.php:1) in /home/moiracr1/public_html/testblog/wp-content/plugins/wp-affiliate-platform/affiliates/register.php on line 94

    Can the membership plugin and the affiliate program work together or does the person need to sign up for an entirely different username and password within the affiliate program?

    January 19, 2010 at 9:58 pm #16688
    amin007
    Participant

    The error is related to your server not being able to handle “Windows” formatted file (Some servers do this). There is nothing wrong with it though… I will send you another copy of the plugin where all the files are “UNIX” formatted and it should fix this issue.

    Yes the membership plugin and the affiliate plugin can work together and share the same login credentials but this work needs to be done manually at the moment. I am in the process of adding this functionality in the settings menu so it can be enabled just by checking a checkbox.

    January 19, 2010 at 11:32 pm #16689
    valerie
    Member

    Hello amin,

    Can you please let us know how it is going with the eMember plugin for the custom fields? Is it to be available soon? I have the eMember and I really need those custom fields too.

    Thank you!

    Valerie

    January 19, 2010 at 11:44 pm #16690
    amin007
    Participant

    Hi Valerie, the additional fields on the membership details can now be edited by the individual member from the “Edit Profile” page. We will send you an update so you get this option.

  • Author
    Posts
Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • WP PDF Stamper Documentation
  • WP Photo Seller Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial
  • WP Photo Seller Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Download Monitor

Copyright © 2023 | Tips and Tricks HQ