![]() |
BB code tables 1.0
Hello!
It still needs optimization, but should work fine already :) How it works : 1) starting code is [table] or [table 1 2 3] where 1 2 3 any numbers separated by space first - border second - cellpadding third - cellspacing - ending tag is always [/table] - table lines separated by line break - each line can have 7 styles. To specify a style add in the beginning number and ^ symbol without spaces example: 2^ you may skip 7^ - it is default (alt1) style - ceils in line separated by | - there is no need to add | before first and after last ceil - each ceil can have each own align. Use align mark as a first symbol of ceil without spaces blank (default) - left = - center ~ - right - you can use any other BB code inside ceils :) - if number of ceils different in lines, last ceil of shorter lines will get colspan= with needed number so table in post may look like [table 1 3 0] 1|2|test 16798789789797979799879797979|4|5|6|7 1^~right with colspan 2^333|=center with colspan 3^1|2|left with colspan 4^1|=center without colspan|3|4|5|6|7 5^1|blablabla|3|4|5 6^1|2|3|4|5|6|7 [/table] |
Sound like an interesting hack. will check it out
|
screeny?
|
screenshot for code from first post :)
|
Very nice Hack but it doesn´t work with the WYSIWYG Editor.
Test it and post a new Table, after it edit your post with the WYSIWYG Editor |
Very cool, Thanks!
|
Does anyone know how to fix the problem of the BBcode changing to a table when you try to edit the post?
|
Excellent Hack ! Thank you !!!!!
|
Hello,
Out of 'all' the table hacks, this is the only safe one (just adding BB codes in ACP wrecks your forumlayout when a closing tag is 'forgotten'). Is this going to be ported to 3.5? |
I had this code working perfectly on my site up to vB3.0.9 but now that i've upgraded to vB3.5.1 it's stopped working. :(
It used to be placed in the functions_bbcodeparse.php file, but that file isn't even part of 3.5.1 any more looking at it and instead there is a class_bbcode.php file and a class_bbcode_alt.php file, which has really confused me, as I don't know where to put it now, or if it would still work in the same way. Could someone possibly help me get this hack working for vB3.5.1, it's a really important part of my website and I have thousands of pages that use these codes and i'm lost without it. |
All times are GMT. The time now is 07:36 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|