Sponsored Content
Top Forums Web Development Notes with Ravinder on Badging System Development Part II Post 303028203 by Neo on Wednesday 2nd of January 2019 12:01:25 AM
Old 01-02-2019
  1. Thanks / Post ratio is easy, obviously since we have that data already in the grid. But this badge may not be a good idea because it could discourage people to post if they are not posting in main forums. Plus, the number of posts and thanks is already in other badges, so I'm not really keen on just badging a ratio between the two.
  2. Tracking consecutive days with forum activity may require a new DB field or a localStorage JS var in the users browser. I am guessing it is best to to this in PHP and create some new PHP logic on the DB side.
  3. Tracking monthly thanks may is easy... see next post for example query:
 

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

imagescale - Scale an image using the given new width and height

SYNOPSIS
resource imagescale (resource $image, int $new_width, [int $new_height = -1], [int $mode = IMG_BILINEAR_FIXED]) DESCRIPTION
imagescale(3) scales an image using the given interpolation algorithm. PARAMETERS
o $ image -An image resource, returned by one of the image creation functions, such as imagecreatetruecolor(3). o $new_width - The width to scale the image to. o $new_height - The height to scale the image to. If omitted or negative, the aspect ratio will be preserved. Caution You should always provide the height if using PHP 5.5.18 or earlier, or PHP 5.6.2 or earlier, as the aspect ratio calcula- tion was incorrect. o $mode - One of IMG_NEAREST_NEIGHBOUR, IMG_BILINEAR_FIXED, IMG_BICUBIC, IMG_BICUBIC_FIXED or anything else (will use two pass). RETURN VALUES
Return the scaled image resource on success or FALSE on failure. CHANGELOG
+-------------+---------------------------------------------------+ | Version | | | | | | | Description | | | | +-------------+---------------------------------------------------+ |5.5.19/5.6.3 | | | | | | | The calculation of the height if $new_height was | | | negative or omitted was fixed; prior to these | | | versions, the aspect ratio was not maintained | | | correctly. | | | | +-------------+---------------------------------------------------+ PHP Documentation Group IMAGESCALE(3)
All times are GMT -4. The time now is 01:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy