Page Index Toggle Pages: [1] 2 3 ... 9 Send TopicPrint
Very Hot Topic (More than 25 Replies) [DONE] Enable HTML SP1.1 (Read 37083 times)
Administrator
Forum Administrator
*****
Offline


Yummm

Posts: 7
Location: Modders Rile
Joined: Oct 7th, 2014
Gender: Male
[DONE] Enable HTML SP1.1
Sep 3rd, 2002 at 10:54pm
Print Post  
#enable_html
new version <b>1.3</b>: <a href="http://boardmod.yabbforum.com/yabb/attachments/enable_html_13_sp11.mod">enable_html_13_sp11.mod</a>

Here is a small mod for ya: Enable HTML

<table align="center" width="95%" cellspacing="0" cellpadding="0" border="0"><tr height="35"><td width="13" width="13"><img src="../box1a.gif" width="13" height="35" border="0"></td><td valign="top" background="../box1b.gif"><table align="left" cellspacing="0" cellpadding="0" border="0"><tr><td valign="bottom" width="100%" height="21"><font face="tahoma" color="#00007F" size="2"><nobr><img src="http://boardmod.yabbforum.com/yabb/YaBBImages/wink.gif" alt=""> <b>Enable HTML</b><font size="1"> :: 03/09/02 24:44 :: Michael Prager</font></nobr></font></td></tr></table></td><td width="14"><img src="../box1c.gif" width="14" height="35" border="0"></td></tr><tr><td background="../box2a.gif"> </td><td bgcolor="#96652B"><font face="Arial" color="#FFFFFF" size="2"><b>ID: </b>Enable HTML SP1.1

<b>Version: </b>1.3 SP1.1

<b>Mod info: </b>This mod allows you to define certain grounds and users which are allowed to use HTML in their posts.
To set the permission, goto Admin Center -> "Forum Preferences and Settings" and set the group- and/or userlist.
Please concern that allowing HTML is a serious security risk! Only allow to reliable persons.

In this mod, HTML is disabled per default. When someone has permission to use HTML, he will have an additional checkbox when posting messages where he can enable HTML.
Note that when HTML is enabled in a post, UBBC will be disabled for it to prevent conflicts (for example with auto-url).

This mod is for SP1.1

Version history:
v1.3:
- added checkbox in post form, so you no longer have to add #<!--//-->enable_html yourself
- added html support for IMs
- added missing html support user's recent posts
- fixed html support in recent posts
v1.2:
- added html to recent posts, user's recent posts, search, printpage and topic summary
v1.1:
- fixed security issue. When someone modifies a post which contains HTML then the user must have HTML access too or HTML will be disabled on that post.
- fixed HTML in post preview
</font></td><td background="../box2c.gif"> </td></tr><tr><td background="../box3a.gif"><img src="../box3a.gif" width="13" height="14" border="0"></td><td background="../box3b.gif"><img src="../box3b.gif" width="9" height="14" border="0"></td><td background="../box3c.gif"><img src="../box3c.gif" width="14" height="14" border="0"></td></tr></table>

Here is a little screenshot of the new checkbox feature:
<img src="http://boardmod.yabbforum.com/yabb/attachments/enable_html.gif">

Please report any bugs you find. Thx Smiley
« Last Edit: Sep 7th, 2002 at 2:30pm by Administrator »  

enable_html_sp11.mod ( 5 KB | Downloads )

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


I want my MTV

Posts: 2039
Location: Murfreesboro
Joined: May 18th, 2001
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #1 - Sep 4th, 2002 at 2:44am
Print Post  
I found a bug... I don't have HTML access in our admin center. Wink

Just kidding, man. This looks great. The added options for access are a super idea, and using the #enable_html so you dont have to change the file format is nice, too. =) Kick butt, man. Cheesy
  

I'm not sure if it's ignorance or apathy, but I don't know and I don't care.
Back to top
WWW  
IP Logged
 
XxFR666xX
Junior Member
**
Offline


I Love yabb so much i
sold my soul for them

Posts: 95
Joined: Dec 22nd, 2001
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #2 - Sep 4th, 2002 at 2:57am
Print Post  
does it tell users what to do to add html??  or is it kinda if u know use it?
  

I_Am_Canadian
-=G.o.d=- Network
Creator/Webmaster/Co-Owner
webmaster@goddc.net
http://www.goddc.net
Back to top
IP Logged
 
Dave Baughman
God Member
*****
Offline


I want my MTV

Posts: 2039
Location: Murfreesboro
Joined: May 18th, 2001
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #3 - Sep 4th, 2002 at 4:48am
Print Post  
If you know how to use HTML and you have permission to do so, you just use it. The mod doesn't give an HTML tutorial to anybody.
  

I'm not sure if it's ignorance or apathy, but I don't know and I don't care.
Back to top
WWW  
IP Logged
 
Dave Baughman
God Member
*****
Offline


I want my MTV

Posts: 2039
Location: Murfreesboro
Joined: May 18th, 2001
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #4 - Sep 4th, 2002 at 4:50am
Print Post  
I have a question concerning this.

This shoudnt be an issue, really, as you shouldnt have moderators you dont trust, but what if a moderator modifies your post? Can he then change the HTML and save it?
  

I'm not sure if it's ignorance or apathy, but I don't know and I don't care.
Back to top
WWW  
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #5 - Sep 4th, 2002 at 9:24am
Print Post  
In theory: Yes, as it's still saved as the users post.
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

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 #6 - Sep 4th, 2002 at 1:52pm
Print Post  
hm that's true... never thought of that Roll Eyes

We'd need to add a check which tests if the person who modified it is the original author and if not, disable html.
  

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


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #7 - Sep 4th, 2002 at 1:57pm
Print Post  
Okay; Users More Membergroups will feature a User Rights Management. Should HTML Enabling be a User Right?
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

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 #8 - Sep 4th, 2002 at 2:09pm
Print Post  
Hm that would make the mod dependent from this here. Undecided
  

The Administrator.
Back to top
WWW  
IP Logged
 
Teme
Senior Member
****
Offline


Cogito, ergo sum!

Posts: 432
Joined: Dec 31st, 2001
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #9 - Sep 4th, 2002 at 2:44pm
Print Post  
Quote:
#enable_html
Here is a small mod for ya: Enable HTML

<table align="center" width="95%" cellspacing="0" cellpadding="0" border="0"><tr height="35"><td width="13" width="13"><img src="../box1a.gif" width="13" height="35" border="0"></td><td valign="top" background="../box1b.gif"><table align="left" cellspacing="0" cellpadding="0" border="0"><tr><td valign="bottom" width="100%" height="21"><font face="tahoma" color="#00007F" size="2"><nobr><img src="http://boardmod.yabbforum.com/yabb/YaBBImages/wink.gif" alt=""> <b>Enable HTML</b><font size="1"> :: 03/09/02 24:44 :: Michael Prager</font></nobr></font></td></tr></table></td><td width="14"><img src="../box1c.gif" width="14" height="35" border="0"></td></tr><tr><td background="../box2a.gif"> </td><td bgcolor="#96652B"><font face="Arial" color="#FFFFFF" size="2"><b>ID: </b>Enable HTML SP1.1

<b>Version: </b>1.0 SP1.1

<b>Mod info: </b>This mod allows you to define certain grounds and users which are allowed to use HTML in their posts.
To set the permission, goto Admin Center -> "Forum Preferences and Settings" and set the group- and/or userlist.
Please concern that allowing HTML is a security risk! Only allow to reliable persons.<br>
In this mod, HTML is disabled per default. When someone wants to add HTML to his post, he must have permission (admin center) and he has to add the follwing code to his message: #<!--//-->enable_html
Note that when HTML is enabled in a post, UBBC will be disabled for it to prevent conflicts (for example with auto-url).

This mod is for SP1.1
</font></td><td background="../box2c.gif"> </td></tr><tr><td background="../box3a.gif"><img src="../box3a.gif" width="13" height="14" border="0"></td><td background="../box3b.gif"><img src="../box3b.gif" width="9" height="14" border="0"></td><td background="../box3c.gif"><img src="../box3c.gif" width="14" height="14" border="0"></td></tr></table>

Please report any bugs you find. Thx Smiley


What should we do with the replies to html-messages?


Quote:
hm that's true... never thought of that Roll Eyes

We'd need to add a check which tests if the person who modified it is the original author and if not, disable html.


I think moderators should have right to edit the html because if not - they can't edit the message as html tags won't show up anymore.


btw, thee preview screen shows the html layout although I'm not allowed to use it. This may be confusing as the post I make doesn't use those tags and looks different from my preview.
  

My great wish list:
Quote inside Quote! (and I'll be satisfied)
Back to top
WWWICQ  
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 #10 - Sep 4th, 2002 at 2:52pm
Print Post  
since you don't have html rights, every html stuff you post will be parsed, for a good reason. Just think of what would happen when someone quotes you and modifies the quoted html. That would for example enable him to add javascript which reads out all the cookie from the users who view this page and send it to his own pc. That way he could gain all the usernames and passwords from the users!

The risk is too high, that's why moderators won't be allowed to use HTML when they modify something.

If you want your moderators to be able to post html too, then you have to give them the rights todo so first.

Security should ALWAYS come first!
  

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: [DONE] Enable HTML SP1.1
Reply #11 - Sep 4th, 2002 at 2:54pm
Print Post  
Teme wrote on Sep 4th, 2002 at 2:44pm:
btw, thee preview screen shows the html layout although I'm not allowed to use it. This may be confusing as the post I make doesn't use those tags and looks different from my preview.

The preview is not security relevant, that's why I left out the check there.
  

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


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #12 - Sep 4th, 2002 at 3:26pm
Print Post  
Quote:
Hm that would make the mod dependent from this here. Undecided


No, no, you misunderstood Smiley
It won't be dependent on this mod, because it just adds to this mod's access list Wink If this mod isn't installed, nothing will happen(and this WILL be documented)
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

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 #13 - Sep 4th, 2002 at 4:08pm
Print Post  
Quote:
No, no, you misunderstood Smiley
It won't be dependent on this mod, because it just adds to this mod's access list Wink If this mod isn't installed, nothing will happen(and this WILL be documented)

oh ok then feel free to go ahead Smiley

Here is btw version 1.1:
- fixed security issue. When someone modifies a post which contains HTML then the user must have HTML access too or HTML will be disabled on that post.
- fixed HTML in post preview
  

enable_html_11_sp11.mod ( 7 KB | Downloads )

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


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: [DONE] Enable HTML SP1.1
Reply #14 - Sep 4th, 2002 at 4:16pm
Print Post  
hey Michael, have you updated on this forum or can I just edit your and Daves posts now Wink (unless I'm added though)

Is there a way to see if you can write HTML?
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Page Index Toggle Pages: [1] 2 3 ... 9
Send TopicPrint