Problem with registration page

The problem was the mod_rewrite of Apache. I went in /etc/apache2/sites-available/000-default and I changed Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all to Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny allow from all the I restarted the apache server and all gone fine.

Remove wp-login link from auto generated wordpress’s email

Are you referring to the email sent after new subscriber registered to the site? If so, it is a pluggable function, which means you can over ride it as you need. Put this code in your theme functions.php. if( ! function_exists(‘wp_new_user_notification’) ) { function wp_new_user_notification($user_id, $plaintext_pass) { $user = new WP_User($user_id); $user_login = stripslashes($user->user_login); $greetings … Read more

Prevent registration except through form

I found a good answer and slightly modified it on a related question . It uses htaccess, and redirects any requests to wp-login.php?action=register. # BLOCK SPAM REGISTRATION REQUESTS (wp-login.php?action=register) <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{THE_REQUEST} ^.*(wp-login.php\?action=register).* [NC] RewriteRule ^(.*)$ http://isoreiki.com/about/account </IfModule> Notes: In the answer I linked to he totally blocked these requests. However I … Read more

generate an auto incremented id number when a new user is registered

You can use the same method as described in the link you mentioned, but simply use the created user ID and add 1000 so you get four digits. So user_id = 5 gets the meta number of 1005. add_action( ‘user_register’, ‘my_on_user_register’ ); function my_on_user_register( $user_id ) { $unique_id = 1000 + $user_id; update_user_meta( $user_id, ‘my_unique_id’, … Read more

How to generate Registration no

Add this in functions.php This will automatically add a custom field to a user when they register on your site with a key of: user_registration_no add_action(‘user_register’, ‘add_user_registration_number’); function add_user_registration_number ($user_id) { $reg_number = date(‘y’).date(‘m’).’SY’.’0′.$user_id; update_user_meta($user_id, ‘user_registration_no’, $reg_number); } This should be formatted in the way in which you specified..

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)