narakalex
Forum Replies Created
-
Forum: Plugins
In reply to: Approval / Invitation / Access code? (wp-register.php)Here’s the complete solution (with 99.999% going to Skippy..)
Open wp-register.php
case ‘register’:
$user_login = $_POST[‘user_login’];
$user_email = $_POST[‘user_email’];
$invitationcode = $_POST[‘invitationcode’]; /*Added*//* checking that username has been typed */
if ($user_login == ”) {
die (__(‘ERROR: Please enter a username.’));
}/* This defines the invitation… type 1 or more invitationcodes*/
if (($invitationcode != ‘wp2005’) && ($invitationcode != ‘wprules’)) {
die (__(‘ERROR: You must enter your invitation code in the last box or you have typed a wrong invitationcode.’));
}**Goto**
<form method=”post” action=”wp-register.php” id=”registerform”>
<input type=”hidden” name=”action” value=”register” />
<label for=”user_login”><?php _e(‘Username:’) ?></label>
<input type=”text” name=”user_login” id=”user_login” size=”20″ maxlength=”20″ />
<label for=”user_email”><?php _e(‘E-mail:’) ?></label>
<input type=”text” name=”user_email” id=”user_email” size=”25″ maxlength=”100″ />
A password will be emailed to you.<label for=”invitationcode”><?php _e(‘Invitationcode:’) ?></label>
<input type=”text” name=”invitationcode” id=”invitationcode” size=”25″ maxlength=”100″ /><p class=”submit”><input type=”submit” value=”<?php _e(‘Register’) ?> »” id=”submit” name=”submit” />
Forum: Plugins
In reply to: Approval / Invitation / Access code? (wp-register.php)Super duper (it works..)!!
For Complete Solution.. see post below….
Simply Copy & Paste & Replace the code in your wp-register.phpForum: Requests and Feedback
In reply to: Approval / Invitation / Access code? (wp-register.php)Posted in Wrong forum!
Goto http://wordpress.org/support/topic/41260#post-231770
if you know how to solve this question (Plugins and Hacks)!