CONFIG-README 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. README for pisg.cfg - the configuration file for pisg
  2. ------------------
  3. This file is used for two things:
  4. - Setting user options (for user aliases, pics, ignores and links)
  5. - Setting pisg config options (for general things with pisg)
  6. - Word options (for adding words that are meant to be 'foul(bad) language')
  7. USER OPTIONS
  8. ------------------
  9. User options are set with a simple SGML like syntax; remember the nick is
  10. always required.
  11. For example to add aliases to a nick, then you could do this:
  12. <user nick="Joe" alias="Joe^*">
  13. This will add alle Joe^'s to 'Joe' in the stats.
  14. Another thing you can do is to add a picture to a user:
  15. <user nick="Ben" pic="ben_holiday.jpg">
  16. Also you can add links to URLs and e-mails:
  17. <user nick="Christine" link="http://www.christine.com>
  18. or
  19. <user nic="Chris" link="chris@host.com">
  20. The last thing you can do is to ignore nicks (for example bots):
  21. <user nick="nameofbot" ignore="y">
  22. You don't have to do all this in many lines, you could just as easily do:
  23. <user nick="Joe" alias="Joe^away Joe^work" pic="joe.jpg" link="joe@joe.com">
  24. (Here the aliases is a space seperated list of nicks, that also works! But *
  25. as a wildcard is smarter, but also slower).
  26. PISG OPTIONS
  27. ------------------
  28. This is a tougher part, a lot of things can be set here, simply the syntax
  29. is like this:
  30. <set variable="value">
  31. For example:
  32. <set channel="#channel">
  33. You can also combine settings into one line such as:
  34. <set channel="#channel" logfile="/var/log/channel.log">
  35. A normal complete line for a channel would be:
  36. <set channel="#channel" logfile="channel2.log" format="mIRC" network="SomeIRCNet" outputfile="index.html">
  37. Other examples:
  38. <set lang='EN' langfile='lang.txt'>
  39. <set bgcolor="#dedeee" text="black" hbgcolor="#666699" hcolor="white" hicell="#BABADD" hicell2="#CCCCCC">
  40. <set activenicks="25" activenicks2="30" topichistory="3" nicktracking="0" timeoffset="+0">
  41. There is many variables which can be set, here's a list of them all:
  42. * The most useful ones *
  43. channel The name of your channel.
  44. logfile The exact filename of the logfile
  45. format logfile format. see FORMATS file
  46. network Network the channels is using.
  47. outputfile The name of the html file to be generated
  48. maintainer The maintainer or bot which makes the logfile
  49. pagehead Some 'page header' file which you want to
  50. include in top of the stats
  51. configfile Path to config file (aliases, ignores,
  52. pics and more, see pisg.cfg for examples)
  53. imagepath If your user pictures is located
  54. some special directory, set the path here.
  55. logdir If you specify a path to a dir here, then
  56. pisg will take that dir, and parse ALL
  57. logfiles in it, and create 1 HTML file
  58. from it
  59. lang Language to use:
  60. EN | DE | DK | FR | ES | PL
  61. langfile Name of language file
  62. * Colors for your stats page *
  63. bgcolor Background color of the page
  64. text Normal text color
  65. hbgcolor Background color in headlines
  66. hcolor Text color in headline
  67. hicell Background color in highlighted cells
  68. hicell2 Background color in highlighted cells
  69. tdcolor Color of text in tables
  70. tdtop Top color in some tables.
  71. link Color of links
  72. vlink Color of visited links
  73. hlink Color of hovered links
  74. headline Border color of headlines
  75. rankc Colors of 'ranks' (1,2,3,4)
  76. pic1 Bar-graphic-file for normal times
  77. pic2 Bar-graphic-file for top-times
  78. * Small things, useful for some people *
  79. minquote Minimal value of letters for a random quote
  80. maxquote Maximum value of letters for a random quote
  81. wordlength The minimum number of chars an interesting
  82. word may be (in 'most referenced words')
  83. activenicks Number of nicks to show in the 'top 25'
  84. activenicks2 Nicks to show in 'these didnt make it...'
  85. topichistory How many topics to show in 'latest topics'
  86. nicktracking Track nickchanges and create aliases (can
  87. be slow, so it's disabled by default)
  88. #
  89. timeoffset A time offset on the stats page - if your
  90. country has a different timezone than the
  91. machine where the stats are being
  92. generated, then for example do +1
  93. WORD OPTIONS
  94. ------------------
  95. pisg has the feature of making stats of people using "foul words" or bad
  96. language, like fuck, shit, etc. but this is something people would like to
  97. configure to their own language and slang.
  98. So this option configures which words which are considered to be "foul":
  99. <words foul="ass bitch fuck">
  100. Or in German:
  101. <words foul="scheisse scheiße kacke">
  102. Have fun configuring pisg! :)