Go Back   Freethought Forum > Public Works > Forum Administration

Reply
 
Thread Tools Display Modes
  #1  
Old 11-14-2007, 03:15 AM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Austin, TX
Gender: Male
Posts: XXMXCDXXXIX
Blog Entries: 1
Images: 9
Alert Tables

There's a new bbcode in town, and it's called Table.

Here's an example (quote me to see how it works) along with the developer's guide to the features.

col1col2col3
row2row2row2
row3row3row3

Quote:
Originally Posted by StGaensler View Post
Introduction to options:
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:
head
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.

sort=1d,2,3
This defines the table to be sorted by column 1, then column 2, then column 3. The "d" after the first colum 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.

css=myclass
Defines the aditional css class of the whole table. Possible values have to be defined in admincp.
The value is prepended by stg_table_ so the resulting css class with above example would be stg_table_myclass
The css code has to be added to "Additional CSS Definitions" of your style (AdminCP -> Styles & Templates -> Style Manager -> (Dropdown) Main CSS -> Additional CSS Definitions)

Introduction to special options (formating cells and rows):
example: {option1=value1}{option2=value2}
These "special" options can be written as the very first content of a cell to format it.

Description of special options:
{colsp=5}
Defines a colspan from current cell with the length of 5 cells

{css=myclass}
Defines the css class of the current row. This value is only valid in the first cell of a row and should be the first option (colspan defined after it - currently reversing the order works, too).
__________________
Reply With Quote
Thanks, from:
Crumb (11-14-2007), Goliath (04-20-2011), Stormlight (11-15-2007)
  #2  
Old 11-14-2007, 03:23 AM
livius drusus's Avatar
livius drusus livius drusus is offline
Admin of THIEVES and SLUGABEDS
 
Join Date: Apr 2004
Posts: LVCCCLXXII
Images: 5
Default Re: Tables

Another great hack, vm, thank you. I love how the header row is in the :ff: header style.

:bow4: :bow4: :bow4:
Reply With Quote
  #3  
Old 11-14-2007, 03:29 AM
Ymir's blood's Avatar
Ymir's blood Ymir's blood is offline
Coffin Creep
 
Join Date: Sep 2004
Location: The nightmare realm
Posts: XXXCLXXXIII
Images: 67
Default Re: Tables

:yup::glare::cool:
:P:fuming::wink:
:D:blush::(
:eek: :yawn: :bow:
:popcorn::doh::innocent:
:sadcheer::lecher::chin:
:whup::wave::giggle:
__________________
Much of MADNESS, and more of SIN, and HORROR the soul of the plot.
Reply With Quote
Thanks, from:
JoeP (11-14-2007)
  #4  
Old 11-14-2007, 03:36 AM
Ymir's blood's Avatar
Ymir's blood Ymir's blood is offline
Coffin Creep
 
Join Date: Sep 2004
Location: The nightmare realm
Posts: XXXCLXXXIII
Images: 67
Default Re: Tables

colsp spans horizontally. Is there any way to have a cell span vertically?
__________________
Much of MADNESS, and more of SIN, and HORROR the soul of the plot.
Reply With Quote
  #5  
Old 11-14-2007, 03:37 AM
livius drusus's Avatar
livius drusus livius drusus is offline
Admin of THIEVES and SLUGABEDS
 
Join Date: Apr 2004
Posts: LVCCCLXXII
Images: 5
Default Re: Tables

You use the | character, like in the table in the OP.
Reply With Quote
  #6  
Old 11-14-2007, 03:45 AM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Austin, TX
Gender: Male
Posts: XXMXCDXXXIX
Blog Entries: 1
Images: 9
Default Re: Tables

Actually the | is to separate columns. I don't know if there's a way to span vertically, but then I haven't even read the instructions I pasted above. I recommend experimentation. If it doesn't work, it won't work. :)
__________________
Reply With Quote
  #7  
Old 11-14-2007, 04:54 AM
Crumb's Avatar
Crumb Crumb is offline
Crumb 2.7 is now available!
 
Join Date: Jan 2005
Location: Cascadia
Gender: Male
Posts: LMXCMLXVIII
Blog Entries: 22
Images: 355
Default Re: Tables

:yay: You are the bestest admin on the planet! :fflove:
__________________
:joecool2: :cascadia: :ROR: :portland: :joecool2:
Reply With Quote
  #8  
Old 11-14-2007, 05:00 AM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Austin, TX
Gender: Male
Posts: XXMXCDXXXIX
Blog Entries: 1
Images: 9
Default Re: Tables

:blush: :thankee:
__________________
Reply With Quote
  #9  
Old 11-14-2007, 05:03 AM
Crumb's Avatar
Crumb Crumb is offline
Crumb 2.7 is now available!
 
Join Date: Jan 2005
Location: Cascadia
Gender: Male
Posts: LMXCMLXVIII
Blog Entries: 22
Images: 355
Default Re: Tables

Just don't tell liv I said that. :quiet:
__________________
:joecool2: :cascadia: :ROR: :portland: :joecool2:
Reply With Quote
  #10  
Old 11-14-2007, 05:28 AM
Caligulette's Avatar
Caligulette Caligulette is offline
lumpy proletariat
 
Join Date: Oct 2007
Location: Specific Northwest
Gender: Female
Posts: MVCCCXXIII
Default Re: Tables

Do tables come up often?
__________________
Blogitybloo!
:shaketrotsky:
Reply With Quote
  #11  
Old 11-14-2007, 06:01 AM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Austin, TX
Gender: Male
Posts: XXMXCDXXXIX
Blog Entries: 1
Images: 9
Default Re: Tables

Not really, but they'll come in handy from time to time, eg. for scorecards when we have games and competitions.
__________________
Reply With Quote
  #12  
Old 11-14-2007, 11:29 AM
Ymir's blood's Avatar
Ymir's blood Ymir's blood is offline
Coffin Creep
 
Join Date: Sep 2004
Location: The nightmare realm
Posts: XXXCLXXXIII
Images: 67
Default Re: Tables

The tables would be even more useful if we had Brady Bunch smilies.
__________________
Much of MADNESS, and more of SIN, and HORROR the soul of the plot.
Reply With Quote
Thanks, from:
Crumb (11-03-2017), Pinecone (11-14-2007)
  #13  
Old 11-14-2007, 04:09 PM
ceptimus's Avatar
ceptimus ceptimus is offline
puzzler
 
Join Date: Aug 2004
Location: UK
Posts: XVMCCCLXI
Images: 28
Default Re: Tables

  7¦ 18¦9  
3 9¦6  ¦   
 2 ¦ 9 ¦  1
---+---+---
  1¦8  ¦6  
2  ¦   ¦  7
  6¦  9¦4  
---+---+---
7  ¦ 4 ¦ 9 
   ¦  6¦5 2
  2¦17 ¦8  
__________________
Reply With Quote
Thanks, from:
fragment (11-15-2007), Stormlight (11-15-2007)
  #14  
Old 11-14-2007, 04:39 PM
Ensign Steve's Avatar
Ensign Steve Ensign Steve is offline
More of a "before rehab" friend
 
Join Date: Jul 2004
Location: Silicon Valley
Gender: Bender
Posts: XXXDCCCI
Images: 66
Default Re: Tables

Why are the 2nd and 3rd columns 4 columns wide?
__________________
:kiwf::smurf:
Reply With Quote
  #15  
Old 11-14-2007, 04:41 PM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Austin, TX
Gender: Male
Posts: XXMXCDXXXIX
Blog Entries: 1
Images: 9
Default Re: Tables

They're not, there's just two extra columns in between for the dotted lines.
__________________
Reply With Quote
Thanks, from:
Ensign Steve (11-14-2007)
  #16  
Old 11-14-2007, 07:49 PM
JoeP's Avatar
JoeP JoeP is offline
Chaos Defrost
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXMXCDLXXIX
Images: 18
Default Re: Tables

1. :w00t: and even :qwoot:

2. "No Thread specified." :psst: I think StGaensler;900270 was posting on a different board.

3.
Quote:
Originally Posted by viscousmemories View Post
I haven't even read the instructions I pasted above.
If in doubt, read the instructions?

4.
Quote:
Originally Posted by viscousmemories View Post
Not really, but they'll come in handy from time to time, eg. for scorecards when we have games and competitions.
They'll come in handy for smilie art. What were you thinking?
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
  #17  
Old 11-14-2007, 07:51 PM
JoeP's Avatar
JoeP JoeP is offline
Chaos Defrost
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXMXCDLXXIX
Images: 18
Default Re: Tables

Next up, that reply in a table.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
  #18  
Old 11-14-2007, 07:53 PM
JoeP's Avatar
JoeP JoeP is offline
Chaos Defrost
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXMXCDLXXIX
Images: 18
Default Re: Tables

#Lookit
1.:w00t: and even :qwoot:
2."No Thread specified." :psst: I think StGaensler;900270 was posting on a different board.
3.
Quote:
Originally Posted by viscousmemories View Post
I haven't even read the instructions I pasted above.
 
If in doubt, read the instructions?
 
4.
Quote:
Originally Posted by viscousmemories View Post
Not really, but they'll come in handy from time to time, eg. for scorecards when we have games and competitions.
 
They'll come in handy for smilie art. What were you thinking?
 
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Thanks, from:
viscousmemories (11-14-2007)
  #19  
Old 11-14-2007, 07:58 PM
JoeP's Avatar
JoeP JoeP is offline
Chaos Defrost
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXMXCDLXXIX
Images: 18
Default Re: Tables

Good. The quote shading is not quite perfect, but otherwise the layout is good.

What about autonum?

 Lookee here
1:w00t: and even :qwoot:
2"No Thread specified." :psst: I think StGaensler;900270 was posting on a different board.
3
Quote:
Originally Posted by viscousmemories View Post
4
I haven't even read the instructions I pasted above.
5
If in doubt, read the instructions?
6
Quote:
Originally Posted by viscousmemories View Post
7
Not really, but they'll come in handy from time to time, eg. for scorecards when we have games and competitions.
8
They'll come in handy for smilie art. What were you thinking?

Hmm. It's a bit overenthusiastic. I suppose quotes look like embedded tables.
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
  #20  
Old 11-14-2007, 08:09 PM
JoeP's Avatar
JoeP JoeP is offline
Chaos Defrost
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXMXCDLXXIX
Images: 18
Default Re: Tables

:bfish: :bfish: :bfish: :bfish: :bfish: :bfish:
:bfish: :bfish: :bfish: :bfish: :bfish: :bfish: :bfish:
:bfish: :ofish::bfish::bfish::bfish::ofish: :bfish: :ofish::bfish:
:bfish: :bfish: :bfish: :bfish:  
:bfish: :bfish: :bfish: :bfish: :bfish:
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Thanks, from:
Stormlight (11-15-2007)
  #21  
Old 11-14-2007, 08:12 PM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Austin, TX
Gender: Male
Posts: XXMXCDXXXIX
Blog Entries: 1
Images: 9
Default Re: Tables

Brilliant! :clap:
__________________
Reply With Quote
  #22  
Old 11-14-2007, 08:13 PM
curses's Avatar
curses curses is offline
Coffee, tea, anti-Nazi
 
Join Date: Mar 2005
Location: Atlanta, GA
Gender: Female
Posts: XMMDCXXXIX
Blog Entries: 12
Images: 69
Default Re: Tables

Smilie braids to a whole new level! I like it.
__________________
:peachglare::peachglare::peachglare::peachglare:
Reply With Quote
  #23  
Old 11-14-2007, 08:14 PM
JoeP's Avatar
JoeP JoeP is offline
Chaos Defrost
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXMXCDLXXIX
Images: 18
Default Re: Tables

Quote:
css=myclass
Defines the aditional css class of the whole table. Possible values have to be defined in admincp.
The value is prepended by stg_table_ so the resulting css class with above example would be stg_table_myclass
The css code has to be added to "Additional CSS Definitions" of your style (AdminCP -> Styles & Templates -> Style Manager -> (Dropdown) Main CSS -> Additional CSS Definitions)
Is there / can you define a class with no shading and no borders? For smilie art perhaps...
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
  #24  
Old 11-14-2007, 08:45 PM
viscousmemories's Avatar
viscousmemories viscousmemories is offline
Admin
 
Join Date: Apr 2004
Location: Austin, TX
Gender: Male
Posts: XXMXCDXXXIX
Blog Entries: 1
Images: 9
Default Re: Tables

I just broke my brain trying to figure out how to do that, but here's the add-on thread if you want to give it a stab.
__________________
Reply With Quote
  #25  
Old 11-14-2007, 09:22 PM
JoeP's Avatar
JoeP JoeP is offline
Chaos Defrost
 
Join Date: Jul 2004
Location: England/Miisaland
Gender: Male
Posts: XXMXCDLXXIX
Images: 18
Default Re: Tables

:thankee: but also :glare:
__________________

:roadrun:
Free thought! Please take one!

:unitedkingdom:   :southafrica:   :unitedkingdom::finland:       :eur:       :m&ms::m&ms::twix::twix: (rotated 180°):m&ms::m&ms:
Reply With Quote
Reply

  Freethought Forum > Public Works > Forum Administration


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

 

All times are GMT +1. The time now is 08:09 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Page generated in 1.33096 seconds with 13 queries