Get started with PHP-Fusion

Recommended Addons


Graphical Counter Panel

Developed by : smokeman (Website)
Demo Url: Demo Website

Category : Visitors - Panel

User's Rating: Based on 1 Votes

Publisher's Description

Graphical Counter Panel shows number of unique visitors in a side-panel with images/icons - instead of the ordinary text-figures.

Detailed Screenshots

Graphical Counter Panel

Editor's Review

by assensvejdk on 13/01/2011

This Addon have not received a review

Editor's Verdict

Total Score of (0/80)

0/5

Addon Uniqueness40%

Addon Size and Features0%

Addon Thoroughly tested and Established0%

Addon Versions Compatibility0%

Addon Type0%

Editors Opinion0%

Authors Fame Factor0%

Value for Money0%

Addon Rating is available to Members only.

Please login or register to vote.


A2 Hosting

Additional Information

Updated

January 13 2011 16:57:29

Author(s)

smokeman

Downloaded

2966 Times

Copyright

Smokeman

Size

19.78 KB

Price

Free

Current Version

Version 1.0

Made for PHP-Fusion

v7.02

Translations

No Additional translations

Support Thread

Graphical Counter Panel

Support for Panels in the AddonDB

4 Replies 6,250 Views Last Updated on 7 years ago

smokeman


Veteran Member

#1

Posted 7 years ago

www.php-fusion.co.uk/infusions/addondb/img/screenshots/t_580.jpgGraphical Counter Panel shows number of unique visitors in a side-panel with images/icons - instead of the ordinary text-figures.

-- View this Addon --

Posts: 928

Joined: 23/06/2006

PolarFox


Fusioneer

#2

Posted 7 years ago

$showcounter = '';
$pics = $settings['counter'];
for($i=0;$i<strlen($pics);$i++) {
$showcounter .='<img src="'.INFUSIONS.'graphical_counter_panel/images/'.$pics[$i].'.png" border="0" alt="'.$pics{$i}.'" />';
}
echo $showcounter.'<br/>';

Cleaned code :) You can use it as your own.
Edited by PolarFox on 13-01-2011 22:23

Posts: 1642

Joined: 26/08/2008

smokeman


Veteran Member

#3

Posted 7 years ago

Hi PolarFox.

Great man! - Ty for that!

I'll write you as CO-Author then - if it's ok with you ?

Thx again m8.

Posts: 928

Joined: 23/06/2006

PolarFox


Fusioneer

#4

Posts: 1642

Joined: 26/08/2008

SimpleVision


Member

#5

Posted 7 years ago

There is no need to have a new image for every number!


Minimize HTTP Requests
Reducing the number of HTTP requests in your page is the place to start. This is the most important guideline for improving performance for first time visitors. As described in Tenni Theurer's blog post Browser Cache Usage - Exposed!, 40-60% of daily visitors to your site come in with an empty cache. Making your page fast for these first time visitors is key to a better user experience.


css sprite

[syntaxhighlighter brush=php,first-line=1,highlight=0,collapse=false,html-script=false]
openside($locale['gcp100']);

$showcounter = "";
$pics = "".$settings['counter']."";

for($i=0;$i<strlen($pics);$i++) {
$showcounter .="<li class=\"n".$pics{$i}."\"></li>";
}

echo "
<style>
.counter {display:block;}
.counter li { width: 15px; height: 20px;
background: url(".INFUSIONS."graphical_counter_panel/csg-4d31cd6690d35.png) no-repeat top left;display:inline-block;
}
li.n1{ background-position: 0 0; width: 15px; height: 20px; }
li.n2{ background-position: 0 -21px;}
li.n3{ background-position: 0 -42px; }
li.n4{ background-position: 0 -63px; }
li.n5{ background-position: 0 -84px; }
li.n6{ background-position: 0 -105px;}
li.n7{ background-position: 0 -126px;}
li.n8{ background-position: 0 -147px;}
li.n9{ background-position: 0 -168px;}
li.n0{ background-position: 0 -189px;}
</style>

<div><ul class='counter'>".$showcounter."</ul></div>";

closeside();
[/syntaxhighlighter]

download image counter

Posts: 63

Joined: 20/09/2010

Jump to Forum: