/** * Retrieve this users realname and username combined * * @return string "Real Name (username)" */ public function getNameWithUsername() { if ($this->isDeleted()) { return __('No such user'); } if ($this->isOpenIdLocked()) { return $this->_buddyname; } switch (framework\Settings::getUserDisplaynameFormat()) { case framework\Settings::USER_DISPLAYNAME_FORMAT_REALNAME: return $this->_realname ? $this->_realname . ' (' . $this->_username . ')' : $this->_username; case framework\Settings::USER_DISPLAYNAME_FORMAT_BUDDY: default: return $this->_buddyname ? $this->_buddyname . ' (' . $this->_username . ')' : ($this->_realname ? $this->_realname . ' (' . $this->_username . ')' : $this->_username); } }
disabled<?php } ?> > <option value=1<?php if (\thebuggenie\core\framework\Settings::getUserDisplaynameFormat() == 1) { ?> selected<?php } ?> ><?php echo __('Use user\'s real name instead of buddy name'); ?> </option> <option value=0<?php if (\thebuggenie\core\framework\Settings::getUserDisplaynameFormat() == 0) { ?> selected<?php } ?> ><?php echo __('Prefer buddy name instead of real name.'); ?> </option> </select> <?php echo config_explanation(__('Change here how user\'s name is displayed.')); ?> </td> </tr> <tr>