1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

User-settings shortcode and template cleanup. avatarpicker() function added to form handler. Other minor fixes.

This commit is contained in:
CaMer0n
2012-06-19 09:08:41 +00:00
parent 312ec063ba
commit aa4e5c0ee7
17 changed files with 705 additions and 519 deletions

View File

@@ -59,6 +59,8 @@ require_once (e_HANDLER.'ren_help.php');
include_once (e107::coreTemplatePath('usersettings')); //correct way to load a core template.
include_once (e_CORE.'shortcodes/batch/usersettings_shortcodes.php');
$usersettings_shortcodes = e107::getScBatch('usersettings');
e107::js('inline',"
function addtext_us(sc)
{
@@ -694,6 +696,8 @@ 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>";
}
// $sc->setParserVars($val);
e107::getScBatch('usersettings')->setVars($curVal);
$text .= $tp->parseTemplate($USERSETTINGS_EDIT, TRUE, $usersettings_shortcodes);