Discovery Gaming Community
BBCodes for colored tables - Printable Version

+- Discovery Gaming Community (https://discoverygc.com/forums)
+-- Forum: Rules & Requests (https://discoverygc.com/forums/forumdisplay.php?fid=6)
+--- Forum: Site & Forum Feedback (https://discoverygc.com/forums/forumdisplay.php?fid=14)
+--- Thread: BBCodes for colored tables (/showthread.php?tid=138003)

Pages: 1 2


BBCodes for colored tables - Thyrzul - 04-11-2016

I'm having things like [table=#XXXXXX] and [td=#XXXXXX] in mind. Is it possible?

EDIT:



Am I doing it right?


RE: BBCodes for colored tables - SnakeLancerHaven - 04-11-2016

what's that even, explain? What you mean with "table"


RE: BBCodes for colored tables - Mephistoles - 04-11-2016

First example of a table that springs to mind would be the formatting used for the GMG diplomacy list.


AlliedFriendlyNeutralUnfriendlyHostile
Interspace CommerceBlood DragonsBretonian CorporationsGaiansCorsairs
Kishiro TechnologiesGolden ChrysanthemumsBretonia Armed ForcesLane HackersFarmers Alliance
ZonersBretonia PoliceLiberty RoguesHogosha
Gallic CorporationsMollysKruger Minerals
Gallic Royal NavyRed HessiansOutcasts
Gallic Royal PoliceSamura IndustriesXenos

This is a table. I would imagine Thyr is asking about the lines in the table being coloured.


RE: BBCodes for colored tables - Thyrzul - 04-12-2016

Perhaps even a [tr=#XXXXXX] if we want to set the same border color for the whole row in one code.

Alternatively, since text inside the cells do not inherit external formatting, color codes around the [table], [tr] and [td] tags could also color the table and cell borders.

EDIT: I've just noticed though, that when replying (not quick reply) below the text box where you can review the lates n posts (afaik 10) table boundaries aren't displayed and text is like just floating there.



RE: BBCodes for colored tables - Thyrzul - 05-09-2016

[Image: IXVVviA.png]

I guess I've found where in which .css I can edit this specific table, but I still got no clue how to connect it with php and bbcodes. Anybody any idea?


RE: BBCodes for colored tables - Machelvanius - 05-09-2016

The only way I know how to dynamically change a .css is through a java script. But I'm not sure how that would integrate into bbcode or if it's even relevant.


RE: BBCodes for colored tables - Machelvanius - 05-10-2016

I found this, is this relevant to what you want?

Code:
<head>
<title>Document Title</title>
<link href='YourCSSFile.css' rel='stylesheet' type='text/css' />
</head>
<body>

<?php

echo "Here are the PHP tags you can put some PHP code into.";

?>

<div class='box1'>Some text</div>

</body>
</html>

Full Thread is here


RE: BBCodes for colored tables - Thyrzul - 05-10-2016

I'm not sure, maybe. It would also be useful to know how plugin code looks like. And of course being sure if global.css is indeed what I think it is, and according to it's name it really applies to the whole forum.



RE: BBCodes for colored tables - Alley - 05-10-2016

(05-09-2016, 09:44 PM)Thyrzul Wrote:
[Image: IXVVviA.png]

I guess I've found where in which .css I can edit this specific table, but I still got no clue how to connect it with php and bbcodes. Anybody any idea?

You will need someone to implement a custom bbcode for this, or modify the current table bbcode to add support for this.
Your best bet for this will be King Boo, I have no idea when I'd be able to spend some time on this.


RE: BBCodes for colored tables - Thyrzul - 05-10-2016

We had a short talk, he didn't respond to my latest crazy idea yet.