[Tutorial] Creating Table BBCodes

New BBCodes, tips and tricks, hacks and MODs for the BBCode system

Re: [Tutorial] Creating Table BBCodes

Postby MvsB » 09 Nov 2007, 06:27

Scooter, very interesting.

have you any ScreenShot?
sorry for my bad english i am spanish.
MX-Publisher The next best portal to phpBB 3 Olympus!
MvsB
Cadet II
Cadet II
 
Posts: 20
Joined: 17 Feb 2007, 04:24
Favorite Team: Real Madrid F. C.
Gender: Male


Re: [Tutorial] Creating Table BBCodes

Postby Scooter » 09 Nov 2007, 08:31

I included a test display, but you can view it here:

http://defendindependence.org/Forum/viewtopic.php?f=13&t=42
Scooter
Ensign
Ensign
 
Posts: 79
Joined: 03 Nov 2007, 00:16
Gender: Male

Re: [Tutorial] Creating Table BBCodes

Postby frippz » 13 Nov 2007, 16:19

I'd like to create a more accessible table (no styling required, just for clean tabular data). That means using thead, th and tbody as well.

Code: Select all
<table>
  <thead>
    <tr>
      <th scope="col"></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td></td>
    </tr>
  </tbody>
</table>


However, creating the corresponding BBCode has proven difficult. Anyone that can lend a hand with this?
frippz
Crewman
Crewman
 
Posts: 2
Joined: 13 Nov 2007, 16:16
Gender: Male

Re: [Tutorial] Creating Table BBCodes

Postby Scooter » 13 Nov 2007, 18:48

you cant setup the whole table using one BBCode, because there is no way currently for the parser to know how many columns and rows there will be so you will need at the least need a table code, tr, code, and td code.
Scooter
Ensign
Ensign
 
Posts: 79
Joined: 03 Nov 2007, 00:16
Gender: Male

Re: [Tutorial] Creating Table BBCodes

Postby Sniper_E » 13 Nov 2007, 23:03

See Scooter, I knew you were going to hurt someone's brain with all that detailed stuff. :rotfl:
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!
User avatar
Sniper_E    
STG Jedi Master
STG Jedi Master
 
Posts: 7003
Joined: 31 May 2006, 06:29
Location: Shreveport, LA
Favorite Team: The STG Team
Gender: Male
phpBB Knowledge: 6

Re: [Tutorial] Creating Table BBCodes

Postby frippz » 14 Nov 2007, 11:07

Thanks! That got me in the right direction. :)
frippz
Crewman
Crewman
 
Posts: 2
Joined: 13 Nov 2007, 16:16
Gender: Male

Re: [Tutorial] Creating Table BBCodes

Postby Gumfuzi » 22 Apr 2008, 09:55

wow, so many different possibilities for getting a table...

viewtopic.php?p=4255#p4255
that seems to be the easiest one, but it doesn't work for me (3.0.1) - does someone has this in use on a 3.0.1?
User avatar
Gumfuzi
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 164
Joined: 19 Jan 2007, 06:49
Location: Linz, Austria
Favorite Team: none
Gender: Male
phpBB Knowledge: 8

Re: [Tutorial] Creating Table BBCodes

Postby derkubi » 18 May 2008, 10:04

Hello

I have a problem . I am using the bbcode of the first post and it works well , but ..

take a look : HERE

there is space between the text and the table but dont know why ....

EDIT : OK , no space between the bbcodes :banghead:
Sorry for my bad english ...
User avatar
derkubi
Cadet I
Cadet I
 
Posts: 12
Joined: 19 Feb 2008, 04:56
Gender: Male
phpBB Knowledge: 4

Re: [Tutorial] Creating Table BBCodes

Postby thepatriot » 29 Nov 2008, 20:08

So how would you combine all of these links into one, working, code?
thepatriot    
Cadet I
Cadet I
 
Posts: 14
Joined: 16 Nov 2008, 20:29
Favorite Team: USC
Gender: Male
phpBB Knowledge: 2

Re: [Tutorial] Creating Table BBCodes

Postby Highway of Life » 29 Nov 2008, 20:11

Can you be more specific about your question? :scratch:
Watch out! I might do a code wheelie!

User avatar
Highway of Life    
STG Jedi Master
STG Jedi Master
 
Posts: 10458
Joined: 08 May 2006, 05:23
Location: Beware of Programmers carrying screwdrivers
Gender: Male
phpBB Knowledge: 10

PreviousNext

Return to BBCode System

Who is online

Users browsing this forum: No registered users and 1 guest