Moderator: Moderators


}
.popuppm-new a:hover {
color: #666;
text-decoration: underline;
}
/* Yellow Card Mod - Changes for CA Styles */
.img-ban a img { background-color: #990000; }
.img-ban a:hover img { background-color: #FF0000; }
.img-ban a:active img { background-color: #990000; }
.img-warn a img { background-color: #FF9900; }
.img-warn a:hover img { background-color: #FFFF00; }
.img-warn a:active img { background-color: #FF9900; }
.img-clear a img { background-color: #FFCC33; }
.img-clear a:hover img { background-color: #FF7E00; }
.img-clear a:active img { background-color: #FFCC33; }
.img-report a img { background-color: #000099; }
.img-report a:hover img { background-color: #0000FF; }
.img-report a:active img { background-color: #000099; }
.img-green a img { background-color: #009900; }
.img-green a:hover img { background-color: #00FF00; }
.img-green a:active img { background-color: #009900; }

// Start Yellow Card Changes for phpBB Styles
$style_used = explode('/', $template->files['body']);
$allowed_styles = array(
'Aeolus',
'Artemis',
'aphrodite_mc',
'MorpheusX'
);
$lang['Send_message'] = 'Click %sHere%s to write a message to the moderators or <br />';
$lang['Send_PM_user'] = 'Click %sHere%s to write a PM to the user or';
$lang['Link_to_post'] = 'Click %sHere%s to go to the reported post <br/>--------------------------------<br/><br/>';
#
#-----[ OPEN ]-------------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]-------------------------------------------------------
#
if($message_compiled === false)
{
#
#-----[ BEFORE, ADD ]------------------------------------------------
#
if( $forum_id == $board_config['report_forum'] )
{
$xs_bbcode->allow_html = true;
$message_compiled = false;
}
#
#-----[ FIND ]-------------------------------------------------------
#
$xs_bbcode->allow_smilies = $board_config['allow_smilies'] && $postrow[$i]['user_allowsmile'] ? true : false;
$GLOBALS['code_post_id'] = $postrow[$i]['post_id'];
$message = $xs_bbcode->parse($message, $bbcode_uid);
$GLOBALS['code_post_id'] = 0;
// update database
$sql = "UPDATE " . POSTS_TEXT_TABLE . " SET post_text_compiled='" . addslashes($message) . "' WHERE post_id='" . $postrow[$i]['post_id'] . "'";
if( !($db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Unable to update compiled text for this post: ' . $postrow[$i]['post_id'], '', __LINE__, __FILE__, $sql);
}
#
#-----[ AFTER, ADD ]-------------------------------------------------
#
if( $xs_bbcode->allow_html )
{
$xs_bbcode->allow_html = false;
}
#
#-----[ SAVE/CLOSE ALL FILES ]---------------------------------------
#
# EoM

$lang['Link_to_post'] = "Click %sHere%s to go to the reported post \n--------------------------------\n\n";
//
// User default entry point
// }
else
{
$subject = '';
$lock_subject='';
}
if ( $mode == 'newtopic' )
#
#-----[ FIND ]------------------------------------------------
#
// User default entry point
//
#
#-----[ AFTER, ADD ]------------------------------------------
#
$postreport=(isset($HTTP_GET_VARS['postreport']))? intval( $HTTP_GET_VARS['postreport']) : 0;
if ($postreport)
{
$sql = 'SELECT topic_id FROM '.POSTS_TABLE.' WHERE post_id="'.$postreport.'"';
if( !($result = $db->sql_query($sql) ))
message_die(GENERAL_ERROR, "Couldn't get post subject information");
$post_details = $db->sql_fetchrow($result);
$post_topic_id=$post_details['topic_id'];
$sql = 'SELECT pt.post_subject FROM '.POSTS_TEXT_TABLE.' pt, '.POSTS_TABLE.' p WHERE p.topic_id="'.$post_topic_id.'" AND pt.post_id=p.post_id ORDER BY p.post_time ASC LIMIT 1';
if( !($result = $db->sql_query($sql) ))
message_die(GENERAL_ERROR, "Couldn't get topic subject information".$sql);
$post_details = $db->sql_fetchrow($result);
$subject='('.$postreport.')'.$post_details['post_subject'];
$lock_subject=$postreport;
} else
{
$subject = '';
$lock_subject='';
}

Return to How to mod some styles
Users browsing this forum: Google [Bot] and 0 guests