• 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 Discovery General News and Announcements
« Previous 1 … 12 13 14 15 16 … 46 Next »
New BBCode tags implemented

Server Time (24h)

Players Online

Active Events - Scoreboard

Latest activity

New BBCode tags implemented
Offline Alex.
11-15-2017, 12:40 AM,
#1
Developer
Posts: 3,802
Threads: 144
Joined: Aug 2009
Staff roles: Server Manager
Coding Dev
Moderator

@Corile has provided some code to implement a few BBCode tags.
These were done a while ago, I just never got around to writing a post for them.
If you want to try these out please use the 'Preview' function.



Here's a couple to assist in compliance with rule 2:

imgw automatically restricts display of images into the maximum width of 700px required by rule 2.1:
Code:
[imgw]https://i.redd.it/t74qxr8ycmnz.jpg[/imgw]

sigimg automatically restricts display of images into the 700*250px box required by rule 2.2:
Code:
[sigimg]https://i.redd.it/t74qxr8ycmnz.jpg[/sigimg]

In both cases, the URL provided must end in jpg/png/gif/jpeg. Also note that you must still ensure that signature images are less than 1MB in size.



anchor generates a hidden element that can be linked to directly. You don't add an end tag. You provide it with up to 5 characters (alphanumeric or underscore) which you can then link to with...
Code:
[anchor=abcde]

a generates a link that points to an anchor element generated with the above. Upon clicking on it the browser will jump to the target part of the page. You need to provide the ID of the anchor.
Code:
[a=abcde]Example[/a]



rep generates a reputation bar display on the forums.
The syntax for this is a bit complicated. It's slightly more generic than it generally (assuming you're representing a single fixed reputation and not some sort of range) needs to be - you can provide four colours (the start and end of two gradients - one ending at completely neutral and one beginning at completely neutral) and the starting and ending position (where 0 is most hostile and 100 most friendly, each block is 5).
This is slightly off because the starting point usually seems to need 1 added to it, but reference (again provided by @Corile):
[Image: MbG4Ojz.png]

So for negative reputations you'll give it the colours #f00,#fff,transparent,transparent, ending point 50 and your own start point. In this example I'll use 11 as each block shown is 5, then we add 1 extra for the starting point. This shows Freelancer reputation -0.8:
Code:
[rep=11,50]#f00,#fff,transparent,transparent[/rep]


For positive reputations you'll give it the colours transparent,transparent,#fff,#0f0, starting point 51 and your own end point. In this example I'll use 90% as each block is 5. This shows Freelancer reputation 0.8:
Code:
[rep=51,90]transparent,transparent,#fff,#0f0[/rep]


FLHook suggestions
All other dev queries
Please only PM me through the forums for things that need to be private like anticheat etc.
[Image: dI8iG0a.png]
Reply  
Offline Sombs
11-15-2017, 12:45 AM,
#2
Three orange cats in a mech
Posts: 6,806
Threads: 502
Joined: Feb 2014

Kudos to you two, that's pretty cool and better than making graphics for each repsheet. Good job, go celebrate your birthday now! Smile




Uncharted System Stories: 18 | 32 | 34 | 37 | 38 | 85

Templates: Character | Transmissions

Alternative Soundtracks


Reply  
Offline Vulkhard Muller
11-15-2017, 12:49 AM,
#3
20yrs & I Only Got This Title
Posts: 2,365
Threads: 422
Joined: Feb 2012

Ooooh nice I do like this ALOT
Kudos
Reply  
Offline SnakThree
11-18-2017, 11:31 PM,
#4
Member
Posts: 9,091
Threads: 337
Joined: Mar 2010

Anchors are amazing.

Reputations are brilliant. However, I must ask, why can't we have the regular hex color syntax? And if we can't, how does one convert regular ones to these shorter one?

[+]From wiki diplomacy template
#cc0000
#dd2b2b
#dd5757
#ee8282
#ffadad
#ffd9d9
#ffffff
#ffffff
#ffffff
#ffffff
#ffffff
#ffffff
#d9ffd9
#adffad
#82ee82
#57dd57
#2bdd2b
#00cc00

[Image: rTrJole.png][Image: LJ88XSk.png]
[Image: ka0AQa5.png][Image: QwWqCS8.png]
  Reply  
Offline Corile
11-19-2017, 12:08 AM, (This post was last modified: 11-19-2017, 12:10 AM by Corile.)
#5
C::iemka pl
Posts: 3,248
Threads: 267
Joined: Apr 2014

Quote:why can't we have the regular hex color syntax

You can. The code should support shorthand hex, regular hex, and css colour names.



Code:
[rep=30,70]gold,#fff000,crimson,#fff[/rep]




Reflections on the Revolution in Gallia
Custodi // High City of Heraklion // The Cult of Archangels
Log Filter // Post Creator // Manhattan
  Reply  
Offline Alex.
11-19-2017, 12:12 AM,
#6
Developer
Posts: 3,802
Threads: 144
Joined: Aug 2009
Staff roles: Server Manager
Coding Dev
Moderator

(11-18-2017, 11:31 PM)SnakThree Wrote: why can't we have the regular hex color syntax? And if we can't, how does one convert regular ones to these shorter one?

You can, the shorter version is just an example: https://developer.mozilla.org/en-US/docs...and_rgba()
MDN Wrote:The three-digit notation (#RGB) is a shorter version of the six-digit form (#RRGGBB)

FLHook suggestions
All other dev queries
Please only PM me through the forums for things that need to be private like anticheat etc.
[Image: dI8iG0a.png]
Reply  
Offline Corile
11-19-2017, 12:13 AM, (This post was last modified: 11-19-2017, 12:15 AM by Corile.)
#7
C::iemka pl
Posts: 3,248
Threads: 267
Joined: Apr 2014

Also I'll do a bit of a shameless plug: if you want to see how these new codes look in the wild Custodi info page has made use of the anchors while the LPI one uses repbars.

edit:
Also something I just remembered is that you can directly link to an anchor, so for instance if you wanted to link directly to Custodi diplomacy, you can use an anchor to do that, just append the link with #anchor-abcde.




Reflections on the Revolution in Gallia
Custodi // High City of Heraklion // The Cult of Archangels
Log Filter // Post Creator // Manhattan
  Reply  
Offline SnakThree
11-19-2017, 09:14 AM, (This post was last modified: 11-19-2017, 09:25 AM by SnakThree.)
#8
Member
Posts: 9,091
Threads: 337
Joined: Mar 2010

Right. Means I made a mistake during nighttime editing. Here you go then:





















[Image: rTrJole.png][Image: LJ88XSk.png]
[Image: ka0AQa5.png][Image: QwWqCS8.png]
  Reply  


  • 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