HFBoards (http://hfboards.hockeysfuture.com/index.php)
-   News And Announcements (http://hfboards.hockeysfuture.com/forumdisplay.php?f=125)
-   -   Code Table (http://hfboards.hockeysfuture.com/showthread.php?t=279838)

Buffaloed 08-09-2006 10:50 PM

Code Table
Now you can do stuff like this:
Wayne Gretzy70801502+99
Dustin Rose1752177327000-160
Peter Puck12385090+29

by posting:
PHP Code:

Wayne Gretzy|70|80|150|2|+99
Dustin Rose
Peter Puck

Setting it up:

example: [table="option1;option2=value;option3='this is a long value with space';option4=value1,value2,value3"]
The whole option list should be wrapped with quotes.
Options are seperated by a semicolon
If an option has a value it is assigned with "equal to" mark. (option2)
If the value contains blanks or special characters it has to be wrapped with apostrophes. (option3)
If an option has more than one value they are seperated by a comma. (option4)

Description of options:
This option defines the first line as head, so the first row is shown as head of the table. If the table sould be sorted, the head is not sorted.

This defines the table to be sorted by column 1, then column 2, then column 3. The "d" after the first column specifies the order: descending (default: ascending)

autonum=1 (equal to autonum) autonum=a autonum=A
Defines that a new first column containing a numbering should be inserted.
1 -> 1, 2, 3, 4, ... , 999, 1000, ....
a -> a, b, c, ... , aa, ab, ... , zz
A -> A, B, C, ... , AA, BB, ... , ZZ

autonumtitle=oneword autonumtitle='long value with spaces'
Defines the title of the autonum-column. Can be left empty.

width=123px width=45em width=67%
Defines the width of the table.

Buffaloed 08-09-2006 11:15 PM

column 1column 2column 3
helloPuck Poise!
visit Google? :) :yo: :p: :handclap: :dunce:
wanna have a list?
  • list 1
  • list 2
  • list 3
align left
align center
align right
contact me: example@example.net

PHP Code:

[table="autonumtitle=number;head"]column 1|[b]column 2[/b]|[i]column 3[/i]
|big|table[/table]|[b][color=Red]hello[/color][/b]|[size=4][color=Blue][b]Puck Poise![/b][/color][/size]
b][b][b][url="http://google.com"]visit Google?[/url][/b][/b][/b]||:) :yo: :p: :handclap: :dunce
wanna have a list?[list][*]list 1[*]list 2[*]list 3[/list]|[left]align left[/left]
center]align center[/center]
right]align right[/right]
contact me: [url="mailto:example@example.net"]example@example.net[/url][/table

Buffaloed 08-10-2006 07:17 PM

I added a new css definition for it. If you don't like the default you can use "css=transp" instead. Sorting is 'live' now, if you include that option and configure it properly.

Wayne Gretzy70801502+99
Dustin Rose1752177327000-160
Peter Puck12385090+29

PHP Code:

Wayne Gretzy|70|80|150|2|+99
Dustin Rose
Peter Puck

All times are GMT -5. The time now is 11:46 AM.

vBulletin Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
HFBoards.com, A property of CraveOnline, a division of AtomicOnline LLC ©2009 CraveOnline Media, LLC. All Rights Reserved.