Page Index Toggle Pages: 1 2 [3] 4 5 ... 7 Send TopicPrint
Very Hot Topic (More than 25 Replies) Enable HTML v1.4 (Read 32162 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Enable HTML v1.4
Reply #30 - Jul 3rd, 2003 at 3:08pm
Print Post  
If you uploaded the modified AdminEdit.pl, you should see a few new settings right below the "Remove entries from user logs after _ days" option.
  

The Administrator.
Back to top
WWW  
IP Logged
 
ivory
New Member
*
Offline



Posts: 2
Joined: Jul 3rd, 2003
Gender: Female
Re: Enable HTML v1.4
Reply #31 - Jul 3rd, 2003 at 3:23pm
Print Post  
woohooo, lol god i feel dumb.  ok so i uploaded the buggers wrong -hangs head- sorry.  but its working now -g-  thankyou sooooooo much
  

doobee doobee doooo
Back to top
WWW  
IP Logged
 
qersys
Senior Member
****
Offline


Yes, I am

Posts: 342
Location: SF
Joined: Dec 29th, 2002
Gender: Male
Re: Enable HTML v1.4
Reply #32 - Jul 4th, 2003 at 1:53am
Print Post  
thank you. gonna go try it now Grin

Hooty Hoo, it be woikin now Grin
  
Back to top
IP Logged
 
Michael Griffin
God Member
*****
Offline


Black Panther's are cool!!!

Posts: 1337
Location: Crossville
Joined: Mar 30th, 2003
Gender: Male
Re: Enable HTML v1.4
Reply #33 - Jul 10th, 2003 at 6:26am
Print Post  
Quote:
Note that you will have to add #enable_html to your homepage text in order to enable html.


Sorry, this is a very stupid question but where do you add "#enable_html" at? Undecided Embarrassed Thanks

Panther Wink
  

Michael T Griffin
Back to top
YIM  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Enable HTML v1.4
Reply #34 - Jul 10th, 2003 at 4:59pm
Print Post  
In the web form where you enter the html for your homepage. It is used to detect if a user wants to enable html. If this text is found, it will be cut out and html will be parsed instead of ubbc.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Kavok
Full Member
***
Offline


Faith of yee little

Posts: 101
Location: USA, Ohio
Joined: May 12th, 2003
Re: Enable HTML v1.4
Reply #35 - Jul 12th, 2003 at 6:04am
Print Post  
I tried to install this and steps 16, 17, and 18 bugged out all in recent.pl

16 was a spacing error
17 the code looked very different so I wasnt sure how to modify it correctly
and
18 a very small part of the code seemed different, I wasnt sure what to do there either.

My recent.pl is attached
  

Recent.txt ( 9 KB | Downloads )
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 #36 - Jul 12th, 2003 at 8:46pm
Print Post  
You don't use YaBB's original Recent.pl so it's clear that the mod won't install without some small ajustments.

As step 16 is only a spacing error, you can simply correct it in the mod file.

Step 17 has to be ajusted to the following:
Code
Select All
<search for>
	$messages[$numfound] = ame|$micon|$mattach|$mip|$message|$mns|$tstate";
</search for>

<replace>
	$messages[$numfound] = ame|$micon|$mattach|$mip|$message|$mns|$tstate|$lastmoddate|$lastmoduser";
</replace> 



And Step 18 has to look like this:
Code
Select All
<search for>
		($board, $tnum, $c, $tusername, $tname, $msub, $mname, $memail, $mdate, $musername, $micon, $mattach, $mip, $message, $mns, $tstate) = split( /\|/, $messages[$i] );
</search for>

<replace>
		($board, $tnum, $c, $tusername, $tname, $msub, $mname, $memail, $mdate, $musername, $micon, $mattach, $mip, $message, $mns, $tstate, $lastmoddate, $lastmoduser) = split( /\|/, $messages[$i] );
</replace> 



Please note that I didn't test those changes and there is no guarantee that it will work properly afterwards.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Kavok
Full Member
***
Offline


Faith of yee little

Posts: 101
Location: USA, Ohio
Joined: May 12th, 2003
Re: Enable HTML v1.4
Reply #37 - Jul 13th, 2003 at 4:39am
Print Post  
Thanks MP (Do you care if I call you that?  Grin )
  
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 #38 - Jul 13th, 2003 at 1:10pm
Print Post  
Actually, my sign would be MP2, as I have an older brother named Matthias (-> MP1) Grin
  

The Administrator.
Back to top
WWW  
IP Logged
 
WhiteSnakerr
Full Member
***
Offline


I prefer Windows...

Posts: 232
Location: Houston
Joined: Apr 19th, 2002
Gender: Male
Re: Enable HTML v1.4
Reply #39 - Jul 16th, 2003 at 7:05am
Print Post  
Installed great for me, all I did was take out the InstantMessage.pl coding. Oh and thanx for the "how to" on enabling HTML in Homages and Sig's!  Wink
  

70 mods installed on my SP1.3.1 on a Microsoft .NET - Microsoft-IIS/5.0 server.
Back to top
IP Logged
 
kender
Full Member
***
Offline


Welcome to my world

Posts: 171
Location: Great Lakes Region,
Joined: Jul 23rd, 2003
Gender: Male
Re: Enable HTML v1.4
Reply #40 - Aug 12th, 2003 at 5:47am
Print Post  
ok
i installed this mod...
installed the part for #enable_html in sig
installed the part for #enable_html in homepage

works in homepage.. not in sig..
i have Administrator set as allowed for html only... so far
  
Back to top
 
IP Logged
 
Sambs
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 20
Joined: Aug 7th, 2003
Gender: Male
Re: Enable HTML v1.4
Reply #41 - Aug 12th, 2003 at 7:57am
Print Post  
Installed this Mod, everything works nicely, except  that it doestn't work with the news script.

I used this Mod to post news into my news board so that I can insert images and get them nicely wrap around the text content which the YaBBC Tags can't do. Then use javascript that came with news script to grab part of the content to display at my homepage.

The content that showed on my homepage still display and reveal all the HTML code. The one in the news board itself is working fine and display correctly.

  
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 #42 - Aug 12th, 2003 at 10:56am
Print Post  
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
  

The Administrator.
Back to top
WWW  
IP Logged
 
Sambs
New Member
*
Offline


I love YaBB 1G - SP1.2!

Posts: 20
Joined: Aug 7th, 2003
Gender: Male
Re: Enable HTML v1.4
Reply #43 - Aug 12th, 2003 at 4:23pm
Print Post  
Thanks Mic, but it still didn't work. Output show correctly on posting page but still show HTML code on the homepage.

  
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 #44 - Aug 12th, 2003 at 6:22pm
Print Post  
Then it must be a problem on your end, the code works fine here.
  

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