Allowed HTML Tags (will have to be revised, no longer works)

This section will contain posting guidelines for the forum along with any other information that is relevant to this forum.
knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Allowed HTML Tags (will have to be revised, no longer works)

Post by knightmb » Feb 28 2007 1:10pm

Here is a list of the currently allowed HTML tags for those that like to get fancy in their posting.

Code: Select all

<B>
<I>
<U>
<PRE>
<EMBED>
<A>
<IMG>
<FONT>
<UL>
<OL>
<LI>
<P>
<BR>
<TABLE>
<TR>
<TD>
<BLOCKQUOTE>
<SUP>
<SUB>
Last edited by neptronix on Jul 24 2018 10:11am, edited 7 times in total.
Reason: Why the hell is this still stickied?

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Feb 28 2007 1:43pm

Knight, the tag attributes don't work, they get stripped. Is their an option to stop the filter from stripping the attributes?

For instance,

Code: Select all

[img src="xyz.jpg" align=left]
gives 
[img src="xyz.jpg"]
because the align attribute gets stripped.
I'm having to use [] instead of <> because the filter's stripping attributes even inside of code and pre tags!

The attribute is a statement at the end of a tag modifying but not fundamentally changing the tag's function. There's probably more attributes than there are tags, and the same attributes function in many tags. So for instance the 'align' attribute also can modify the p tag (paragraph -- another good one to add), such as

Code: Select all

[p align="center"]This text will be centered[/p]
[p align="justify"]This text will be right and left justified in most browsers[/p]
Again, I'm using [ ] instead of < >.

Attributes won't present any danger I'm aware of as they'll only function within the tags you allow, because they can only modify those allowed tags.

BTW, 'ALIGN' is not an HTML tag, just an attribute (unless something's changed in recent years). But P (paragraph) and BR (line break) are other tags we could use!

Thanks!
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Feb 28 2007 2:49pm

Yeah, you are right. I was about run out the door and didn't think about that. Was trying to get it in before I left so others could use it. I'll have to experiment with it. The forum is very strict on how to allow HTML, which I guess is to help an accident to where you enable something and then someone puts a refer tag in the html that directs everyone to a porn site or something, LOL.

I added the "P" tag to the list, should be able to mess around with the text now. Also tried an experiment with a picture, the align seemed to make it through just fine?
Last edited by knightmb on Feb 28 2007 3:00pm, edited 1 time in total.

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Feb 28 2007 2:56pm

Code: Select all

<p align="center">This text will be centered</p>
<p align="right">This text will be right aligned in most browsers</p>
<p align="center">This text will be centered</p>
<p align="right">This text will be right aligned in most browsers</p>
Last edited by knightmb on Feb 28 2007 3:01pm, edited 1 time in total.

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Feb 28 2007 2:59pm

Imagine with Align Right

Code: Select all

<img src="http://endless-sphere.com/forums/files/e_bike_01_462.jpg" align="right">
<img src="http://endless-sphere.com/forums/files/ ... 01_462.jpg" align="right">

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Feb 28 2007 3:07pm

If you place the image tag before the text, you can align the image to it. I just noticed that the filter seems OK with attributes so long as the right side is enclosed by quotes like the quotes around "right" below, it doesn't normally have to be.
[img src="http://upload.wikimedia.org/wikipedia/e ... _large.jpg" align="right"]

<img src="http://upload.wikimedia.org/wikipedia/e ... _large.jpg" align="right"> This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle.This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. <br><br>This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle.
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Feb 28 2007 3:08pm

xyster wrote:If you place the image tag before the text, you can align the image to it. I just noticed that the filter seems OK with attributes so long as the right side is enclosed by quotes like the quotes around "right" below, it doesn't normally have to be.
[img src="http://upload.wikimedia.org/wikipedia/e ... _large.jpg" align="right"]

<img src="http://upload.wikimedia.org/wikipedia/e ... _large.jpg" align="right"> This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle.This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. <br><br>This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle.
Ah, we need the BR tag too for line returns, I'll add that too.

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Feb 28 2007 3:09pm

Now if you enclose the whole thing in a [p align="justify"] tag, you can justify the text while keeping it aligned to the image on the right. Some browsers will not show the text justified because they don't recognize the 'justify' command.
<p align="center"><font size="7" face="Serif"><i><b>A Great Bike!</b></i></font></p>
<p align="justify"><font size="3" face="Sans-Serif" color="blue"><img src="http://upload.wikimedia.org/wikipedia/e ... _large.jpg" align="right"> This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle.This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. <br><br>This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle.</font></p>
Last edited by xyster on Feb 28 2007 3:17pm, edited 1 time in total.
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Feb 28 2007 3:16pm

For some reason the "face" attribute of the "font" tag doesn't seem to be working. But it's not getting stripped either. I'm assuming the forum software overrides this and enforces it's own font type (i.e. serif, sans-serif, Times, Helvetica, etc)?
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Feb 28 2007 3:19pm

<p>
<font size="4" face="Verdana">
This is a Verdana font paragraph.
</font>
</p>
<p>
<font size="4" face="Times">
This is Times font paragraph.
</font>
</p>
<p>
<font size="4" face="Wingdings">
This is Wingdings font paragraph.
</font>
</p>

Yeah, they look the same, might be a CSS overriding the font type.

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Feb 28 2007 3:20pm

Now click the image of the bike and through the use of the "a" tag (anchor) with the "target" attribute, it'll pop open in a new window or tab for you. Unlike with javascript popups and popunders, there's no way to make harmful recurrent popups using this technique -- you know, the one's you can never close without spawning another window.
<p align="center">
<font size="7" color="red"><b><i>Great Bike!</b></i></font></p>

<p align="justify"><font size="3" face="Sans-Serif" color="blue"><a href="http://upload.wikimedia.org/wikipedia/e ... _large.jpg" target="_blank"><img src="http://upload.wikimedia.org/wikipedia/e ... _large.jpg" align="right"> </a>
This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle.This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. <br><br>This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle. This a bicycle, a very nice bicycle.</font></p>
Last edited by xyster on Feb 28 2007 3:22pm, edited 1 time in total.
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Feb 28 2007 3:22pm

Found out why the font doesn't work exactly like we want it to.
The <font> tag is deprecated in the latest versions of HTML (HTML 4 and XHTML).

The World Wide Web Consortium (W3C) has removed the <font> tag from its recommendations. In future versions of HTML, style sheets (CSS) will be used to define the layout and display properties of HTML elements.

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Feb 28 2007 3:25pm

Hmmm...besides the "face" attribute at least it still works, and will probably work with browsers for some years. Style sheets are very nice and precise more like professional print layout, and I'm quite familiar with them too, but they're more difficult to master and implement commands quickly in a forum setting like this.
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Feb 28 2007 3:27pm

xyster wrote:Hmmm...besides the "face" attribute at least it still works, and will probably work with browsers for some years. Style sheets are very nice and precise more like professional print layout, and I'm quite familiar with them too, but they're more difficult to master and implement commands quickly in a forum setting like this.
I think technically I could enable the tags to produce the elements and then you could customize a font but it's a lot of work just to change it around, like you said in a forum setting.

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Feb 28 2007 3:31pm

I wouldn't worry about doing that.<br><font size="+1"> <u>It's just very nice to have basic html layout commands back!</u></font>
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

User avatar
TylerDurden   100 GW

100 GW
Posts: 7177
Joined: Jan 04 2007 5:50pm
Location: Wear the fox hat.
Contact:

Post by TylerDurden » Feb 28 2007 3:33pm

I think we have enough font control as is...


Here's an interesting "feature":

the images don't load in my thread view, but when I opened the compose form with topic review, the images loaded.


:?
Have a Nice Day,

TD

Image
___________________________________________________________

FYI: Adding pictures?

Bored?... take a crack at the unanswered posts

Please post your Watts-at-speed in the survey.



Image

User avatar
TylerDurden   100 GW

100 GW
Posts: 7177
Joined: Jan 04 2007 5:50pm
Location: Wear the fox hat.
Contact:

Post by TylerDurden » Feb 28 2007 10:37pm

Yep, just checked it...


Even if you have HTML disabled in your preferences, when you compose a reply, the html gets processed in the "topic review" panel below the reply textarea.

Strange quirk, might not be a risk since we filter most the nasty tags out.


8)
Have a Nice Day,

TD

Image
___________________________________________________________

FYI: Adding pictures?

Bored?... take a crack at the unanswered posts

Please post your Watts-at-speed in the survey.



Image

Mathurin   100 kW

100 kW
Posts: 1166
Joined: May 24 2006 2:49pm
Location: Quebec
Contact:

Post by Mathurin » Mar 07 2007 12:29am

Yeah I had html stuff disabled by default in my prefs, setting them back on before posting a post where I wanted them to be on didn't work, it only worked in preview. Turns out you gotta set html to on by default in your profile for html tags to work.
You have to know, not fear, that someday you are going to die. Until you know that and embrace that, you are useless. - Tyler Durden, Fight club. Ditch the fake identity you've created for yourself, walk your own way in a society of mindless drones to become real, you are not your social status.

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Mar 07 2007 1:41am

Can we also have the tags

TABLE
TR
TD

?
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Mar 07 2007 1:48am

xyster wrote:Can we also have the tags

TABLE
TR
TD

?
Done!

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Mar 15 2007 12:20pm

Thanks, Good Sir Knightmb. Can we have
BLOCKQUOTE
too, please?
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Mar 15 2007 1:08pm

xyster wrote:Thanks, Good Sir Knightmb. Can we have
BLOCKQUOTE
too, please?
I don't see any harm in it :)

<BLOCKQUOTE>Certainly! Certainly! Certainly! Certainly!
Certainly! Certainly! Certainly !Certainly!
Certainly! Certainly! Certainly! Certainly!
Certainly! Certainly! Certainly! Certainly!</BLOCKQUOTE>

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Apr 08 2007 7:02am

Can we also have

SUP
SUB

please?
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

knightmb   100 kW

100 kW
Posts: 1070
Joined: May 08 2006 12:32am
Location: Franklin, TN

Post by knightmb » Apr 08 2007 11:33am

xyster wrote:Can we also have

SUP
SUB

please?
All set!


<sup>All set</sup>

<sub>All set</sub>

User avatar
xyster   1 GW

1 GW
Posts: 3089
Joined: Jan 02 2007 8:39pm
Location: Visualize Rural Sheep

Post by xyster » Apr 08 2007 11:36am

Thank <sub>you</sub>. That's great<sup>^2</sup>!
Ebike: 5304/20", 72V 35A controller, 33AH 80V 20s15p (18650 sized cells) DIY lithium-ion pack
http://endless-sphere.com/forums/viewto ... 47&start=0
Scooter: '06 Stealth s1000, 48V 30A, 4x10ah SLA
http://endless-sphere.com/forums/viewtopic.php?t=148
Ebike: '06 Currie Mongoose, 32V 35A, 32V 22AH hybrid SLA/Li-ion pack
http://endless-sphere.com/forums/viewtopic.php?t=1010

Post Reply