Difference between revisions of "Forum's administration changes"

From X-Moto
Jump to: navigation, search
 
m (de: added)
 
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
* In order to prevent nasty robot users, users can't anymore give an email adress when they create an account.
+
[[Ca:Forum's administration changes|Català]] - [[de:Administrative Aenderungen im Forum|Deutsch]] - [[Es:Forum's administration changes|Español]]
 +
 
 +
=== Forbidding to put a website url when creating an account ===
 +
In order to prevent nasty robot users, users can't anymore put web url when they create an account.
 
The file modified is /includes/usercp_register.php :
 
The file modified is /includes/usercp_register.php :
  
#-----[ FIND ]---------------------------------------------------------
+
<nowiki>
#
+
#-----[ FIND ]---------------------------------------------------------
 +
 
   else if ( $mode == 'register' )
 
   else if ( $mode == 'register' )
 
   {
 
   {
Line 10: Line 14:
 
         $error = TRUE;
 
         $error = TRUE;
 
         $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
 
         $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
      }
 
  
#
+
#-----[ THEN,ADD ]---------------------------------------------------
+
#-----[ THEN,ADD ]---------------------------------------------------
#
+
 
  if ( !empty($website) )
+
if ( ! empty($website) )
      {
+
{
        $error = TRUE;
+
$error = TRUE;
        $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . "Afin d'éviter l'inscription de spammers, veuillez ne pas mettre d'adresse web lors de votre inscription. Vous pourrez remplir ce champ plus tard.";
+
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . "Afin d'éviter l'inscription de spammers, veuillez ne pas mettre d'adresse web lors de votre inscription. Vous pourrez remplir ce champ plus tard. In order to limit nasty robot users, please don't put web url during the inscription. You will be able to update it after.";
      }
+
}
 
+
}
#
+
</nowiki>
 +
Valentin, admin on forum.xmoto.free.fr, 8 October 2006, 16:04

Latest revision as of 17:56, 25 October 2006

Català - Deutsch - Español

Forbidding to put a website url when creating an account

In order to prevent nasty robot users, users can't anymore put web url when they create an account. The file modified is /includes/usercp_register.php :

 #-----[ FIND ]---------------------------------------------------------
 
   else if ( $mode == 'register' )
   {
      if ( empty($username) || empty($new_password) || empty($password_confirm) || empty($email) )
      {
         $error = TRUE;
         $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];

 
 #-----[ THEN,ADD ]---------------------------------------------------

 if ( ! empty($website) )
 {
 $error = TRUE;
 $error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . "Afin d'éviter l'inscription de spammers, veuillez ne pas mettre d'adresse web lors de votre inscription. Vous pourrez remplir ce champ plus tard. In order to limit nasty robot users, please don't put web url during the inscription. You will be able to update it after.";
 }
 } 

Valentin, admin on forum.xmoto.free.fr, 8 October 2006, 16:04