Current Array of Badges (Beta 1)


 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Current Array of Badges (Beta 1)
# 1  
Old 01-08-2019
Current Array of Badges (Beta 1)

Here is the current array of the short description of badges for the new prototype badging system (Beta 1) with 42 icons allocated (prototype logic written) and 6 reserved (for future use);

Code:
<?php
$badges_desc = array(
    "fauser" => "Total Post Count",
    "faaward" => "First Post",
    "fajediorder" => "100 Posts",
    "faphoenix" => "500 Posts",
    "fajedi" => "1,000 Posts",
    "faatom" => "10,000 Posts",
    "fascale" => "Moderator",
    "facrab" => "Order of the Crab",
    "fawizard" => "Order of the Wizards's Hat",
    "facrow" => "Order of the Raven",
    "fahippo" => "Order of the Hippo",
    "faspider" => "Order of the Spider",
    "fadragon" => "Order of the Dragon",
    "fabuilding" => "Administrator",
    "fabishop" => "Forum Advisor",
    "facity" => "Web Dev Ops",
    "faflask" => "Formulator",
    "fathumbsup" => "Total Thanks Received",
    "fatrophy" => "100 Thanks Received",
    "fachalkboardteacher" => "1,000 Thanks Received",
    "fashieldalt" => "2,000 Thanks Received",
    "fastroopwafel" => "3,000 Thanks Received",
    "fafirstorderalt" => "4,000 Thanks Received",
    "faidbadge" => "Member Profile",
    "faaddressbook" => "Contact Methods",
    "fabtc" => "Bits",
    "fauniversity" => "Bits Banker",
    "fausergraduate" => "Activity",
    "farocket" => "Thanks This Past Month",
    "facomment" => "Post This Past Month",
    "faterminal" => "Discussions Started This Past Month",
    "fabolt" => "Posts Per Day",
    "faknight" => "Discussions Started",
    "fadownload" => "Attachments Uploaded",
    "fatags" => "Tags Added",
    "faeye" => "Discussion Started Views",
    "fainfraction" => "Infraction Points",
    "fathanks_given" => "Thanks Given",
    "fapatreon" => "Patreon Sponsor",
    "fajoin_time" => "Years A Member",
    "fahistory" => "Days In A Row Active",   // May change this to weeks instead of days....
    "fashare" => "Shared Project or Story",
    "farook" => "Reserved",
    "fabug" => "Reserved",
    "faking" => "Reserved",
    "facode" => "Reserved",
    "facogs" => "Reserved",
    "fapawn" => "Reserved",
);

When I am back at my desk (currently out of town), I plan to:
  • Write and test the logic for the "Days In A Row Active" (may change this to weeks instead of days....) badge and change the Font Awesome icon for this new badge.
  • Continue to test the "Badge Alert" function, which works OK but needs a bit of refinement and more testing, and then implement this for all.

Then, after that is working OK, Beta 1 will be done; and I'll start on Beta 2; but before I go to Beta 2, I will spend a few days to:
  • Rest and Relax from Coding?
  • Rewrite and clean up the rapid prototyping PHP code (create functions, include files, arrays, loops, as needed).
  • Open a discussion thread for comments and questions on Beta 1.
  • Do a write up describing each badge and the description and states / levels (colors).

In a nutshell, for colors:
  • Black - Highest Badge Level
  • Indigo - Level Below Black
  • Blue - Level Below Indigo
  • Green - Starter / Beginner Level (Level Below Blue)
  • Light Gray - Neutral (No Badge)
  • Orange Red - Below Neutral
  • Red - Below Orange Red

Most badges go from Light Gray (Neutral) to Black (similar to a martial arts progressions, but not exactly); however other badges are just "awarded", so they are either Light Gray (not awarded) or Black (awarded). A small number of badges, like infractions or lack of forum activity can be "less than neutral", Orange Red or Red (martial arts progression does not work this way, so it's not strictly a martial arts color scheme, obviously).

At this time, I don't have time to write all of this up in the form of a "users manual" (like most developers) and detail in non technical terms, but when I clean up the PHP code, I will publish that code and make the actual code (logic) public so everyone can see the exact logic behind each badge.

Then, after some time, and things stabilize, someone will do a complete writeup. (I will ask someone to volunteer to do the write up).

Thanks for your patience. It's a lot of coding, but the end of the prototype is coming soon!
These 4 Users Gave Thanks to Neo For This Post:
# 2  
Old 01-08-2019
Also, I want to thank everyone for their patience as we continue to develop our new badging system.

It's going to be great and these things take time; so that you for your patience during this growth and transition phase.

When the badging system is developed it will be easier for moderators to moderate the forums and all moderation will be completely transparent to all members. In addition, the badging system will help all members understand their progress, activity and participation in the forums.

Thank you again for your patience as I code this new system for the benefit of everyone.
These 4 Users Gave Thanks to Neo For This Post:
# 3  
Old 01-08-2019
FYI,

Please see this first draft function to check the badges:

Function check_badges($color, $uid, $limit = 300, $_DEBUG = true)
# 4  
Old 01-08-2019
I think the implementation has been really well done. The badge system the Fedora project uses is quite nice too.
This User Gave Thanks to Swathe For This Post:
# 5  
Old 01-09-2019
Quote:
Originally Posted by Swathe
I think the implementation has been really well done. .....
Thanks. I'm testing the alerts now, step-by-step. Also, starting to clean up my early PHP, making functions, arrays, etc.

My thoughts are that after we get past the initial beta, the new badging system will evolve to be very good for everyone here.

Will add a new "Weeks Active in a Row" (sequence) badge soon, completing the initial 42 proto-badges with 6 in reserve.
# 6  
Old 01-21-2019
Update to two badges (infractions and thanks given to others). This only effect members with less than 5 posts.

In a nutshell these two badges will remain lightgray as default until the user has 5+ posts:

Code:
$queryi = "SELECT ipoints AS infractions FROM user WHERE userid =" . $uid;
    $resultsi = $db->query_first_slave($queryi);
    if ($resultsi['infractions'] >= 30 || $modaluser['usergroupid'] == 11) {
        $color['fainfraction'] = 'red';
    } elseif ($resultsi['infractions'] >= 10) {
        $color['fainfraction'] = 'orangered';
    } elseif ($resultsi['infractions'] >= 7) {
        $color['fainfraction'] = 'limegreen';
    } elseif ($resultsi['infractions'] >= 5) {
        $color['fainfraction'] = 'blue';
    } elseif ($resultsi['infractions'] > 0) {
        $color['fainfraction'] = 'indigo';
    } else if($modaluser['posts'] > 4) {
         $color['fainfraction'] = 'black';
    } else  {
         $color['fainfraction'] = 'lightgray';
    }

Code:
$queryTG = "SELECT post_thanks_user_amount AS thanks_given FROM user WHERE userid =" . $uid;
    $resultsTG = $db->query_first_slave($queryTG);
    if ($resultsTG['thanks_given'] >= 1000) {
        $color['fathanks_given'] = 'black';
    } elseif ($resultsTG['thanks_given'] >= 500) {
        $color['fathanks_given'] = 'indigo';
    } elseif ($resultsTG['thanks_given'] >= 50) {
        $color['fathanks_given'] = 'blue';
    } elseif ($resultsTG['thanks_given'] > 0) {
        $color['fathanks_given'] = 'limegreen';
    } elseif ($modaluser['posts'] > 4) {
        $color['fathanks_given'] = 'red';
    } else {
        $color['fathanks_given'] = 'lightgray';
    }

This User Gave Thanks to Neo For This Post:
# 7  
Old 01-22-2019
FYI, I'm working on a prototype to add "on click" popovers to each badge in the grid which will explain the badge and eventually inform members what they need to do to be awarded this badge. For example, if you have 800 posts, the badge awarded at 1K Posts will inform everyone that the member needs 200 more posts to be awarded this badge. Still working things out... maybe a few days or so before I get it working in beta.

Coming soon!

Image
These 2 Users Gave Thanks to Neo For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. What is on Your Mind?

My Badges Page - A Major UserCP Update (v0.661):

Another major upgrade on the new UserCP today. I have created the "My Badges" page in the new control panel, and it's looking very cool :) If you have visited the new UserCP recently, you will more-than-likely need to close your browser (completely) and then restart it to clear out the old... (2 Replies)
Discussion started by: Neo
2 Replies

2. What is on Your Mind?

Patreon Badges Now Available as BBCODE at UNIX.COM

Dear All, We have a lot of amazing moderators and other very talented unix.com members who provide tireless top quality free technical support assistance to others. As a service to those long term unix.com members, I am making a new Patreon BBCODE badge available which can be posted in forum... (8 Replies)
Discussion started by: Neo
8 Replies

3. Web Development

Current New Badge Alert Script (Beta 1)

Here is the JS I wrote and am now testing live for alerting a member when they have received a new badge (seems to be working OK so far, still testing live): var badgeChange = readCookie("badgestatechange"); $(function() { if (badgeChange == "1") { if (vbuserId > 0) { var... (0 Replies)
Discussion started by: Neo
0 Replies

4. What is on Your Mind?

Four More UNIX.COM Achievement Award Badges to Award

Happy New Year! There are currently four UNIX.COM achievement awards up for grabs, as the say. Here they are, in no particular order: The Order of the Raven The Order of the Hippo The Order of the Spider The Order of the Dragon Don't ask me what they mean, or who who will get those... (0 Replies)
Discussion started by: Neo
0 Replies

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

6. Hardware

Stack Overflow Questions Tags Users Badges Unanswered Ask Question Ask for the explanation of types

I have read a document which tells me the following 4 things are done by the RAM embedded on disk driver controller. But I don't know what's difference between buffer and cache. Thanks! RAM on disk drive controllers 1 firmware 2 speed matching buffer 3 prefetching buffer 4 cache (1 Reply)
Discussion started by: 915086731
1 Replies

7. Shell Programming and Scripting

How to compare current record,with next and previous record in awk without using array?

Hi! all can any one tell me how to compare current record of column with next and previous record in awk without using array my case is like this input.txt 0 32 1 26 2 27 3 34 4 26 5 25 6 24 9 23 0 32 1 28 2 15 3 26 4 24 (7 Replies)
Discussion started by: Dona Clara
7 Replies
Login or Register to Ask a Question