CONFIG-README 5.7 KB

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