webalizer-usercolor is a small patch against the 2002 version of the Webalizer web logfile analyzer to enable personalized colors on the generated webpages and charts.
This patch is freely available, usable, modifiable and whatever-able following the same license as the Webalizer (GNU GPL).
Webalizer has 10 hard-coded colors. The present patch allow you to configure them in your standard webalizer.conf file by adding 10 new keywords to define them:
Original hard-coded | Meaning | Example with the patch |
---|---|---|
GREEN | color for HITS | your own ColorHit |
BLUE | color for FILES | your own ColorFile |
ORANGE | color for SITE | your own ColorSite |
RED | color for KBYTES | your own ColorKbyte |
CYAN | color for PAGE | your own ColorPage |
YELLOW | color for VISIT | your own ColorVisit |
PURPLE | additional color for pie | your own PieColor1 |
LT GREEN | additional color for pie | your own PieColor2 |
LT PURPLE | additional color for pie | your own PieColor3 |
BROWN | additional color for pie | your own PieColor4 |
To enable the new colors on images for your already generated stats, you must re-process them by removing the history file (webalizer.current) and launch webalizer by hand only once. If you had old rotated logs, there is probably no other way than re-processing them one by one in the historical order.
The Webalizer has not been changed since year 2002. Many people have added contributions to it. They are available at the contrib subdir of the Webalizer ftp site. Some people have now forked the Webalizer, for example : AWFFull by Steve McInerney. AWFFul includes this "usercolor" patch since version 3.3.1.