Vergleich inc/functions_post.php - 1.8.29 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 195Zeile 195
	// Fetch display group data.
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");


	// Fetch display group data.
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");


	if(!$post['displaygroup'])

	if(empty($post['displaygroup']))

	{
$post['displaygroup'] = $post['usergroup'];

	{
$post['displaygroup'] = $post['usergroup'];

 
	}

// Set to hardcoded Guest usergroup ID (1) for guest author or deleted user.
if(empty($post['usergroup']))
{
$post['usergroup'] = 1;
}
if(empty($post['displaygroup']))
{
$post['displaygroup'] = 1;

	}

$displaygroup = usergroup_displaygroup($post['displaygroup']);
if(is_array($displaygroup))
{
$usergroup = array_merge($usergroup, $displaygroup);

	}

$displaygroup = usergroup_displaygroup($post['displaygroup']);
if(is_array($displaygroup))
{
$usergroup = array_merge($usergroup, $displaygroup);

	}

	}


if(!is_array($titlescache))
{


if(!is_array($titlescache))
{

Zeile 239Zeile 249
		eval("\$post['groupimage'] = \"".$templates->get("postbit_groupimage")."\";");

if($mybb->settings['postlayout'] == "classic")

		eval("\$post['groupimage'] = \"".$templates->get("postbit_groupimage")."\";");

if($mybb->settings['postlayout'] == "classic")

		{

		{

			$post['groupimage'] .= "<br />";
}
}

			$post['groupimage'] .= "<br />";
}
}





	if($post['userusername'])
{
// This post was made by a registered user

	if($post['userusername'])
{
// This post was made by a registered user

Zeile 255Zeile 265
		if(trim($post['usertitle']) != "")
{
$hascustomtitle = 1;

		if(trim($post['usertitle']) != "")
{
$hascustomtitle = 1;

		}


		}


		if($usergroup['usertitle'] != "" && !$hascustomtitle)
{
$post['usertitle'] = $usergroup['usertitle'];

		if($usergroup['usertitle'] != "" && !$hascustomtitle)
{
$post['usertitle'] = $usergroup['usertitle'];

Zeile 275Zeile 285
					$post['stars'] = $titleinfo['stars'];
$post['starimage'] = $titleinfo['starimage'];
break;

					$post['stars'] = $titleinfo['stars'];
$post['starimage'] = $titleinfo['starimage'];
break;

				}
}
}

$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);

				}
}
}

$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);


if($usergroup['stars'])
{


if($usergroup['stars'])
{

Zeile 348Zeile 358
		$post['button_rep'] = '';
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'] && (!isset($post['visible']) || $post['visible'] == 1) && (!isset($thread['visible']) || $thread['visible'] == 1))
{

		$post['button_rep'] = '';
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'] && (!isset($post['visible']) || $post['visible'] == 1) && (!isset($thread['visible']) || $thread['visible'] == 1))
{

			if(!$post['pid'])

			if(empty($post['pid']))

			{
$post['pid'] = 0;
}

			{
$post['pid'] = 0;
}

Zeile 360Zeile 370
		{
$post['website'] = htmlspecialchars_uni($post['website']);
eval("\$post['button_www'] = \"".$templates->get("postbit_www")."\";");

		{
$post['website'] = htmlspecialchars_uni($post['website']);
eval("\$post['button_www'] = \"".$templates->get("postbit_www")."\";");

		}

		}

		else
{
$post['button_www'] = "";

		else
{
$post['button_www'] = "";

Zeile 521Zeile 531
		}

$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);

		}

$post['usertitle'] = htmlspecialchars_uni($post['usertitle']);

 
		$post['userstars'] = '';
$post['useravatar'] = '';


$usergroup['title'] = $lang->na;



$usergroup['title'] = $lang->na;


Zeile 772Zeile 784
	$post['poststatus'] = '';
if(!$post_type && $post['visible'] != 1)
{

	$post['poststatus'] = '';
if(!$post_type && $post['visible'] != 1)
{

 
		$status_type = '';

		if(is_moderator($fid, "canviewdeleted") && $postcounter != 1 && $post['visible'] == -1)
{
$status_type = $lang->postbit_post_deleted;

		if(is_moderator($fid, "canviewdeleted") && $postcounter != 1 && $post['visible'] == -1)
{
$status_type = $lang->postbit_post_deleted;

Zeile 985Zeile 998

if(!$attachment['dateuploaded'])
{


if(!$attachment['dateuploaded'])
{

					$attachment['dateuploaded'] = $attachment['dateline'];

					$attachment['dateuploaded'] = $post['dateline'];

				}
$attachdate = my_date('normal', $attachment['dateuploaded']);
// Support for [attachment=id] code

				}
$attachdate = my_date('normal', $attachment['dateuploaded']);
// Support for [attachment=id] code

Zeile 1018Zeile 1031
						eval("\$post['thumblist'] .= \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
if($tcount == 5)
{

						eval("\$post['thumblist'] .= \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
if($tcount == 5)
{

							$thumblist .= "<br />";

							$post['thumblist'] .= "<br />";

							$tcount = 0;
}
++$tcount;

							$tcount = 0;
}
++$tcount;

Zeile 1034Zeile 1047
							eval("\$post['thumblist'] .= \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
if($tcount == 5)
{

							eval("\$post['thumblist'] .= \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
if($tcount == 5)
{

								$thumblist .= "<br />";

								$post['thumblist'] .= "<br />";

								$tcount = 0;
}
++$tcount;

								$tcount = 0;
}
++$tcount;