vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   BB code tables 1.0 for vB 3.5.x (https://vborg.vbsupport.ru/showthread.php?t=105802)

EvilHawk 05-19-2006 12:36 PM

AFAIK yes (allthough i don't have a fixed width style to test it).

haris_led 07-21-2006 01:22 PM

Dear EvilHawk, I think that it is better working with phrases! ;)
so, I changed the text in your xml, and I replaced it with some vbphrases :D
bb_table_title
bb_table_explanation
bb_table_example
bb_table_usage

so, by adding 4 phrases to the system, we can change or translate it easily :D
Here is what theese phrases should replace:
Code:

bb_table_title:
Table


bb_table_explanation:
Creates a table with parameters.


bb_table_example:
[table 1 3 0]<br/>
1|2|test 16798789789797979799879797979|4|5|6|7<br/>
1^~right with colspan<br/>
2^333|=center with colspan<br/>
3^1|2|left with colspan <br/>
4^1|~center without colspan|3|4|5|6|7<br/>
5^1|blablabla|3|4|5<br/>
6^1|2|3|4|5|6|7<br/>
[/table]


bb_table_usage:
[table]table contents[/table]
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
- cells in line separated by |
- there is no need to add | before first and after last cell
- each cell 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 cells :)
- if number of ceils different in lines, last cell of shorter lines will get colspan= with needed number


I also include the new xml file(I just changed that part, nothing else:) )

haris_led 07-28-2006 10:47 AM

Hello again, I think there is a bug!
When I type an url in a cell, and the system makes it a link with [url] tag, the link is wrong.
If the url is http://www.site.com, then the link will be: http://www.site.com\"/
What could it be?

abosaleh 08-02-2006 08:02 AM

كفوا ا والله
thanksssss

ChuckH 08-08-2006 07:41 PM

Quote:

Originally Posted by haris_led
Hello again, I think there is a bug!
When I type an url in a cell, and the system makes it a link with [url] tag, the link is wrong.
If the url is http://www.site.com, then the link will be: http://www.site.com\"/
What could it be?

Just saw this myself. Doing the same thing.

EvilHawk 08-10-2006 08:12 PM

I suggest to use this hack instead https://vborg.vbsupport.ru/showthread.php?t=107985

Dr.Vince 02-07-2007 10:17 PM

Hello,

here's a code correction for bbcode (like url and image) working :

Replace all code like that (in modules) :

Code:

$this->post['message'] = preg_replace("~(\[table.+\[/table\])~iUse", "fetch_html_table('\\1')", $this->post['message']);
by :

Code:

preg_match("~(\[table.+\[/table\])~iUs", $this->post['message'], $matches);
$replace = fetch_html_table($matches[1]);
$this->post['message'] = preg_replace("~(\[table.+\[/table\])~iUs", $replace, $this->post['message']);

Explanation :

the e search option of preg_replace escape simple and double quote.

Selena Huynh 11-23-2009 03:54 AM

it's great code but complicated in used. However, thanks for advance


All times are GMT. The time now is 07:54 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.01168 seconds
  • Memory Usage 1,729KB
  • 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
  • (3)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)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