Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
[Solved] [Split] Problem with HTML tables in Discussions*
UnderDog
MVP
This discussion was created from comments split from: Problem with HTML tables in Discussions..
There was an error rendering this rich post.
0
Comments
Cybernomad, did you resolve this issue? I am having the same exact problem. Thanks!
@BeeZe455, I would post a new thread following forum guidelines posting you vanilla version, etc. It is unlikely you are going to get a reply from someone who last posted in 2010.
tables should work see.
You are definitely using HTML or markdown formatter? Anyway I'd post a new discussion.
grep is your friend.
Yeah ... I've split the discussion...
There was an error rendering this rich post.
Table code seem to work fine on here, but on my forum I have to remove 'new lines', so the code is continuous.
I do it by pasting the table code in Word and then removing paragraph marks.
Someone else posted this as a solution in another thread a while ago; apologies for not assigning the proper credit!.
I switched to htmlpurifier and got it to work. Borders do not, but that is an HTMLPurifier issue.
htmlpurifier is fine if you have a small forum, but it is a performance hit on a larger forum.
grep is your friend.
TABLE TEST BELOW
Snowmobile Trail Conditions/Update
Tables do work here. Still without borders. Could somebody describe how it works on this forum? The purifier and such?
why not put some defaults in you css for a few different tables and assign classes.
the people could use things like td class="Alt Borderthick colorBlack".
or tr class="Alt Borderthick colorBlack".
once you gave them a list. all the css willwork fine in tables if you put it in your custom.css.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
The border thing is one issue and is also an issue on this forum, but the whole other issue is my forum does not format the same code unless I use HTMLPurifier. HTMLLawed (htmLawed 1.1.9.3, 17 May 2010) that came with my vanilla does not format it. Does this forum use HTMLLawed?
I can post tables in vanilla 2.0.18.10 just like this forum. and I can add classes to custom.css to make tables have borders,etc and any parameter I want.
It is unclear what your version is, what you are after, and what your issue is.
a few screenshots could help.
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
vanilla-core-2-0-18-9 -- You using htmllawed or htmlpurifier?
upgraded to 2.0.18.10 and disabled purifier and enabled htmlawed. No formatting of table. You can see a live test at:
http://neriders.com/discussion/107/vanilla-table-issue-test#Item_1
Table code looks like this here:
Snowmobile Trail Conditions/Update
<
div align="center">
<
table>
<
div>
The posting here is definately different then my forum. Maybe because I am using cleditor?
Who thought a table with a border would be this hard. LOL
Table code works fine if I run the test in /plugins/HtmLawed/htmLawed/htmLawedTest.php, so I know it is not lawed or my server.
OK, spent some time on this and not sure exactly what it is, but the CRLF is causing it in Vanilla. Works fine on htmLawed test. Works fine with htmLawed disabled. Works fine with HTMLPurifier. htmLawed and vanilla it does not work. Changed plugin config and still did not work. Removing the CRLF seems to be the only work around, but I would not consider this a fix or solved.
there is a cofig option
Garden.Format.ReplaceNewlines
you could set it to FALSE.I affects all newlines, but if you are using WYIWYG it shouldn't be a problem.
grep is your friend.