Vergleich inc/functions_post.php - 1.6.10 - 1.6.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 130Zeile 130
	{ // Used to show the # of the post
if($page > 1)
{

	{ // Used to show the # of the post
if($page > 1)
{

			if(!$mybb->settings['postsperpage'])

			if(!$mybb->settings['postsperpage'] || (int)$mybb->settings['postsperpage'] < 1)

			{

			{

				$mybb->settings['postperpage'] = 20;

				$mybb->settings['postsperpage'] = 20;

			}

$postcounter = $mybb->settings['postsperpage']*($page-1);

			}

$postcounter = $mybb->settings['postsperpage']*($page-1);

Zeile 346Zeile 346
			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 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']) && $post['uid'] != $mybb->user['uid'])

		if($post_type != 3 && $mybb->settings['enablereputation'] == 1 && $mybb->settings['postrep'] == 1 && $mybb->usergroup['cangivereputations'] == 1 && $usergroup['usereputationsystem'] == 1 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']) && $post['uid'] != $mybb->user['uid'])

		{
if(!$post['pid'])
{

		{
if(!$post['pid'])
{

Zeile 378Zeile 378
		$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 && ($mybb->settings['posrep'] || $mybb->settings['neurep'] || $mybb->settings['negrep']))

		if($post_type != 3 && $usergroup['usereputationsystem'] != 0 && $mybb->settings['enablereputation'] == 1)

		{
$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 411Zeile 411
	}
else
{ // Message was posted by a guest or an unknown user

	}
else
{ // Message was posted by a guest or an unknown user

		$post['username'] = $post['username'];

 
		$post['profilelink'] = format_name($post['username'], 1);

if($usergroup['usertitle'])

		$post['profilelink'] = format_name($post['username'], 1);

if($usergroup['usertitle'])

Zeile 463Zeile 462
	{
// Figure out if we need to show an "edited by" message
$post['editedmsg'] = '';

	{
// Figure out if we need to show an "edited by" message
$post['editedmsg'] = '';

		if($post['edituid'] != 0 && $post['edittime'] != 0 && $post['editusername'] != "" && ($mybb->settings['showeditedby'] != 0 && $usergroup['cancp'] == 0 || $mybb->settings['showeditedbyadmin'] != 0 && $usergroup['cancp'] == 1))

		if($post['edituid'] != 0 && $post['edittime'] != 0 && $post['editusername'] != "" && (($mybb->settings['showeditedby'] != 0 && $usergroup['cancp'] == 0) || ($mybb->settings['showeditedbyadmin'] != 0 && $usergroup['cancp'] == 1)))

		{
$post['editdate'] = my_date($mybb->settings['dateformat'], $post['edittime']);
$post['edittime'] = my_date($mybb->settings['timeformat'], $post['edittime']);

		{
$post['editdate'] = my_date($mybb->settings['dateformat'], $post['edittime']);
$post['edittime'] = my_date($mybb->settings['timeformat'], $post['edittime']);