vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   BB code tables 1.0 (https://vborg.vbsupport.ru/showthread.php?t=72741)

JohnWoo 12-09-2004 10:00 PM

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]

mtha 12-10-2004 09:58 PM

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.


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
  • Page Generation 0.01180 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete