Sponsored Content
The Lounge What is on Your Mind? Status of Badging System - Beta 1 Post 303028553 by Neo on Thursday 10th of January 2019 10:58:17 AM
Old 01-10-2019
Update:

Based on testing, I just changed the "Time A Member" badge (the clock) logic to:

Code:
if ($time_inactive < $year) {
    if ($years_a_member >= 10) {
        $color['fajoin_time'] = 'black';
    } elseif ($years_a_member >= 5) {
        $color['fajoin_time'] = 'indigo';
    } elseif ($years_a_member >= 2) {
        $color['fajoin_time'] = 'blue';
    } elseif ($years_a_member >= 1) {
        $color['fajoin_time'] = 'limegreen';
    } else {
        $color['fajoin_time'] = 'lightgray';
    }
} else {
    $color['fajoin_time'] = 'red';
}

Basically, changed the colors to make the badge more accurate and appealing.

Note: Some recent members (over the past week) with only a few years active here may see a badge color change.
 

6 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

system status report script

hi i m new to this forum as well as UNIX. I've got an assignment but i don't know how can I start it. can anyone please help to tell me how can I start it? I added here few lines from my assignment. In industry, it is common for a single organisation to provide technical support for a... (0 Replies)
Discussion started by: moco
0 Replies

2. Shell Programming and Scripting

System status query script

Hi, I am trying to access and read certain lines from a configuration XML file on multiple servers (within the LAN). Fortunately the file name and path is always the same for all servers. An example extract of the file is as follows: <DUMMY-SMSC>false</DUMMY-SMSC> ... (2 Replies)
Discussion started by: jaz8212
2 Replies

3. Homework & Coursework Questions

Listing Live System Status

1. Edit a script named update.sh that generates status.html in your web directory: ~/public_html/. I need to write specific commands to show each specific item 2. The generated webpage should include information related to: UNIX : kernel version of ed-lab server USER : number of users on the... (13 Replies)
Discussion started by: devinj
13 Replies

4. What is on Your Mind?

New Badging System - Badges Prototype Beta 1 (Badges Only)

Today I mapped out the new badging system using FA icons, Beta 1 in no particular order except a 6 x 8 grid: https://www.unix.com/members/1-albums215-picture991.png The prototype HTML code for this layout: <style> .fa-badge-grid { font-size: 1.5em; } .row { ... (38 Replies)
Discussion started by: Neo
38 Replies

5. Web Development

Notes with Ravinder on Badging System Development Part II

Part II: Current PHP file Beta 73 Not Optimized: <?php $version = 73; $query = "SELECT * FROM " . TABLE_PREFIX . "user WHERE userid='" . $uid . "'"; $usertable = $db->query_read_slave($query); $modaluser = $db->fetch_array($usertable); $modaluser = gmdate("d F Y", $modaluser); $modaluser... (48 Replies)
Discussion started by: Neo
48 Replies

6. What is on Your Mind?

Badging System: UNIX.COM Bug Hunter Badge (New)

I have moved the bug badge out of reserve and into the main stream. Basically, I will assign a color level like the others, based on who has made a good actionable bug report for UNIX.COM. "Good" means screenshots, links, and even details from web dev tools our the HTML source code. So far,... (0 Replies)
Discussion started by: Neo
0 Replies
setcolor(1F)							   FMLI Commands						      setcolor(1F)

NAME
setcolor - redefine or create a color SYNOPSIS
setcolor color red_level green_level blue_level DESCRIPTION
The setcolor command takes four arguments: color, which must be a string naming the color; and the arguments red_level, green_level, and blue_level, which must be integer values defining, respectively, the intensity of the red, green, and blue components of color. Intensi- ties must be in the range of 0 to 1000. If you are redefining an existing color, you must use its current name (default color names are: black, blue, green, cyan, red, magenta, yellow, and white). setcolor returns the color's name string. EXAMPLES
Example 1: A sample output of setcolor command. The following is an example of the arguments that setcolor takes: `setcolor blue 100 24 300` BUILT-IN FMLI ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) SunOS 5.10 5 Jul 1990 setcolor(1F)
All times are GMT -4. The time now is 01:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy