• 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): « Previous 1 2
BBCodes for colored tables
Offline Thyrzul
05-11-2016, 09:05 PM,
#11
The Council
Posts: 4,684
Threads: 115
Joined: Sep 2011

I guess I got what's needed, if not, anyone can feel free to correct me. Copy/pasted into OP too.

[+]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 Corile
05-12-2016, 04:59 PM, (This post was last modified: 05-12-2016, 05:00 PM by Corile.)
#12
C::iemka pl
Posts: 3,248
Threads: 267
Joined: Apr 2014

(05-11-2016, 09:05 PM)Thyrzul Wrote: Am I doing it right?
No.

With the way you wrote your regexes, you can only make a code that takes one parameter, which is the table colour.

In other words:
Code:
[ctable=#fff][/ctable]
will be matched, however

Code:
[ctable=#fff]ANYTHING[/ctable]
will not.

I can write the mycode for this if some admin can confirm that it will be implemented when I'm done with it. Otherwise no reason to waste time.




Reflections on the Revolution in Gallia
Custodi // High City of Heraklion // The Cult of Archangels
Log Filter // Post Creator // Manhattan
  Reply  
Offline Thyrzul
05-13-2016, 12:45 PM,
#13
The Council
Posts: 4,684
Threads: 115
Joined: Sep 2011

Oh right, I guess I forgot to add a $2 in between the tbody (and in the other case the tb) tags, though I've got no clue what parameter syntax would represent technically unlimited and arbitrary content.

[Image: OFPpYpb.png][Image: N1Zf8K4.png][Image: LnLbhul.png]
Reply  
Offline Thyrzul
05-24-2018, 02:18 PM,
#14
The Council
Posts: 4,684
Threads: 115
Joined: Sep 2011

Even after two years I still think this would be a good idea.

[Image: OFPpYpb.png][Image: N1Zf8K4.png][Image: LnLbhul.png]
Reply  
Offline Laz
09-16-2018, 02:05 PM,
#15
(Sorta) Retired Code Monkey
Posts: 1,904
Threads: 106
Joined: Jan 2014

Bumping for notice. I also think this is a good idea.

Reply  
Offline Petitioner
09-25-2018, 03:52 AM,
#16
a e s t h e t i c
Posts: 3,369
Threads: 294
Joined: Dec 2009
Staff roles:
Server Administrator

This could be cool for embedding guncams in flight reports, for example.

[Image: gamer5000.gif]

Recruitment | Task Force Prometheus | ICN FIRESTORM
  Reply  
Pages (2): « Previous 1 2


  • View a Printable Version
  • Subscribe to this thread


Users browsing this thread:
1 Guest(s)



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