Admin HTML in Posts
James Andrews
http://www.time-clan.com
1.1 for Yabb 2.3 modified by multikon
Allows an Admin to post HTML code into any post using [html] ... [/html].
Sources\Display.pl
$posthandelblock =~ s/({|<)yabb quote(}|>)/$template_quote/g;
### ADMIN HTML ###
if(${$uid.$musername}{'position'} eq "Administrator") {
$message =~ s~\[html\]\s*(.+?)\s*\[/html\]~&AdminHTML($1)~eisg;
}
### ADMIN HTML END ###
sub Display {
### ADMIN HTML ###
sub AdminHTML{
$html = $_[0];
$html =~ s/"/"/g;
$html =~ s/ / /g;
$html =~ s/<//g;
$html =~ s/|/\|/g;
$html =~ s/&/&/g;
$html =~ s/
//g;
$html =~ s/
//g;
$html =~ s/
//g;
return $html;
}
### ADMIN HTML END ###
Admin\ModList.pl
### END BOARDMOD ANCHOR ###
$admin_html = "Admin HTML in Posts|James Andrews|Allows admins to post html code using [html] ... [/html]|1.0|19-07-2006";
push (@installed_mods, $admin_html);