Page Index Toggle Pages: 1 ... 5 6 [7] 8 9  Send TopicPrint
Very Hot Topic (More than 25 Replies) [DONE] Enable HTML SP1.1 (Read 37081 times)
bordeglobal
God Member
*****
Offline


Only the Best Posters
Survive!

Posts: 1837
Location: Trinidad, West Indies
Joined: Sep 30th, 2002
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #90 - Jan 8th, 2003 at 10:05pm
Print Post  
Great mod - works well and enables me to put serious html to work on my messages. Thanks!
Grin
  

Back to top
WWW  
IP Logged
 
sombong
New Member
*
Offline


I love YaBB 1 Gold!

Posts: 15
Joined: Oct 4th, 2001
Re: [DONE] Enable HTML SP1.1
Reply #91 - Jan 25th, 2003 at 9:03pm
Print Post  
..am I seeing dublicates..and the last <search for> sniplet is no where to be found on my InstantMessage.pl..

enable_html_13_sp11.mod:

[code]
<edit file>
Sources/InstantMessage.pl
</edit file>

<search for>
           if($enable_ubbc) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
</search for>

<replace>
           ### Begin HTML MOD
           if ($message =~ /\#enable_html/isg) {
                 $message_backup = $message; # since $message is no local variable, it often gets overwritten accidently somehwere (couldn't find out where)
                 $enable_html = HTML_allow($musername);
                 $message = $message_backup;
                 if ($enable_html == 1) {
                       $message =~ s/\#enable_html//isg;
                       &FromHTML($message);
                 }
           } else { $enable_html = 0; }
           if($enable_ubbc && $enable_html == 0) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
           ### End HTML MOD
</replace>

<search for>
           if($enable_ubbc) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
</search for>

<replace>
           ### Begin HTML MOD
           if ($message =~ /\#enable_html/isg) {
                 $message_backup = $message; # since $message is no local variable, it often gets overwritten accidently somehwere (couldn't find out where)
                 $enable_html = HTML_allow($musername);
                 $message = $message_backup;
                 if ($enable_html == 1) {
                       $message =~ s/\#enable_html//isg;
                       &FromHTML($message);
                 }
           } else { $enable_html = 0; }
           if($enable_ubbc && $enable_html == 0) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
           ### End HTML MOD
</replace>

<search for>
           if($enable_ubbc) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
</search for>

<replace>
           ### Begin HTML MOD
           if ($message =~ /\#enable_html/isg) {
                 $message_backup = $message; # since $message is no local variable, it often gets overwritten accidently somehwere (couldn't find out where)
                 $enable_html = HTML_allow($musername);
                 $message = $message_backup;
                 if ($enable_html == 1) {
                       $message =~ s/\#enable_html//isg;
                       &FromHTML($message);
                 }
           } else { $enable_html = 0; }
           if($enable_ubbc && $enable_html == 0) { if(!$yyYaBBCloaded) { require "$sourcedir/YaBBC.pl"; } &DoUBBC; }
           ### End HTML MOD
</replace>

<search for>
if ($FORM{'ns'} eq "NS") {$message .= "";}
</search for>

<add after>

### Begin HTML Mod
$message =~ s/\#enable_html//isg;
if($FORM{enable_html} eq "1") {
     $message_backup = $message; # since $message is no local variable, it often gets overwritten accidently somehwere (couldn't find out where)
     $enable_html = HTML_allow($username);
     $message = $message_backup;
     if ($enable_html == 1) { $message .= qq~#enable_html~; }
}
### End HTML Mod
</add after>
[/code]
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #92 - Jan 25th, 2003 at 9:46pm
Print Post  
replace the last seach for by this:
[code]<search for>
if ($FORM{'ns'} eq "NS") {$message .= "";}
</search for>[/code]
  

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



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #93 - Jan 25th, 2003 at 10:00pm
Print Post  
[quote author=Michael Prager link=1031093686/90#92 date=1043531209]replace the last seach for by this:
[code]<search for>
if ($FORM{'ns'} eq "NS") {$message .= "";}
</search for>[/code][/quote]
i think it should be

if ($FORM{'ns'} eq "NS") {$message .= "# nosmileys";}
  

   
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #94 - Jan 25th, 2003 at 10:09pm
Print Post  
oh my... I copy&past'ed the wrong way around Roll Eyes

you're right Jake
  

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



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #95 - Jan 25th, 2003 at 10:25pm
Print Post  
Quote:
oh my... I copy&past'ed the wrong way around Roll Eyes

you're right Jake


No you've done right but it didn't show
Code
Select All
"# nosmileys";}  

correctly, you can try again this may be accidentally bug found ???
  

   
Back to top
 
IP Logged
 
sombong
New Member
*
Offline


I love YaBB 1 Gold!

Posts: 15
Joined: Oct 4th, 2001
Re: [DONE] Enable HTML SP1.1
Reply #96 - Jan 25th, 2003 at 10:57pm
Print Post  
..well the last <search for> doesn't exist on my InstantMessage.pl

the one I have is:
Code
Select All
if ($message =~ /\# nosmileys/isg) {$message =~ s/\# nosmileys//isg; $nscheck="checked";}
 



and the duplicates 2 entries has to be ignored right?
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #97 - Jan 26th, 2003 at 12:34am
Print Post  
@Jake: totally forgot about that. This is not a bug, it's a feature Wink
When you write #_nosmilies (without the _), it will disable all smilies in your post.

@sombong: in that case I assume you installed one of the IM replacements. You'll have to uninstall that first.
  

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



Posts: 1265
Location: asia
Joined: Jun 22nd, 2002
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #98 - Jan 26th, 2003 at 1:40am
Print Post  
Quote:
@Jake: totally forgot about that. This is not a bug, it's a feature  
When you write #_nosmilies (without the _), it will disable all smilies in your post.


Thank You To let me know  Cheesy

May I ask you a couple of questions about enable_HTML mod
  • I can't post with <applet> tag, is this normal
  • I have no solution for at least 3-4 months about enable_HTML and NotifyPlus mod (Only mailing list function).You can see the details on my signature now.Any comments or suggestion  would be really appreciate.Mort has told me that be patience waiting for perl expert. Cheesy


Thanks for your kindness Grin
« Last Edit: Jan 26th, 2003 at 11:55pm by Jake »  

   
Back to top
 
IP Logged
 
LZfan99
New Member
*
Offline



Posts: 5
Location: Austin
Joined: Jan 15th, 2003
Gender: Female
Re: [DONE] Enable HTML SP1.1
Reply #99 - Feb 11th, 2003 at 11:19pm
Print Post  
anyone try this mod with 1.2 yet?
  
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: [DONE] Enable HTML SP1.1
Reply #100 - Feb 15th, 2003 at 12:40am
Print Post  
I installed this mod ok.

Enabling html for myself doesn't give me any additional options.  ???

Any ideas?

-Jazhawk
  
Back to top
IP Logged
 
sombong
New Member
*
Offline


I love YaBB 1 Gold!

Posts: 15
Joined: Oct 4th, 2001
Re: [DONE] Enable HTML SP1.1
Reply #101 - Feb 18th, 2003 at 3:54pm
Print Post  
@Michael Prager: Can this mod be enabled also for News.pl? TIA
  
Back to top
 
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #102 - Feb 19th, 2003 at 3:01pm
Print Post  
Quote:
  • I can't post with <applet> tag, is this normal
what exactly doesn't work?

Quote:
anyone try this mod with 1.2 yet?
Nope I didn't. I don't have any time for modding right now.

Quote:
Enabling html for myself doesn't give me any additional options.
where? In the admin center or in posts?

Quote:
@Michael Prager: Can this mod be enabled also for News.pl? TIA
yes it can. But it depends on which news script mod you installed.
  

The Administrator.
Back to top
WWW  
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: [DONE] Enable HTML SP1.1
Reply #103 - Feb 19th, 2003 at 3:45pm
Print Post  
Quote:
where? In the admin center or in posts?


In the post.  Your example gives an additional checkbox in the post.  I still only have two.

-Jazhawk
  
Back to top
IP Logged
 
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #104 - Feb 19th, 2003 at 4:00pm
Print Post  
Did you add your username to the "allowed users" list?
  

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