Page 1 of 1

Posting HTML

Posted: November 3rd, 2010, 1:46 am
by GeoAg
I'm trying to post the 2011 verbals list, but I'm unable to get the html to work in the preview. Is there a trick I am missing? If I don't have rights to post html, can I send the stuff to someone to post?

Is there a better way to create a table in phpbb?

BTW, this site is awesome!!! Thanks for putting this together.

Re: Posting HTML

Posted: November 3rd, 2010, 7:28 am
by ProvoAggie
As of right now, phpBB doesn't support either Tables or HTML (for security reasons). I will look for some solutions today and report back later.

Re: Posting HTML

Posted: November 3rd, 2010, 8:58 am
by ProvoAggie
HTML can't be enabled because of security reasons but I have implemented some new BBCodes that should allow you to do everything that you need to do. There are buttons on the toolbar above the posting box or you can type them manually. You should be able to create your HTML table as normal but replace <> with []. Cellpadding is automatically set to 2 with a border of 2 and 0 cellspacing. If you want to add css styles to a table element, you can just add them in like normal without the style tag and the tag will be created.
Sample:
[table][trbackground:#002356;color:#FFF;][td]Test Column[/td][/tr]
[tr][td]Test Data[/td][/tr][/table]
BBCode (Remove * to make it work):
[*table][*tr background:#002356;color:#FFF;][*td]Test Column[/td][/tr][*tr][*td]Test Data[/td][/tr][/table]

Just a note with this. If you create a table, put all of the BB Codes on 1 line. Otherwise it will push the table a ways down the page. We are looking for a solution to this problem but until one is found, this is what we'll have to do.

Re: Posting HTML

Posted: November 3rd, 2010, 1:59 pm
by ProvoAggie
I found a way to enable html in posts that should be secure. You should be able to use it now. If we run into any problems then I will have to disable it. You don't have to do anything special to use this functionality...just add it to your post. The only tags that are allowed are table, tr, td, th
<table border="2" cellpadding="4" cellspacing="0">
<tr style="background:#002356;color:#FFF;">
<td>Hello</td>
</tr>
<tr>
<td>World</td>
</tr>
</table>

You will still want to keep your html on 1 line unfortunately.

Re: Posting HTML

Posted: November 3rd, 2010, 3:18 pm
by BigBlueDart
One thing that I'm finding is that I can't get any cell padding using either BBCode or HTML. I may be doing it wrong, but I've searched extensively on it and tried several different ways of doing it. If this is something that is supposed to work, perhaps you could give me an example?

Re: Posting HTML

Posted: November 3rd, 2010, 3:26 pm
by ProvoAggie
I'm not aware of any reason that it wouldn't work. I will have to dissect the CSS and see if there is something in there that could be messing it up.

Re: Posting HTML

Posted: November 3rd, 2010, 5:23 pm
by ProvoAggie
I believe we have a solution here. Cellpadding, Cellspacing, Border, and Style should all work with HTML tables. Also, they don't have to be condensed to 1 row anymore.