Page Index Toggle Pages: 1 ... 5 6 [7]  Send TopicPrint
Very Hot Topic (More than 25 Replies) Enable HTML v1.4 (Read 32161 times)
Will
Guest


Re: Enable HTML v1.4
Reply #90 - Oct 27th, 2005 at 10:22pm
Print Post  
Quote:
The news mod does not support the EnableHTML mod by default. You'll have todo some modifications. Open News.pl and look for<br>
<table border="0"><tr><td bgcolor="orange" style="font-size:10px; color:black;">if ($enable_ubbc) {
&nbsp;&nbsp;$displayname = $tname;
&nbsp;&nbsp;require "$sourcedir/YaBBC.pl";
&nbsp;&nbsp;&DoUBBC;
}</td></tr></table>
replace it with<br>
<table border="0"><tr><td bgcolor="orange" style="font-size:10px; color:black;">### Begin Enable HTML Mod
if ($message =~ /\#&#101;nable_html/isg) {
&nbsp;&nbsp;$html_username = $tusername;
&nbsp;&nbsp;$message_backup = $message; # since $message is no local variable, it often gets overwritten accidently somehwere (couldn't find out where)
&nbsp;&nbsp;$enable_html = HTML_allow($html_username);
&nbsp;&nbsp;$message = $message_backup;
&nbsp;&nbsp;if ($enable_html == 1) {
&nbsp;&nbsp;&nbsp;&nbsp;$message =~ s/\#&#101;nable_html//isg;
&nbsp;&nbsp;&nbsp;&nbsp;$message =~ s/&lt;br&gt;/\n/ig;
&nbsp;&nbsp;&nbsp;&nbsp;&FromHTML($message);
&nbsp;&nbsp;}
} else { $enable_html = 0; }<br>

if ($enable_html != 1 && $enable_ubbc) {
&nbsp;&nbsp;$displayname = $tname;
&nbsp;&nbsp;require "$sourcedir/YaBBC.pl";
&nbsp;&nbsp;&DoUBBC;
}
### End Enable HTML Mod</td></tr></table>
Also make sure to have $only_first_paragraph and $max_number_of_words set to 0 to prevent the html from beeing cut off.
#enable_html


Will that code work with carsten member guestbook mod
?

http://www.boardmod.org/mods.php?dl=645&filename=MemberGuests_136_sp131.zip

or  not ?
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Enable HTML v1.4
Reply #91 - Oct 27th, 2005 at 10:31pm
Print Post  
No, it will not work. You'd need a completely different set of instructions.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Will
Guest


Re: Enable HTML v1.4
Reply #92 - Oct 27th, 2005 at 10:38pm
Print Post  
Quote:
No, it will not work. You'd need a completely different set of instructions.



Any suggestions ? or can you point me to what code should i change? i know very lil about perl
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Enable HTML v1.4
Reply #93 - Oct 28th, 2005 at 3:29pm
Print Post  
Sorry, I have neither the MemberGuests mod installed nor the time to install and test it at the moment. Maybe someone else can help it with this.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1 ... 5 6 [7] 
Send TopicPrint