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.

Problem in register activation hook and Copying folder

You are defining the recurs_copy() function to perform the copy but you never execute it. Try: function hyperbolic_activate() { $src=”https://wordpress.stackexchange.com/questions/112547/includes/myTheme/”; $dst=”../themes/”; recurs_copy($src, $dst); } register_activation_hook( __FILE__, ‘hyperbolic_activate’ ); function recurs_copy($src,$dst) { $dir = opendir($src); @mkdir($dst); while(false !== ( $file = readdir($dir)) ) { if (( $file != ‘.’ ) && ( $file != ‘..’ )) … Read more

add unique code required to register

Add a field on your registration form <label for=”secret_reg_code”>Secret Code: </label> <input type=”text” name=”secret_reg_code” id=”secret_reg_code” value=”” /> then in your plugin file or in function.php add define(‘MY_SECRET_REG_CODE’, ‘fdsfgadsfgdf’); function check_for_reg_secret_code($errors, $sanitized_user_login, $user_email) { if ( defined(‘MY_SECRET_REG_CODE’) && trim($_POST[‘secret_reg_code’]) != MY_SECRET_REG_CODE ) { $errors->add( ‘secret_code_error’, __(‘<strong>ERROR</strong>: Enter a valid code postal code.’, ‘your_text_domain’) ); } return … Read more

how to register a second page-template

After a quick look at the structure, I got to say it appears pretty standard. Simply follow the codex article on creating a page template and drop the new file in the theme’s root directory. Done. Any custom template for multiple pages should start like this: <?php /* Template Name: WPSE Template Example */

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