• 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  


Messages In This Thread
New BBCode tags implemented - by Alex. - 11-15-2017, 12:40 AM
RE: New BBCode tags implemented - by Sombs - 11-15-2017, 12:45 AM
RE: New BBCode tags implemented - by Vulkhard Muller - 11-15-2017, 12:49 AM
RE: New BBCode tags implemented - by SnakThree - 11-18-2017, 11:31 PM
RE: New BBCode tags implemented - by Corile - 11-19-2017, 12:08 AM
RE: New BBCode tags implemented - by Alex. - 11-19-2017, 12:12 AM
RE: New BBCode tags implemented - by Corile - 11-19-2017, 12:13 AM
RE: New BBCode tags implemented - by SnakThree - 11-19-2017, 09:14 AM

  • 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