Forum Replies Created
-
AuthorPosts
-
pachooleeMember
This is an insulting answer. I’m not that great at PHP but I’ve been coding for 20 years. I need to do more than display fields. I need to retrieve them and go after the database. Why include this option if you can’t give the option to do more than display them?
pachooleeMemberI followed the posts above, but I am still having problems displaying/utilizing the custom fields.
Here is the code:
if (!empty($user_id)) {
global $wpdb;
$members_meta_table_name = $wpdb->prefix . “wp_members_meta_tbl”;
$metadata = $wpdb->get_results(“SELECT meta_value FROM $members_meta_table_name WHERE user_id = $user_id”, OBJECT);
// print_r($metadata);
$unsermetadata = unserialize($metadata);
}
I get this warning:
Warning: unserialize() expects parameter 1 to be string, array given
The print_r returns:
Array ( [0] => stdClass Object ( [meta_value] => a:4:{s:15:”I_need_one”;s:7:”checked”;s:10:”Cell_Phone”;s:9:”219999999″;s:10:”Sponsor_ID”;s:1:”2″;s:10:”Sponsee_ID”;s:0:””;} ) )
December 25, 2011 at 5:08 am in reply to: For premium membership, no complete registration email generated #40057pachooleeMemberMakes sense /smacks head
Thanks.
For those who go searching:
No complete registration email is generated when testing in paypal sandbox!
December 25, 2011 at 5:03 am in reply to: No complete registration email sent unless regenerated with userid #39812pachooleeMemberThe latest version, from 12-15. I have done no customization (other than adding the echo to the function as requested above).
December 24, 2011 at 4:30 am in reply to: No complete registration email sent unless regenerated with userid #39810pachooleeMemberIn the “From Email Address” field in the “Prompt to Complete Registration” Email Settings,
I had used the format “My Name <myemail@mydomain.com>”
When I echoed $from_address it only picked up the first part, ie the “My Name” part.
If I then changed the field to contain only my email address, the $from_address did contain my email address.
It seems like there is some sort of bug when using the “Your Name <youremail@example.com>” format in the registration email settings.
December 20, 2011 at 8:10 am in reply to: Adding custom html to the message displayed on protected content #33779pachooleeMemberFound it. Thanks.
December 20, 2011 at 2:16 am in reply to: Adding custom html to the message displayed on protected content #33777pachooleeMemberI would like to customize this message with html also. But the “get_login_link” function is no longer in the wp_eMember.php file? So what file needs to be changed? thanks
December 20, 2011 at 12:16 am in reply to: No complete registration email sent unless regenerated with userid #39808pachooleeMemberI think this is a bug.
I put an echo in function
free_rego_with_email_confirmation_handler()
for the field $from_address which is set by
$from_address = $emember_config->getValue(‘senders_email_address’);
If I hard code the $from address in the function, the email is sent ok.
I do have the field “senders_email_address” properly filled in on the email settings page.
I haven’t been able to chase the problem back any further.
December 19, 2011 at 8:33 am in reply to: No complete registration email sent unless regenerated with userid #39807pachooleeMemberI found out what is happening, but don’t know how to fix it.
The “from” email address generated in the initial email is not picking up the “from” email address set in the email settings. Instead it is generating a “from” address of “WordPress@yahoo.com”, which is going straight to spam.
When I regenerate the email using the userid, it does pick up the correct “from” email in the email settings.
pachooleeMemberThanks!
December 18, 2011 at 9:32 pm in reply to: No complete registration email sent unless regenerated with userid #39805pachooleeMemberI am using the latest version from Dec 15. But neither one of the methods (mentioned in the documentation I linked to above) generate an initial email to free users. However, if I regenerate the email with userid it is sent out. What am I doing wrong?
December 18, 2011 at 1:52 pm in reply to: Logging in: Undefined Function 'get_userdatabylogin' #38196pachooleeMemberThat fixed it. Thanks.
December 18, 2011 at 1:08 pm in reply to: No complete registration email sent unless regenerated with userid #39803pachooleeMemberI also tried both of the methods listed in the documentation here:
And I cannot get either method to send the initial email. Email is only sent if regenerated from the admin panel using the member id.
December 18, 2011 at 11:50 am in reply to: No complete registration email sent unless regenerated with userid #39802pachooleeMemberSo I am to understand that no “complete registration email” is sent out to free users?
And yet, using the [wp_eMember_registration] shortcode does not show fields for entering username and password.
So how are free members supposed to set their username and password if they don’t get a completion email, and they can’t do it on the registration form?
December 18, 2011 at 7:44 am in reply to: Logging in: Undefined Function 'get_userdatabylogin' #38194pachooleeMemberI noticed this error only occurs when I have ‘Automatically log into WordPress’ checked, in the WordPress integration settings. If I have that unchecked, no error (but I lose the functionality of not having to login twice.)
-
AuthorPosts