1. With this mod, all of your phpbb visitors can see the normal HTML-formatted text in posts, instead text&tags (for example text&tags:
Code: Select all
<b>Hi!</b> With this <i>mod</i>...
This features independent of phpbb settings.
3. Also, you may change the code in this mod - and all Administrators in your phpbb, receive the ability, like user in p.2
If you want this - simply replace the
Code: Select all
$userdata['username'] != "SomeUserName"
Code: Select all
$userdata['user_level'] != 1
***
and replace the
Code: Select all
$userdata['username'] == "SomeUserName"
with
Code: Select all
$userdata['user_level'] == 1
***
Code: Select all
##############################################################
## MOD Title: RWinner's HTML Free :-)
## MOD Author: RWinner < winner_at_2winners_dot_com > (Roman) www.2winners.com
## MOD Description: All users can view html-formatted posts,
## and one user of your choice, may posted a posts with all html-tags
## MOD Version: 0.0.1
##
## Installation Level: (Easy)
## Installation Time: ~ 3 - 5 Minutes
## Files To Edit: viewtopic.php
## 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. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes: You may change the user name "SomeUserName"
## in the text below (in two places) at your will
##
##############################################################
## MOD History:
##
## 2006-01-20 - Version 0.0.1 - it's working on my forum =)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
global $board_config, $html_entities_match, $html_entities_replace;
#
#-----[ REPLACE WITH ]------------------------------------------
#
global $board_config, $html_entities_match, $html_entities_replace, $userdata;
#
#-----[ FIND ]------------------------------------------
#
$message = trim($message);
if ($html_on)
#
#-----[ REPLACE WITH ]------------------------------------------
#
$message = trim($message);
if ($html_on && ($userdata['username'] != "SomeUserName"))
#
#-----[ FIND ]------------------------------------------
#
else
{
$message = preg_replace($html_entities_match, $html_entities_replace, $message);
#
#-----[ BEFORE, ADD ]------------------------------------------
#
/*RWinner's HTML Free begin*/
elseif($userdata['username'] == "SomeUserName"){
$message = trim($message);
}
/*RWinner's HTML Free end*/
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
if ( $postrow[$i]['enable_html'] )
{
$message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message);
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
/* RWinner's HTML Free begin
if ( $postrow[$i]['enable_html'] )
{
$message = preg_replace('#(<)([\/]?.*?)(>)#is', "<\\2>", $message);
}
RWinner's HTML Free end */
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
I use this mod with [2.0.6] FIND - Forum Integrated News Delivery - Input - http://www.phpbb.com/phpBB/viewtopic.php?t=130271 - where SomeUserName - the user name of my RSS-bot. It is very comfortably for me
Of course, you may have any number of user, with Full-HTML-posting-ability If it desired - write it in comments below.
Good luck!
P.S. Sorry for my English