mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Bugtracker #3668 - update help on extended fields, tidy up on reserved fields
This commit is contained in:
parent
011754f554
commit
9f3a96be82
@ -11,9 +11,9 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2006-12-07 15:41:50 $
|
||||
| $Author: sweetas $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-01-18 20:52:00 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("../class2.php");
|
||||
@ -97,13 +97,19 @@ if (isset($_POST['add_field']))
|
||||
}
|
||||
$new_values = make_delimited($_POST['user_values']);
|
||||
$new_parms = $tp->toDB($_POST['user_include']."^,^".$_POST['user_regex']."^,^".$_POST['user_regexfail']."^,^".$_POST['user_hide']);
|
||||
$result = admin_update($ue->user_extended_add($_POST['user_field'], $_POST['user_text'], $_POST['user_type'], $new_parms, $new_values, $_POST['user_default'], $_POST['user_required'], $_POST['user_read'], $_POST['user_write'], $_POST['user_applicable'], 0, $_POST['user_parent']), 'insert', EXTLAN_29);
|
||||
if(!$result)
|
||||
|
||||
// Check to see if its a reserved field name before adding to database
|
||||
if($ue->user_extended_reserved($_POST['user_field']))
|
||||
{ // Reserved field name
|
||||
$message = "[user_".$tp->toHTML($_POST['user_field'])."] ".EXTLAN_74;
|
||||
}
|
||||
else
|
||||
{
|
||||
if($ue->user_extended_reserved($_POST['user_field']))
|
||||
{
|
||||
$message = "[user_".$tp->toHTML($_POST['user_field'])."] ".EXTLAN_74;
|
||||
}
|
||||
$result = admin_update($ue->user_extended_add($_POST['user_field'], $_POST['user_text'], $_POST['user_type'], $new_parms, $new_values, $_POST['user_default'], $_POST['user_required'], $_POST['user_read'], $_POST['user_write'], $_POST['user_applicable'], 0, $_POST['user_parent']), 'insert', EXTLAN_29);
|
||||
if(!$result)
|
||||
{
|
||||
$message = EXTLAN_75;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -976,7 +982,7 @@ function headerjs()
|
||||
var ftype;
|
||||
var helptext;
|
||||
";
|
||||
for($i=0; $i<=7; $i++)
|
||||
for($i=1; $i<=8; $i++)
|
||||
{
|
||||
$type_const = "UE_LAN_{$i}";
|
||||
$help_const = "EXTLAN_HELP_{$i}";
|
||||
|
@ -4,9 +4,9 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_users_extended.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:34:42 $
|
||||
| $Author: mcfly_e107 $
|
||||
| $Revision: 1.2 $
|
||||
| $Date: 2007-01-18 20:52:07 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
define("EXTLAN_1", "Name");
|
||||
@ -20,7 +20,7 @@ define("EXTLAN_8", "Action");
|
||||
define("EXTLAN_9", "Extended User Fields");
|
||||
|
||||
define("EXTLAN_10", "Field name");
|
||||
define("EXTLAN_11", "This is the name of the field as stored in the table, it must be unique from any other");
|
||||
define("EXTLAN_11", "This is the name of the field as stored in the table, it must be unique from any other, and must not be used in the main user table");
|
||||
define("EXTLAN_12", "Field text");
|
||||
define("EXTLAN_13", "This is the displayed name of the field in rendered pages");
|
||||
define("EXTLAN_14", "Field Type");
|
||||
@ -87,21 +87,24 @@ define("EXTLAN_71", "was not activated!");
|
||||
define("EXTLAN_72", "has been deactivated");
|
||||
define("EXTLAN_73", "was not deactivated!");
|
||||
define("EXTLAN_74", "is a reserved field name and can not be used.");
|
||||
define("EXTLAN_75", "Error adding field to database.");
|
||||
|
||||
|
||||
//textbox
|
||||
define("EXTLAN_HELP_1", "<b><i>Parameters:</i></b><br />size - size of field<br />maxlength - max length of field<br /><br />class - css class of field<br />style - css style string<br /><br />regex - regex validation code<br />regexfail - validation fail text");
|
||||
//radio buttons
|
||||
define("EXTLAN_HELP_2", "This will be the radio buttons help text");
|
||||
define("EXTLAN_HELP_2", "Enter text for options in 'Values' box - one box per option. Add new boxes as needed");
|
||||
//dropdown
|
||||
define("EXTLAN_HELP_3", "This will be the dropdown help text");
|
||||
define("EXTLAN_HELP_3", "Enter text for options in 'Values' box - one box per option. Add new boxes as needed");
|
||||
//db field
|
||||
define("EXTLAN_HELP_4", "<b><i>Values:</i></b><br />There should be three values given ALWAYS:<br /><ol><li>dbtable</li><li>field containing id</li><li>field containing value</li></ol><br />");
|
||||
//textarea
|
||||
define("EXTLAN_HELP_5", "This will be the Textarea help text");
|
||||
define("EXTLAN_HELP_5", "Define an area for free-format text. (Set the size in the 'Field include text' box as required)");
|
||||
//integer
|
||||
define("EXTLAN_HELP_6", "This will be the Integer help text");
|
||||
define("EXTLAN_HELP_6", "Allow user to enter a numeric value");
|
||||
//date
|
||||
define("EXTLAN_HELP_7", "This will be the date help text");
|
||||
define("EXTLAN_HELP_7", "Require user to enter a date");
|
||||
// Language
|
||||
define("EXTLAN_HELP_8", "Allow user to select from installed languages");
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user