View Full Version : BB code tables 1.0
JohnWoo
12-09-2004, 10:00 PM
Hello!
It still needs optimization, but should work fine already :)
How it works :
1) starting code is 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 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
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
Sound like an interesting hack. will check it out
GamerzWorld
12-10-2004, 10:10 PM
screeny?
JohnWoo
12-11-2004, 05:47 AM
screenshot for code from first post :)
Souli
12-11-2004, 01:28 PM
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
SGT Rock
03-21-2005, 01:44 PM
Very cool, Thanks!
BigIke
04-13-2005, 01:25 AM
Does anyone know how to fix the problem of the BBcode changing to a table when you try to edit the post?
Acido
05-14-2005, 04:52 AM
Excellent Hack ! Thank you !!!!!
TosaInu
07-26-2005, 07:08 PM
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?
Detomah
11-07-2005, 09:01 PM
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.
Detomah
11-08-2005, 08:23 AM
Ok, I've also found this thread https://vborg.vbsupport.ru/showthread.php?t=96057 where one of the moderators has stated that this could easily be made into a plugin for it to be made to work again.
I've tried the obvious in copying the code to a new plugin and trying to make it as a bb-code parse plugin, but I get the white screen of death. I'm not quite up on the new vBulletin variables and stuff yet so aint got a clue if the code actually needs updating and stuff or not?
I really would appreciate a hand with this one, it's got me seriously baffled.
It's probably something really simple and straight forward to do, but I think i've probably spent so long staring trying to find the answer that i'm suffering from a problem black out.
Anyway, thanks in advance if you do decide in your heart, that I am worthy of being given a wee helping hand on this one. I promise that if I can at some stage in the future help you back out in some shape or form, I will.
Detomah
11-08-2005, 06:22 PM
Nobody feeling brave enough to tackle this? :(
Detomah
11-09-2005, 08:41 PM
Ok, I've also found this thread https://vborg.vbsupport.ru/showthread.php?t=96057 where one of the moderators has stated that this could easily be made into a plugin for it to be made to work again.
I've tried the obvious in copying the code to a new plugin and trying to make it as a bb-code parse plugin, but I get the white screen of death. I'm not quite up on the new vBulletin variables and stuff yet so aint got a clue if the code actually needs updating and stuff or not?
I really would appreciate a hand with this one, it's got me seriously baffled.
It's probably something really simple and straight forward to do, but I think i've probably spent so long staring trying to find the answer that i'm suffering from a problem black out.
Anyway, thanks in advance if you do decide in your heart, that I am worthy of being given a wee helping hand on this one. I promise that if I can at some stage in the future help you back out in some shape or form, I will.
Bump...
Surely someone out there has a spare few mins to help a guy in need with this?
Detomah
11-10-2005, 03:15 PM
Anyone?
Detomah
11-14-2005, 07:01 AM
:down: Can't believe nobody is willing or able to help out on this one, i'd have really thought for one advanced coder or another, this is would be the sort of port that could be done in a few short minutes. :(
EvilHawk
11-14-2005, 07:28 PM
:down: Can't believe nobody is willing or able to help out on this one, i'd have really thought for one advanced coder or another, this is would be the sort of port that could be done in a few short minutes. :(
I have ported it, as a product, but i don't thinks that it is allowed to upload the file without the permission of the original coder!
Detomah
11-14-2005, 11:14 PM
I have ported it, as a product, but i don't thinks that it is allowed to upload the file without the permission of the original coder!
That is very frustrating when the hacks author is no longer active. >.<
I've Pmed you about it. :)
whodah
04-03-2006, 07:53 PM
hello!
i'd be interested in this too for 3.5! - loved it on 3.0.x... :D
whodah
05-05-2006, 07:00 PM
ugh... i searched and searched but did not see this. came across it today in another post!
those seeking 3.5: https://vborg.vbsupport.ru/showthread.php?t=105802
thx JohnWoo for the original work! :D
MrPHD
06-13-2006, 01:52 PM
Hi, i have vb 3.5.4 and can´t find includes/functions_bbcodeparse.php why?Please help
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.