Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: reputation.php 5750 2012-03-09 12:21:10Z Tomm $
| * $Id$
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 444 | Zeile 444 |
---|
// Otherwise, show a listing of reputations for the given user. if(!$mybb->input['action']) {
|
// Otherwise, show a listing of reputations for the given user. if(!$mybb->input['action']) {
|
if($user_permissions['usereputationsystem'] != 1) { error($lang->reputations_disabled_group); }
| |
if($mybb->usergroup['canviewprofiles'] == 0) { // Reputation page is a part of a profile error_no_permission();
|
if($mybb->usergroup['canviewprofiles'] == 0) { // Reputation page is a part of a profile error_no_permission();
|
}
| }
// Fetch display group properties. $displaygroupfields = array('title', 'description', 'namestyle', 'usertitle', 'stars', 'starimage', 'image', 'usereputationsystem'); $display_group = usergroup_displaygroup($user['displaygroup']);
if($user_permissions['usereputationsystem'] != 1 || $display_group['title'] && $display_group['usereputationsystem'] == 0) { // Group has reputation disabled or user has a display group that has reputation disabled error($lang->reputations_disabled_group); }
|
$lang->nav_profile = $lang->sprintf($lang->nav_profile, $user['username']);
|
$lang->nav_profile = $lang->sprintf($lang->nav_profile, $user['username']);
|
$lang->reputation_report = $lang->sprintf($lang->reputation_report, $user['username']);
| $lang->reputation_report = $lang->sprintf($lang->reputation_report, $user['username']);
|
// Format the user name using the group username style $username = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
| // Format the user name using the group username style $username = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
|
Zeile 466 | Zeile 471 |
---|
{ $user['displaygroup'] = $user['usergroup']; }
|
{ $user['displaygroup'] = $user['usergroup']; }
|
// Fetch display group properties. $display_group = usergroup_displaygroup($user['displaygroup']);
| |
// This user has a custom user title if(trim($user['usertitle']) != '')
| // This user has a custom user title if(trim($user['usertitle']) != '')
|
Zeile 797 | Zeile 799 |
---|
"allow_html" => 0, "allow_mycode" => 0, "allow_smilies" => 1,
|
"allow_html" => 0, "allow_mycode" => 0, "allow_smilies" => 1,
|
"allow_imgcode" => 0
| "allow_imgcode" => 0, "filter_badwords" => 1
|
);
$reputation_vote['comments'] = $parser->parse_message($reputation_vote['comments'], $reputation_parser);
| );
$reputation_vote['comments'] = $parser->parse_message($reputation_vote['comments'], $reputation_parser);
|