Posting HTML

All fixed bugs are moved here.
User avatar
GeoAg
Moderator
Posts: 7082
Joined: November 3rd, 2010, 1:09 am
Has liked: 9 times
Been liked: 67 times

Posting HTML

Post by GeoAg » November 3rd, 2010, 1:46 am

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.


"I don't think you become resilient right in the middle of the season when adversity hits. You learn how to face adversity in the offseason in football. That's when we win games around Utah State." -Coach Matt Wells #ArmsAround

User avatar
ProvoAggie
Site Admin
Posts: 12014
Joined: June 14th, 2010, 1:00 am
Location: Provo, Utah
Has liked: 245 times
Been liked: 297 times
Contact:

Re: Posting HTML

Post by ProvoAggie » November 3rd, 2010, 7:28 am

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.



User avatar
ProvoAggie
Site Admin
Posts: 12014
Joined: June 14th, 2010, 1:00 am
Location: Provo, Utah
Has liked: 245 times
Been liked: 297 times
Contact:

Re: Posting HTML

Post by ProvoAggie » November 3rd, 2010, 8:58 am

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.



User avatar
ProvoAggie
Site Admin
Posts: 12014
Joined: June 14th, 2010, 1:00 am
Location: Provo, Utah
Has liked: 245 times
Been liked: 297 times
Contact:

Re: Posting HTML

Post by ProvoAggie » November 3rd, 2010, 1:59 pm

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.



User avatar
BigBlueDart
2017 FB Predict The Score Champion
Posts: 7915
Joined: November 3rd, 2010, 7:57 am
Location: Syracuse, UT
Has liked: 49 times
Been liked: 200 times

Re: Posting HTML

Post by BigBlueDart » November 3rd, 2010, 3:18 pm

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?



User avatar
ProvoAggie
Site Admin
Posts: 12014
Joined: June 14th, 2010, 1:00 am
Location: Provo, Utah
Has liked: 245 times
Been liked: 297 times
Contact:

Re: Posting HTML

Post by ProvoAggie » November 3rd, 2010, 3:26 pm

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.



User avatar
ProvoAggie
Site Admin
Posts: 12014
Joined: June 14th, 2010, 1:00 am
Location: Provo, Utah
Has liked: 245 times
Been liked: 297 times
Contact:

Re: Posting HTML

Post by ProvoAggie » November 3rd, 2010, 5:23 pm

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.



Post Reply Previous topicNext topic