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: functions_post.php 5459 2011-05-10 10:47:56Z Tomm $
| * $Id: functions_post.php 5651 2011-11-14 08:45:52Z Tomm $
|
*/
/**
| */
/**
|
Zeile 279 | Zeile 279 |
---|
$post['userstars'] .= "<br />"; }
|
$post['userstars'] .= "<br />"; }
|
| $postnum = $post['postnum'];
|
$post['postnum'] = my_number_format($post['postnum']);
// Determine the status to show for the user (Online/Offline/Away)
| $post['postnum'] = my_number_format($post['postnum']);
// Determine the status to show for the user (Online/Offline/Away)
|
Zeile 334 | Zeile 335 |
---|
eval("\$post['button_pm'] = \"".$templates->get("postbit_pm")."\";"); }
|
eval("\$post['button_pm'] = \"".$templates->get("postbit_pm")."\";"); }
|
if($mybb->settings['enablereputation'] == 1 && $mybb->settings['postrep'] == 1 && $mybb->usergroup['cangivereputations'] == 1 && $usergroup['usereputationsystem'] == 1)
| if($mybb->settings['enablereputation'] == 1 && $mybb->settings['postrep'] == 1 && $mybb->usergroup['cangivereputations'] == 1 && $usergroup['usereputationsystem'] == 1 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']))
|
{ if(!$post['pid']) {
| { if(!$post['pid']) {
|
Zeile 366 | Zeile 367 |
---|
$post['userregdate'] = my_date($mybb->settings['regdateformat'], $post['regdate']);
// Work out the reputation this user has (only show if not announcement)
|
$post['userregdate'] = my_date($mybb->settings['regdateformat'], $post['regdate']);
// Work out the reputation this user has (only show if not announcement)
|
if($post_type != 3 && $usergroup['usereputationsystem'] != 0 && $mybb->settings['enablereputation'] == 1)
| if($post_type != 3 && $usergroup['usereputationsystem'] != 0 && $mybb->settings['enablereputation'] == 1 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']))
|
{ $post['userreputation'] = get_reputation($post['reputation'], $post['uid']); eval("\$post['replink'] = \"".$templates->get("postbit_reputation")."\";");
| { $post['userreputation'] = get_reputation($post['reputation'], $post['uid']); eval("\$post['replink'] = \"".$templates->get("postbit_reputation")."\";");
|
Zeile 571 | Zeile 572 |
---|
get_post_attachments($id, $post);
|
get_post_attachments($id, $post);
|
if($post['includesig'] != 0 && $post['username'] && $post['signature'] != "" && ($mybb->user['uid'] == 0 || $mybb->user['showsigs'] != 0) && ($post['suspendsignature'] == 0 || $post['suspendsignature'] == 1 && $post['suspendsigtime'] != 0 && $post['suspendsigtime'] < TIME_NOW))
| if($post['includesig'] != 0 && $post['username'] && $post['signature'] != "" && ($mybb->user['uid'] == 0 || $mybb->user['showsigs'] != 0) && ($post['suspendsignature'] == 0 || $post['suspendsignature'] == 1 && $post['suspendsigtime'] != 0 && $post['suspendsigtime'] < TIME_NOW) && $usergroup['canusesig'] == 1 && ($usergroup['canusesigxposts'] == 0 || $usergroup['canusesigxposts'] > 0 && $postnum > $usergroup['canusesigxposts']))
|
{ $sig_parser = array( "allow_html" => $mybb->settings['sightml'],
| { $sig_parser = array( "allow_html" => $mybb->settings['sightml'],
|
Zeile 580 | Zeile 581 |
---|
"allow_imgcode" => $mybb->settings['sigimgcode'], "me_username" => $post['username'] );
|
"allow_imgcode" => $mybb->settings['sigimgcode'], "me_username" => $post['username'] );
|
| if($usergroup['signofollow']) { $sig_parser['nofollow_on'] = 1; }
|
$post['signature'] = $parser->parse_message($post['signature'], $sig_parser); eval("\$post['signature'] = \"".$templates->get("postbit_signature")."\";");
| $post['signature'] = $parser->parse_message($post['signature'], $sig_parser); eval("\$post['signature'] = \"".$templates->get("postbit_signature")."\";");
|
Zeile 608 | Zeile 614 |
---|
switch($post_type) { case 1: // Message preview
|
switch($post_type) { case 1: // Message preview
|
$plugins->run_hooks_by_ref("postbit_prev", $post);
| $post = $plugins->run_hooks("postbit_prev", $post);
|
break; case 2: // Private message
|
break; case 2: // Private message
|
$plugins->run_hooks_by_ref("postbit_pm", $post);
| $post = $plugins->run_hooks("postbit_pm", $post);
|
break; case 3: // Announcement
|
break; case 3: // Announcement
|
$plugins->run_hooks_by_ref("postbit_announcement", $post);
| $post = $plugins->run_hooks("postbit_announcement", $post);
|
break; default: // Regular post
|
break; default: // Regular post
|
$plugins->run_hooks_by_ref("postbit", $post);
| $post = $plugins->run_hooks("postbit", $post);
|
// Is this author on the ignore list of the current user? Hide this post if(is_array($ignored_users) && $post['uid'] != 0 && $ignored_users[$post['uid']] == 1)
| // Is this author on the ignore list of the current user? Hide this post if(is_array($ignored_users) && $post['uid'] != 0 && $ignored_users[$post['uid']] == 1)
|