mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
More usersettings template options.
This commit is contained in:
@@ -96,6 +96,12 @@ $USEREXTENDED_FIELD = "
|
|||||||
";
|
";
|
||||||
$REQUIRED_FIELD = "{FIELDNAME}<span class='required'> *</span>";
|
$REQUIRED_FIELD = "{FIELDNAME}<span class='required'> *</span>";
|
||||||
|
|
||||||
|
// After Saving has occurred.
|
||||||
|
$USERSETTINGS_MESSAGE = "<div style='text-align:center'>{MESSAGE}</div>";
|
||||||
|
$USERSETTINGS_MESSAGE_CAPTION = LAN_OK;
|
||||||
|
|
||||||
|
$USERSETTINGS_EDIT_CAPTION = LAN_USET_39; // 'Update User Settings'
|
||||||
|
|
||||||
$USERSETTINGS_EDIT = "
|
$USERSETTINGS_EDIT = "
|
||||||
<div style='text-align:center'>
|
<div style='text-align:center'>
|
||||||
<table style='".USER_WIDTH."' class='fborder adminform'>
|
<table style='".USER_WIDTH."' class='fborder adminform'>
|
||||||
|
@@ -540,8 +540,19 @@ if ($dataToSave && !$promptPassword)
|
|||||||
{
|
{
|
||||||
header('Location: index.php');
|
header('Location: index.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(isset($USERSETTINGS_MESSAGE))
|
||||||
|
{
|
||||||
|
$message = str_replace("{MESSAGE}",$message,$USERSETTINGS_MESSAGE);
|
||||||
|
}
|
||||||
|
else // backwards compatible
|
||||||
|
{
|
||||||
$message = "<div style='text-align:center'>".$message.'</div>';
|
$message = "<div style='text-align:center'>".$message.'</div>';
|
||||||
$caption = LAN_OK;
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$caption = (isset($USERSETTINGS_MESSAGE_CAPTION)) ? $USERSETTINGS_MESSAGE_CAPTION : LAN_OK;
|
||||||
|
|
||||||
} // End - if (!$error)...
|
} // End - if (!$error)...
|
||||||
|
|
||||||
|
|
||||||
@@ -661,24 +672,25 @@ if (e_QUERY == "update")
|
|||||||
$text .= "<div class='fborder' style='text-align:center'><br />".str_replace("*", "<span class='required'>*</span>", LAN_USET_9)."<br />".LAN_USET_10."<br /><br /></div>";
|
$text .= "<div class='fborder' style='text-align:center'><br />".str_replace("*", "<span class='required'>*</span>", LAN_USET_9)."<br />".LAN_USET_10."<br /><br /></div>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= $tp->parseTemplate($USERSETTINGS_EDIT, true, $usersettings_shortcodes);
|
$text .= $tp->parseTemplate($USERSETTINGS_EDIT, TRUE, $usersettings_shortcodes);
|
||||||
$text .= "<div>";
|
|
||||||
|
|
||||||
$text .= "
|
|
||||||
<input type='hidden' name='_uid' value='{$uuid}' />
|
$text .= "<div><input type='hidden' name='_uid' value='{$uuid}' /></div>
|
||||||
</div>
|
|
||||||
</form>
|
</form>
|
||||||
";
|
";
|
||||||
|
|
||||||
$ns->tablerender(LAN_USET_39, $text);
|
$caption = (isset($USERSETTINGS_EDIT_CAPTION)) ? $USERSETTINGS_EDIT_CAPTION : LAN_USET_39; // 'Update User Settings'
|
||||||
if(!$adminEdit)
|
|
||||||
{
|
$ns->tablerender($caption, $text);
|
||||||
|
|
||||||
|
if(!$adminEdit)
|
||||||
|
{
|
||||||
require_once (FOOTERF);
|
require_once (FOOTERF);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
require_once(e_ADMIN."footer.php");
|
require_once(e_ADMIN."footer.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user