PDA

View Full Version : vB Code samples


dim4sim
2nd Apr 2012, 07:50 PM
Hello,

I am wondering if there is some documentation, better than the one that is already on the site (http://modthesims.info/misc.php?do=bbcode), to assist with various vB code woes. I have come to the conclusion that the implementation on the site is anything by standard, and a lack of examples really makes it difficult to do certain things. Some of those things include creating tables. It took me about an 30 minutes of searching and blind experimentation, before I discovered that commas separate columns. I still have no idea how to put a comma in a cell though.


Thanks.

Mootilda
3rd Apr 2012, 01:44 AM
As far as I can tell, you can't put a comma into a table cell. How about using some other form of punctuation?

ellacharmed
3rd Apr 2012, 04:12 AM
I usually just click the Reply button to see how the poster does something I want to copy. :)

dim4sim
3rd Apr 2012, 05:23 AM
As far as I can tell, you can't put a comma into a table cell. How about using some other form of punctuation?

But without those commas, I can't be grammatically correct inside of table cells. Besides, the delimiter for these kinds of things is usually a much less commonplace character, such as the |. Incidentally, when that failed, I turned to Google, which also failed me.

I would even take wiki table markup--which I feel makes no sense to a web developer--over something that is not standardized.

||header||header||header||
|cell|cell|cell|

That is a table in the wonderful world of Wiki. I know from adding documentation at work, for the code libraries that I write.


Well, thanks for the help.

Delphy
3rd Apr 2012, 08:55 PM
If I change the table format now it'll mean all existing tables break, but you are right that using a comma means you can't put a comma inside the cell. It's a little annoying, but workable.

I never added examples becuase I didn't expect it to take off as much as it did. :)

dim4sim
3rd Apr 2012, 09:33 PM
Thanks for the reply Delphy :)

Is is possible to add an option to the table tag, allowing for a delimiter override? That way, the "," separator can remain as the default, keeping it backwards compliant.
Let me know if I can help in any way. My php is a little rusty, but I can be of assistance.


Best,
dim4sim

Delphy
8th Aug 2012, 09:47 PM
Tables now accept | as the delimeter as well as commas.