chodzi o to ??
Kod:
##############################################################
## MOD Title: adminHtml
## MOD Author: slcut < phpbb@TimberFrog.com > (Alexey Trofimov) http://www.TimberFrog.com
## MOD Description: allow Admin to use any HTML/javascript tags in posts
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: <1 Minute
## Files To Edit: includes/functions_post.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## MOD adminHtml allows Admin to use any HTML|Javascript tags in Posts, without compromising security.
## This feature is useful for semi-permanent topics with Java and COM-objects such as games, chats, etc.
## Please keep in mind - newline ("\n") characters still will be replaced by </br>,
## so be careful when posting "<br>-sensitive" script.
##############################################################
## MOD History:
##
## 2004-11-14 - Version 1.0.0
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
function prepare_message($message, $html_on, $bbcode_on, $smile_on, $bbcode_uid = 0)
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// adminHtml MOD start
global $userdata;
// adminHtml MOD end
#
#-----[ FIND ]------------------------------------------
#
$tagallowed = false;
for($i = 0; $i < sizeof($allowed_html_tags); $i++)
{
$match_tag = trim($allowed_html_tags[$i]);
if ( preg_match('/^<\/?' . $match_tag . '(?!(\s*)style(\s*)\\=)/i', $hold_string) )
{
$tagallowed = true;
}
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
// adminHtml MOD start
if($userdata['user_level'] == ADMIN)
{
$tagallowed = true; //never has been tested!!!!
}
// adminHtml MOD end
#
#-----[ FIND ]------------------------------------------
#
$message = preg_replace($html_entities_match, $html_entities_replace, $message);
#
#-----[ REPLACE WITH ]------------------------------------------
#
//adminHtml MOD - commented original
$message = preg_replace($html_entities_match, $html_entities_replace, $message);
// adminHtml MOD start
if($userdata['user_level'] == ADMIN)
{
//do nothing
}
else
{
$message = preg_replace($html_entities_match, $html_entities_replace, $message);
}
// adminHtml MOD end
#
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Autor postu otrzymał pochwałę
Zapraszam na: http://www.indianie.info
sorki za bledy, dyslekcja, dysortografia
Jeśli szukasz pomocy w temacie phpbb zapraszam do poczytania: http://www.phpbb2.pl/forum/viewtopic.php?t=17536