dhunink
Forum Replies Created
-
Hi Steffano,
thanks for the latest update. Manually coding the opt-in button works like a charm!
However, users now receive double e-mails. One saying the’ve registered a account and one saying the’ve registered to the newsletter. Wouldn’t it be a good idea to provide an option to NOT send the welcome message (or not send it when registered through wp-registration).
Hi Stefano,
In addition to my previous question, a similair one. I would not only manually want to add a ‘subscribe’ button to my own Registraton form, I also would like to display a checkbox on the default profile page so users can manage there subscription not only by using a link from a newsletter but also by just checking/unchecking the subscription checkbox in there profile page.
I can do that by using a custom button and then do the following. But I wonder if you feel like doing it another way.
add_action( ‘profile_update’ , ‘update_newsletter_subscription’ );
function update_newsletter_subscription(){
//manually run SQL query to adjust the setting of wp_newsletter table
}Forum: Plugins
In reply to: [Theme My Login] Safari issueHa, You’re more then right. I’m totally unaware how I got it messed up that way. Guess I need a good night of sleep ??
Forum: Plugins
In reply to: [Theme My Login] Email as usernameHi Jeff,
thanks a lot. I first came up with that hook, didn’t worked. So I thought I must had the wrong hook. But since you’re recommending it as well, I hang on to it and finally discovered what the problem is actually. Just to be precise, I pointed out my solution below. It works, but if you feel i’m wrong, please let me know.
It turned out it works, when I just ad a hidden field to the registration form like this:
<input type="hidden" name="user_login" id="user_login<?php $template->the_instance(); ?>" class="input" value="<?php echo rand();//WP needs some value ?>" size="20" />
Without this input, or when the value is empty, the following happens:I’ve got this set-up as custom TML functions:
add_action('register_form','show_this'); add_action('register_post', 'tml_register_post'); add_action('registration_errors','check_fields', 10, 3); add_action('user_register', 'register_extra_fields');
On this time $errors is still empty:
add_action( 'register_post', 'tml_register_post' );
But when checked in this function, WP has gave the error alhough $_POST[‘user_login’] is perfectly set:
add_action('registration_errors','check_fields', 10, 3);
Hi Stefano. Thanks for replying on such short notice. If it would be possible to release an update which brings this possibility that would be real great and predicated!
If you need more info about my configuration/setup to get a better idea of the circumstances in which such an option would be needed if would be happy to help off course.
By the way, I really like your plugin. It’s way better then a lot of the alternatives out there. Wonderfull!
Forum: Plugins
In reply to: [Theme My Login] Email as usernameWould be nice if implemented!
For now, I assume you refer to a hook like user_registration_email. Which is actually badly documented; can’t find real examples to get this stuff working. The code below still results in the missing email error. Any thoughts?
add_filter(‘user_registration_email’, ‘use_email_as_username’);
function use_email_as_username($user_login){
$user_email = $user_login;
return $user_email;
}Forum: Plugins
In reply to: [Theme My Login] Safari issueForum: Plugins
In reply to: [Theme My Login] Safari issueIt actually doesn’t…
Firefox is posting it, even with JS disabled though…It is driving me crazy. When searching on the web almost all problems seems to be related to Javascript. But with JS turned off, the problem still occurs.
The URL is right, the method is right, I just can’t figure it outYeah, I did add it with additional files now before upgraded to the latest version. But I do mentioned that the changelog of the plugin is not really up-to-date; it’s at version.8, while the plugin is at version .10. Would it be possible to update the changelog? it makes it easier to see if and which is changed so I know if there would be any additional things to change in the separated JS code.
Forum: Fixing WordPress
In reply to: adding meta tags to headerThose meta tags can be generated with a SEO plugin, as alchymyth mentioned. I suggest that would be a better option than editing the header file yourself
Forum: Fixing WordPress
In reply to: post_count for only posts with thumbnailRead the second line of my previous post.
Two options:
1. Edit the Query to only select posts which ID has occurence in the meta table with meta key as stated in the link.
2. Loop through the results of the current query, for each post that has a thumbnail, count it.So (non-working code)
$count = 0; foreach($posts as $post){ if(has_tumbnail($post->ID)){ $count++; } }
Forum: Fixing WordPress
In reply to: Footer moved up near the middle of the pageI guess the css is tricky, since it’s floating. Try to enter a additional div before the footer and let that div do the float:clear.
Forum: Fixing WordPress
In reply to: adding meta tags to headerHi Karen.
What would you like to put in your header exactly?Forum: Fixing WordPress
In reply to: post_count for only posts with thumbnailIsn’t it possible, like some plugins do, to provide hooks for the plugin, so custom made changes won’t be gone after upgrading?