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


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Enable HTML v1.4
Reply #15 - Jun 24th, 2003 at 2:38pm
Print Post  
Try putting the code he posted on a seperate html page and see if the code works at all.
  

The Administrator.
Back to top
WWW  
IP Logged
 
DocRST
God Member
*****
Offline


Dont get use to it!

Posts: 1846
Location: Oklahoma City
Joined: Aug 24th, 2002
Gender: Male
Re: Enable HTML v1.4
Reply #16 - Jun 24th, 2003 at 2:45pm
Print Post  
2 bad you cant have UBBC and HTML. Sad
  

Doc Cowles
Web Master
YourWebSpace.com  -  Free YaBB hosting
docrst@yahoo.com
Back to top
IP Logged
 
Jazhawk
God Member
*****
Offline


I'm not always right but
I'm never wrong

Posts: 799
Location: Las Vegas
Joined: Mar 11th, 2002
Gender: Male
Re: Enable HTML v1.4
Reply #17 - Jun 25th, 2003 at 2:11am
Print Post  
Can someone explain to me how this mod works? And an example of it's use simply makes sense to me.  Grin

-Jazhawk
  
Back to top
IP Logged
 
Jake
God Member
*****
Offline



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: Enable HTML v1.4
Reply #18 - Jun 25th, 2003 at 7:37am
Print Post  
Quote:
Try putting the code he posted on a seperate html page and see if the code works at all.

Yeap! it didn't work too. ???
  

   
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 #19 - Jun 25th, 2003 at 3:43pm
Print Post  
Jazhawk wrote on Jun 25th, 2003 at 2:11am:
Can someone explain to me how this mod works? And an example of it's use simply makes sense to me.  Grin

-Jazhawk

Basically this mod prevents the ubbc sub from parsing the posts. That way, html won't be turned into simple text. The information if a post should be displayed in html or ubbc is saved by adding a #enable_html to the end of the message. It's not visible in the posts because it's cut off if found. That way, there is no need to change the post file format.

An example of using html in a post can be found by looking at the first post of this thread Wink

Quote:
Yeap! it didn't work too. ???

In that case, it's a problem in your html code and is in no way related to the enable html mod.
  

The Administrator.
Back to top
WWW  
IP Logged
 
DocRST
God Member
*****
Offline


Dont get use to it!

Posts: 1846
Location: Oklahoma City
Joined: Aug 24th, 2002
Gender: Male
Re: Enable HTML v1.4
Reply #20 - Jun 25th, 2003 at 5:14pm
Print Post  
Michael,
You answered my question also.

Thank you.
  

Doc Cowles
Web Master
YourWebSpace.com  -  Free YaBB hosting
docrst@yahoo.com
Back to top
IP Logged
 
Lucky
Junior Member
**
Offline


Thank God for Error Logging!

Posts: 68
Joined: May 16th, 2003
Gender: Male
Re: Enable HTML v1.4
Reply #21 - Jul 2nd, 2003 at 11:39am
Print Post  
Is their any possible way where this mod could be applied to a sig??For only certain membergroups????
  



In the end, we will remember not the words of our enemies, but the silence of our friends.
Martin Luther King Jr. (1929 - 1968)
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Enable HTML v1.4
Reply #22 - Jul 2nd, 2003 at 5:50pm
Print Post  
You'd have to edit Load.pl. Look for

Code
Select All
if($enable_ubbc) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; } 



and replace it with
Code
Select All
		### Begin Enable HTML Mod
		if ($message =~ /\#enable_html/isg) {
			$html_username = $user;
			$message_backup = $message; # since $message is no local variable, it often gets overwritten accidently somehwere (couldn't find out where)
			$enable_html = HTML_allow($html_username);
			$message = $message_backup;
			if ($enable_html == 1) {
				$message =~ s/\#enable_html//isg;
				$message =~ s/<br>/\n/ig;
				&FromHTML($message);
			}
		} else { $enable_html = 0; }

		if ($enable_html != 1) {
			if($enable_ubbc) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
		}
		### End Enable HTML Mod
 



Note that you will have to add #enable_html to your signature in order to enable html.
  

The Administrator.
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 #23 - Jul 3rd, 2003 at 3:37am
Print Post  
would adding this also make it work with the Homepages mod? :anxious:
  
Back to top
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 #24 - Jul 3rd, 2003 at 6:30am
Print Post  
good question, I just installed that mod. wondering...
  

70 mods installed on my SP1.3.1 on a Microsoft .NET - Microsoft-IIS/5.0 server.
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 #25 - Jul 3rd, 2003 at 6:35am
Print Post  
I would like it if it did Cheesy

Panther Wink
  

Michael T Griffin
Back to top
YIM  
IP Logged
 
Lucky
Junior Member
**
Offline


Thank God for Error Logging!

Posts: 68
Joined: May 16th, 2003
Gender: Male
Re: Enable HTML v1.4
Reply #26 - Jul 3rd, 2003 at 12:22pm
Print Post  
Now just how would I enable the html in the signature after that.
I see no place that one needs to ckeck to allow the html in signatures. Embarrassed
  



In the end, we will remember not the words of our enemies, but the silence of our friends.
Martin Luther King Jr. (1929 - 1968)
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Enable HTML v1.4
Reply #27 - Jul 3rd, 2003 at 12:25pm
Print Post  
For the homepages mod, you'll have to edit Homepage.pl. Look for:

Code
Select All
	if ($enable_ubbc) { require "$sourcedir/YaBBC.pl"; $message = $lines_list; &DoUBBC; $lines_list = $message; }
	else { $lines_list =~ s/\n/<br>/ig; } 



and replace it with:

Code
Select All
  ### Begin Enable HTML Mod
  $message = $lines_list;
  if ($message =~ /\#enable_html/isg) {
   $html_username = $member;
   $message_backup = $message; # since $message is no local variable, it often gets overwritten accidently somehwere (couldn't find out where)
   $enable_html = HTML_allow($html_username);
   $message = $message_backup;
   if ($enable_html == 1) {
    $message =~ s/\#enable_html//isg;
    $message =~ s/<br>/\n/ig;
    &FromHTML($message);
   }
  } else { $enable_html = 0; }

  if ($enable_html != 1) {
   if($enable_ubbc) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
  }
  $lines_list = $message;
  ### End Enable HTML Mod 



Note that you will have to add #enable_html to your homepage text in order to enable html.
  

The Administrator.
Back to top
WWW  
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: Enable HTML v1.4
Reply #28 - Jul 3rd, 2003 at 12:26pm
Print Post  
Quote:
Now just how would I enable the html in the signature after that.
I see no place that one needs to ckeck to allow the html in signatures. Embarrassed


Quote:
Note that you will have to add #enable_html to your signature in order to enable html.
  

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 #29 - Jul 3rd, 2003 at 2:44pm
Print Post  
im  a newbie to Yabb boards and mods.  i've installed a couple successfuly, and this one installed fine too, i uploaded the relevant files etc, but i cant see the area for it in the forum preferances and settings in the admin section -pouts-

can anyone help?  not sure if i've done something wrong

signed
a relatively dumb almost Yabb virgin
  

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