Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* Website: http://www.mybboard.com * License: http://www.mybboard.com/eula.html *
|
* $Id: portal.php 2259 2006-09-26 06:54:07Z chris $
| * $Id: portal.php 2378 2006-10-30 15:06:39Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 416 | Zeile 416 |
---|
eval("\$numcomments = \"".$templates->get("portal_announcement_numcomments_no")."\";"); $lastcomment = ''; }
|
eval("\$numcomments = \"".$templates->get("portal_announcement_numcomments_no")."\";"); $lastcomment = ''; }
|
| $plugins->run_hooks("portal_announcement");
$parser_options = array( "allow_html" => $forum[$announcement['fid']]['allowhtml'], "allow_mycode" => $forum[$announcement['fid']]['allowmycode'], "allow_smilies" => $forum[$announcement['fid']]['allowsmilies'], "allow_imgcode" => $forum[$announcement['fid']]['allowimgcode'] ); if($announcement['smilieoff'] == "yes") { $parser_options['allow_smilies'] = "no"; }
$message = $parser->parse_message($announcement['message'], $parser_options);
|
if(is_array($attachcache[$announcement['pid']])) { // This post has 1 or more attachments $validationcount = 0;
| if(is_array($attachcache[$announcement['pid']])) { // This post has 1 or more attachments $validationcount = 0;
|
Zeile 437 | Zeile 453 |
---|
} $attachment['icon'] = get_attachment_icon($ext); // Support for [attachment=id] code
|
} $attachment['icon'] = get_attachment_icon($ext); // Support for [attachment=id] code
|
if(stripos($announcement['message'], "[attachment=".$attachment['aid']."]") !== false) {
| if(stripos($message, "[attachment=".$attachment['aid']."]") !== false) {
|
if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != '') { // We have a thumbnail to show (and its not the "SMALL" enough image eval("\$attbit = \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
|
if($attachment['thumbnail'] != "SMALL" && $attachment['thumbnail'] != '') { // We have a thumbnail to show (and its not the "SMALL" enough image eval("\$attbit = \"".$templates->get("postbit_attachments_thumbnails_thumbnail")."\";");
|
}
| }
|
elseif($attachment['thumbnail'] == "SMALL" && $forumpermissions[$announcement['fid']]['candlattachments'] == "yes")
|
elseif($attachment['thumbnail'] == "SMALL" && $forumpermissions[$announcement['fid']]['candlattachments'] == "yes")
|
{
| {
|
// Image is small enough to show - no thumbnail eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";");
|
// Image is small enough to show - no thumbnail eval("\$attbit = \"".$templates->get("postbit_attachments_images_image")."\";");
|
} else {
| } else {
|
// Show standard link to attachment eval("\$attbit = \"".$templates->get("postbit_attachments_attachment")."\";"); }
|
// Show standard link to attachment eval("\$attbit = \"".$templates->get("postbit_attachments_attachment")."\";"); }
|
$announcement['message'] = preg_replace("#\[attachment=".$attachment['aid']."]#si", $attbit, $announcement['message']);
| $message = preg_replace("#\[attachment=".$attachment['aid']."]#si", $attbit, $message);
|
} else {
| } else {
|
Zeile 484 | Zeile 500 |
---|
} } if($post['thumblist'])
|
} } if($post['thumblist'])
|
{
| {
|
eval("\$post['attachedthumbs'] = \"".$templates->get("postbit_attachments_thumbnails")."\";");
|
eval("\$post['attachedthumbs'] = \"".$templates->get("postbit_attachments_thumbnails")."\";");
|
}
| }
|
if($post['imagelist']) { eval("\$post['attachedimages'] = \"".$templates->get("postbit_attachments_images")."\";");
|
if($post['imagelist']) { eval("\$post['attachedimages'] = \"".$templates->get("postbit_attachments_images")."\";");
|
}
| }
|
if($post['attachmentlist'] || $post['thumblist'] || $post['imagelist']) { eval("\$post['attachments'] = \"".$templates->get("postbit_attachments")."\";"); } }
|
if($post['attachmentlist'] || $post['thumblist'] || $post['imagelist']) { eval("\$post['attachments'] = \"".$templates->get("postbit_attachments")."\";"); } }
|
$plugins->run_hooks("portal_announcement");
$parser_options = array( "allow_html" => $forum[$announcement['fid']]['allow_html'], "allow_mycode" => $forum[$announcement['fid']]['allow_mycode'], "allow_smilies" => $forum[$announcement['fid']]['allowsmilies'], "allow_imgcode" => $forum[$announcement['fid']]['allowimgcode'] ); if($announcement['smilieoff'] == "yes") { $parser_options['allow_smilies'] = "no"; }
$message = $parser->parse_message($announcement['message'], $parser_options);
| |
eval("\$announcements .= \"".$templates->get("portal_announcement")."\";"); unset($post);
| eval("\$announcements .= \"".$templates->get("portal_announcement")."\";"); unset($post);
|