Sponsored Content
Top Forums Web Development Notes with Ravinder on Badging System Development Part II Post 303028173 by Neo on Tuesday 1st of January 2019 07:29:34 AM
Old 01-01-2019
Just created a Patreon sponsorship badge for the forums, which is for current VIP members and future Patreon sponsors.

In addition, after we finishing the badging page I going to set of a Patreon grid for all qualified forum members who have Patreon accounts.

Code:
<?php
$vipgroups = array('14', '17');
$patreonBlack = array();
$patreonIndigo = array();
$patreonBlue = array();
$patreonLimeGreen = array();
if (in_array($modaluser['usergroupid'], $vipgroups) || in_array($modaluser['userid'], $patreonBlue)) {
    $color['fapatreon'] = 'blue';
} elseif (in_array($modaluser['userid'], $patreonLimeGreen)) {
    $color['fapatreon'] = 'limegreen';
} elseif (in_array($modaluser['userid'], $patreonBlack)) {
    $color['fapatreon'] = 'blue';
} elseif (in_array($modaluser['userid'], $patreonIndigo)) {
    $color['fapatreon'] = 'indigo';
} elseif (in_array($modaluser['userid'], $patreonBlack)) {
    $color['fapatreon'] = 'black';
} else {
    $color['fapatreon'] = 'lightgray';
}

Code:
$('.fa-patreon').css("color",badge["fapatreon"]);
$('.fa-patreon').css("cursor","pointer").attr("title",  "Patreon Sponsor or VIP Member");
$('.fa-patreon').closest('div').find('.fa-circle').css("color",badge["fapatreon"];

)

13 prototype badges out of 48 done..... 12 left.
 

3 More Discussions You Might Find Interesting

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

2. What is on Your Mind?

Status of Badging System - Beta 1

Dear All, Here is the current status of the badging system: The Beta 1 phase of the new badging system is close to completion. 42 prototype badges have been "allocated" 6 prototype badge slots are held in reserve The "alert you have new badges" prototype is running and is currently... (4 Replies)
Discussion started by: Neo
4 Replies

3. 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
ADD_MEMBERS(8)						      System Manager's Manual						    ADD_MEMBERS(8)

NAME
add_members - Add members to a list from the command line. SYNOPSIS
add_members [-n <file>] [-d <file>] [-c <y|n>] [-w <y|n>] [-h] listname DESCRIPTION
Add members from a file to a mailman list. Listname is the name of the Mailman list you are adding members to. It must already exist. OPTIONS
-n file, --non-digest-members-file file A file containing addresses of the members to be added, one address per line. This list of people become non-digest members. If file is `-', read addresses from stdin. -d file, --digest-members-file file Similar to above, but these people become digest members. -c [y|n], --changes-msg [y|n] Whether or not to send the list members the `there's going to be big changes to your list' message. defaults to no. -w [y|n], --welcome-msg [y|n] set whether or not to send the list members a welcome message, overriding whatever the list's `send_welcome_msg' setting is. -h, --help Print a help message and exit. NOTES
You must supply at least one of -n and -d options. At most one of the files can be `-'. AUTHOR
Author of Mailman is the Mailman Cabal, see http://www.list.org/ for information. This manpage is written by Tollef Fog Heen <tfheen@debian.org> for Debian SEE ALSO
Mailman documentation on http://www.list.org/ and in /usr/share/doc/mailman. 2001-03-10 ADD_MEMBERS(8)
All times are GMT -4. The time now is 06:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy