Sponsored Content
Top Forums Web Development Notes with Ravinder on Badging System Development Part II Post 303028310 by Neo on Friday 4th of January 2019 05:21:34 AM
Old 01-04-2019
Ravinder,

Please write a PHP function to parse the $color[] array and create the string(2) to append in the badge alert text.

Hint: You need to read a $serialized_badges JSON string (which we will get from the user table and convert it to a PHP array using json_decode() then perhaps a foreach() loop to compare against the current $color[] array.

Or, you can do all this in Javascript by storing the badge[] js array serialized in localstorage, which is how I would do it I think.... No reason to do this in PHP, so I think best to do in Javascript.
 

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
XORGFOUNDATION(7)					 Miscellaneous Information Manual					 XORGFOUNDATION(7)

NAME
XOrgFoundation - X.Org Foundation information SYNOPSIS
Release 6.7 and later of X Version 11 is brought to you by the X.Org Foundation. DESCRIPTION
The X.Org Foundation is an independent, not-for-profit 501(c)(3) charity corporation. It was formed in 2004 as the successor to the X.Org Group at The Open Group. The purpose of the X.Org Foundation is to foster the development, evolution, and maintenance of the X Window Sys- tem, a comprehensive set of vendor-neutral, system-architecture neutral, network-transparent windowing and user interface standards. Mem- bership in the X.Org Foundation is free and open to anyone. The X.Org Foundation hosts a public git repository of the source code on freedesktop.org. The X Window System was created in the mid-1980s at the Massachusetts Institute of Technology. In 1988, MIT formed a member-funded consor- tium to provide the technical and administrative leadership necessary to support further development of the X Window System. In 1992, MIT and the membership decided it was in their best interests to move the consortium out of MIT and create an independent, stand-alone organi- zation. All rights to the X Window System were assigned by MIT to X Consortium, Inc. on January 1, 1994. On December 31, 1996 the X Con- sortium, Inc. closed its doors and all rights to the X Window System were assigned to The Open Group (then known as the Open Software Foun- dation). ADDRESSES
The X.Org Foundation's web site is http://www.x.org/ The X.Org Foundation's public ftp site is ftp://ftp.x.org/ Information about the X.Org Foundation git repository is on the X.Org web site at http://www.x.org/wiki/Development/git X Version 11 xorg-docs 1.6 XORGFOUNDATION(7)
All times are GMT -4. The time now is 06:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy