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
You are here: Home

gstout

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • December 16, 2009 at 2:44 am in reply to: wp_eMember_profile_edit_form fields not shown in form #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 13, 2009 at 7:44 pm in reply to: wp_eMember_profile_edit_form fields not shown in form #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 10, 2009 at 12:58 am in reply to: eMember Feature requests #16208
    gstout
    Member

    I think this is a very exciting choice on your part! There were a few plug-ins I wanted to use that required WP-user status. While the raw awesomeness of your plug-in made me forget about those. This new direction you are taking open those options back up for me.

    My only suggestion in this area would be to let an admin specify what role the user gets created with. (You may already be doing this, I would not know.) This would open up the use one of WP role extension systems to control access even further and would be a fantastic way to extend the great work you have done here. Once again I think this is a great choice, It seems to me most other “membership” systems keep their users separate like you had done in the past. I think this will put your plug-in head and shoulder above the competition and is a real selling point.

    We are creating an annual member ship site. I see what you are saying but I think people shy away from automatic renewals, I know I do. I still feel a system for sending notifications on or near expiration or both really would be best… on the bright side you have almost a year to get it working :)

    December 10, 2009 at 12:31 am in reply to: Bug: Warning: Invalid argument supplied for foreach() #15879
    gstout
    Member

    Oh I’ll take the new version, We have not launched yet so all users are test data only. I appreciate your taking care of this so quickly. Please shoot me the new version as soon as you have a chance, and thanks!

    December 7, 2009 at 11:00 pm in reply to: eMember Feature requests #16206
    gstout
    Member

    Any thoughts on this?

    December 7, 2009 at 10:48 pm in reply to: Bug: Warning: Invalid argument supplied for foreach() #15876
    gstout
    Member

    Found a problem with this fix/version.

    Under membership levels> Manage Content protection tab >

    In the drop down other levels besides general protection are no longer showing up.

    November 21, 2009 at 11:38 pm in reply to: Bug: Warning: Invalid argument supplied for foreach() #15875
    gstout
    Member

    Your fix worked perfectly, thanks for your hard efforts and the constant improvements you keep making to this plug-in.

    November 21, 2009 at 7:38 pm in reply to: Bug: Warning: Invalid argument supplied for foreach() #15873
    gstout
    Member

    By the way, how do I get updates once you have this fixed.

    November 21, 2009 at 7:35 pm in reply to: Bug: Warning: Invalid argument supplied for foreach() #15872
    gstout
    Member

    I’m on php5 and getting the error

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • 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
  • 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

Our Other Plugins

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

Copyright © 2025 | Tips and Tricks HQ