Improvement Cloud & Bug Reports

The ‘Improvement Cloud‘ allows you to vote for suggestions that you would like to see in the upcoming releases of L4DStats and allows you to add new suggestions for other people to vote on.

Hopefully this will improve feedback and help me to concentrate on what people want most from L4DStats.

If you need to report a bug then please use the Bug Tracker. But please check the dev site to see if it’s been fixed.


"); } else if ($Purpose == "Add") { if(!isset($_POST['improvName']) || $_POST['improvName'] == "" ) { print("Sorry but you have to choose a short name to sum up the what the suggestion is about."); } else if(!isset($_POST['improvDesc']) || $_POST['improvDesc'] == "") { print("Sorry but you have to choose a short description to sum up the what the suggestion is about."); } else if(isset($_POST['improvName']) && isset($_POST['improvDesc'])) { //$Query = "insert into ImprovCloud (ImprovName, ImprovDesc, ImprovCount) VALUES ('".CleanSQL($_POST['improvName'])."', '".CleanSQL($_POST['improvDesc'])."', 1)"; //print ($Query); //mysql_query($Query); print("Thank you for making a suggestion on how to improve L4DStats"); } } else { $query = "SELECT ImprovID, ImprovName, ImprovCount, ImprovDesc FROM ImprovCloud where ImprovAdded = 0 order by ImprovCount DESC"; $result = mysql_query($query); while ($row = mysql_fetch_array($result)) { $tagName = $row['ImprovName'] ."|". $row['ImprovDesc'] ."|". $row['ImprovID']; $tags[$tagName] = $row['ImprovCount']; } // change these font sizes if you will $max_size = 250; // max font size in % $min_size = 100; // min font size in % // get the largest and smallest array values $max_qty = max(array_values($tags)); $min_qty = min(array_values($tags)); // find the range of values $spread = $max_qty - $min_qty; if (0 == $spread) { // we don't want to divide by zero $spread = 1; } // determine the font-size increment // this is the increase per tag quantity (times used) $step = ($max_size - $min_size)/($spread); // loop through our tag array foreach ($tags as $key => $value) { // calculate CSS font-size // find the $value in excess of $min_qty // multiply by the font-size increment ($size) // and add the $min_size set above $size = $min_size + (($value - $min_qty) * $step); // uncomment if you want sizes in whole %: // $size = ceil($size); // you'll need to put the link destination in place of the # // (assuming your tag links to some sort of details page) $tagelements = explode("|",$key); print("". stripslashes($tagelements[0])." | "); } print("

Previous suggestions now implemented:
"); $query = "SELECT ImprovID, ImprovName, ImprovCount, ImprovDesc FROM ImprovCloud where ImprovAdded = 1"; $result = mysql_query($query); print(""); while ($row = mysql_fetch_array($result)) { print($row['ImprovName']." | "); } print(""); print("

"); print("

Add a new Suggestion

"); print("
Suggestion Name:     
Description:
"); } function CleanSQL( $value ) { if( get_magic_quotes_gpc() ) { $value = stripslashes( $value ); } //check if this function exists if( function_exists( "mysql_real_escape_string" ) ) { $value = mysql_real_escape_string( $value ); } //for PHP version < 4.3.0 use addslashes else { $value = addslashes( $value ); } return $value; } ?>