Sponsored Content
Top Forums Web Development Notes with Ravinder on Badging System Development Part II Post 303028400 by Neo on Monday 7th of January 2019 07:46:49 AM
Old 01-07-2019
Update:

While on vacation, had some free time and have written the core code to show a Bootstrap alert when a member badge changes. Also, have the basic code in place to determine exactly which badge changes, so that can be added to the message; but have not written the function to change the array keys to text.

Currently testing via PHP logging. Seems to work fine.

When I am back at my desk, will write a function to change array keys to user friendly text and continue testing.
 

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
YAF_BOOTSTRAP_ABSTRACT(3)						 1						 YAF_BOOTSTRAP_ABSTRACT(3)

The Yaf_Bootstrap_Abstract class

INTRODUCTION
Bootstrap is a mechanism used to do some intial config before a Application run. User may define their own Bootstrap class by inheriting Yaf_Bootstrap_Abstract Any method declared in Bootstrap class with leading "_init", will be called by Yaf_Application::bootstrap one by one according to their defined order. EXAMPLES
Example #1 Bootstrap example <?php /* bootstrap class should be defined under ./application/Bootstrap.php */ class Bootstrap extends Yaf_Bootstrap_Abstract { public function _initConfig(Yaf_Dispatcher $dispatcher) { var_dump(__METHOD__); } public function _initPlugin(Yaf_Dispatcher $dispatcher) { var_dump(__METHOD__); } } $config = array( "application" => array( "directory" => dirname(__FILE__) . "/application/", ), ); $app = new Yaf_Application($config); $app->bootstrap(); ?> The above example will output something similar to: string(22) "Bootstrap::_initConfig" string(22) "Bootstrap::_initPlugin" CLASS SYNOPSIS
Yaf_Bootstrap_Abstract abstract Yaf_Bootstrap_Abstract Properties Methods PHP Documentation Group YAF_BOOTSTRAP_ABSTRACT(3)
All times are GMT -4. The time now is 04:49 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy