• Home
  • Index
  • Search
  • Download
  • Server Rules
  • House Roleplay Laws
  • Player Utilities
  • Player Help
  • Forum Utilities
  • Returning Player?
  • Toggle Sidebar
Interactive Nav-Map
Tutorials
New Wiki
ID reference
Restart reference
Players Online
Player Activity
Faction Activity
Player Base Status
Discord Help Channel
DarkStat
Server public configs
POB Administration
Missing Powerplant
Stuck in Connecticut
Account Banned
Lost Ship/Account
POB Restoration
Disconnected
Member List
Forum Stats
Show Team
View New Posts
View Today's Posts
Calendar
Help
Archive Mode




Hi there Guest,  
Existing user?   Sign in    Create account
Login
Username:
Password: Lost Password?
 
  Discovery Gaming Community Rules & Requests Site & Forum Feedback
« Previous 1 2 3 4 5 … 49 Next »
BBCodes for colored tables

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

Pages (2): 1 2 Next »
BBCodes for colored tables
Offline Thyrzul
04-11-2016, 12:37 AM, (This post was last modified: 05-11-2016, 09:05 PM by Thyrzul.)
#1
The Council
Posts: 4,684
Threads: 115
Joined: Sep 2011

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

EDIT:


[+]FOR ADMINS - IMPLEMENTATION
Title: Coloured tables
Description: Adds tables with custom coloured border.
Regular expression:
Code:
\[ctable=([\w\#]{4,11})\]\[\/ctable\]

Replacement:
Code:
<table style="width:100%; box-shadow:inset 0 0 0 1px #444444,0px 0 0 1px $1;"><tbody></tbody></table>

Enabled: Yes
Parse order: 0
[+]FOR ADMINS - IMPLEMENTATION
Title: Coloured cells
Description: Adds cells with custom coloured border.
Regular expression:
Code:
\[ctd=([\w\#]{4,11})\]\[\/ctd\]

Replacement:
Code:
<td style="border:1px solid $1!important;"></td>

Enabled: Yes
Parse order: 0

Am I doing it right?

[Image: OFPpYpb.png][Image: N1Zf8K4.png][Image: LnLbhul.png]
Reply  
Offline SnakeLancerHaven
04-11-2016, 01:22 AM,
#2
Volgograd Industrial
Posts: 2,873
Threads: 238
Joined: Feb 2012

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

[Image: ?key=dc385ef2304f0cab6f94da42bc2ff703cf5...5BS0UucG5n]
R.I.P Tabris...
Youtube - Twitch - My old Account
  Reply  
Offline Mephistoles
04-11-2016, 10:26 AM,
#3
Gas Miners Guild
Posts: 2,347
Threads: 91
Joined: Jun 2013

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.

Sigma & GMG Discord Chat: https://discord.gg/d4j3W4v

[Image: stDvDRX.jpg]
Reply  
Offline Thyrzul
04-12-2016, 09:57 AM, (This post was last modified: 04-12-2016, 09:59 AM by Thyrzul.)
#4
The Council
Posts: 4,684
Threads: 115
Joined: Sep 2011

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.

[Image: OFPpYpb.png][Image: N1Zf8K4.png][Image: LnLbhul.png]
Reply  
Offline Thyrzul
05-09-2016, 09:44 PM,
#5
The Council
Posts: 4,684
Threads: 115
Joined: Sep 2011

[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?

[Image: OFPpYpb.png][Image: N1Zf8K4.png][Image: LnLbhul.png]
Reply  
Offline Machelvanius
05-09-2016, 11:34 PM, (This post was last modified: 05-10-2016, 01:51 AM by Machelvanius. Edit Reason: Add Code )
#6
Literary Enthusiast
Posts: 288
Threads: 45
Joined: Jul 2013

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.

THE IMBALANCE OF POWER is a construct of THE MIND systemic to the reactions between the subjects of the system. POWER is given by those who acknowledge such power. REFUSAL to acknowledge power removes that power for THE REBEL; however, it produces anomalies in interactions throughout the system. These ANOMOLIES cause the UNPREDICTABLE nature of the system that all users CRAVE.
Reply  
Offline Machelvanius
05-10-2016, 01:52 AM,
#7
Literary Enthusiast
Posts: 288
Threads: 45
Joined: Jul 2013

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

THE IMBALANCE OF POWER is a construct of THE MIND systemic to the reactions between the subjects of the system. POWER is given by those who acknowledge such power. REFUSAL to acknowledge power removes that power for THE REBEL; however, it produces anomalies in interactions throughout the system. These ANOMOLIES cause the UNPREDICTABLE nature of the system that all users CRAVE.
Reply  
Offline Thyrzul
05-10-2016, 08:24 PM,
#8
The Council
Posts: 4,684
Threads: 115
Joined: Sep 2011

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.

[Image: OFPpYpb.png][Image: N1Zf8K4.png][Image: LnLbhul.png]
Reply  
Offline Alley
05-10-2016, 08:37 PM,
#9
Member
Posts: 4,524
Threads: 406
Joined: Jun 2009

(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.

Laz Wrote: Alley was right.
Reply  
Offline Thyrzul
05-10-2016, 09:59 PM,
#10
The Council
Posts: 4,684
Threads: 115
Joined: Sep 2011

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

[Image: OFPpYpb.png][Image: N1Zf8K4.png][Image: LnLbhul.png]
Reply  
Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



Powered By MyBB, © 2002-2026 MyBB Group. Theme © 2014 iAndrew & DiscoveryGC
  • Contact Us
  •  Lite mode
Linear Mode
Threaded Mode