/** * Parse the data into the template */ private function parse() { // have the settings been saved? if ($this->URL->getParameter('sent') == 'true') { // show success message $this->tpl->assign('updateSettingsSuccess', true); } // parse the form $this->frm->parse($this->tpl); // display name changes $this->tpl->assign('maxDisplayNameChanges', FrontendProfilesModel::MAX_DISPLAY_NAME_CHANGES); $this->tpl->assign('displayNameChangesLeft', FrontendProfilesModel::MAX_DISPLAY_NAME_CHANGES - $this->profile->getSetting('display_name_changes')); }