Código: Seleccionar todo
-----[ FIND ]------------------------------------------------
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
-----[ IN-LINE FIND ]----------------------------------------
)
-----[ IN-LINE BEFORE, ADD ]---------------------------------
&& !$is_auth['auth_globalannounce']
Código: Seleccionar todo
$topic_type = ( $topic_type != $post_data['topic_type'] && !$is_auth['auth_sticky'] && !$is_auth['auth_announce'] ) ? $post_data['topic_type'] : $topic_type;
//-- mod : post icon -------------------------------------------------------------------------------
// here we added
// , post_icon
//-- modify
submit_post($mode, $post_data, $return_message, $return_meta, $forum_id, $topic_id, $post_id, $poll_id, $topic_type, $bbcode_on, $html_on, $smilies_on, $attach_sig, $bbcode_uid, str_replace("\'", "''", $username), str_replace("\'", "''", $subject), str_replace("\'", "''", $message), str_replace("\'", "''", $poll_title), $poll_options, $poll_length, $post_icon);
//-- fin mod : post icon ---------------------------------------------------------------------------
}
a continuacií?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?²n de&& !$is_auth['auth_globalannounce']
Cuando probí?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?Â?í?¨ el foro, me dio error. Puso algo asi como parse error en posting.php en la linea 570. Me fije y era la susodicha linea que mencione anteriormente. Lo que hice a continuacion fue borrar el$post_data['topic_type'] : $topic_type;
y listo. Volvi a probar el foro y me anduvo bien. La duda es si podria pasar algo por no haber incluido esto. Lo he probado al foro varias veces y de distintos lados y no tuve problemas, por lo menos por ahora.&& !$is_auth['auth_globalannounce']
Gracias.
_Salu2_
