CONFIG-README 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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. You can also set a user's sex:
  18. <user nick="Ben" sex="m">
  19. Also you can add links to URLs and e-mails:
  20. <user nick="Christine" link="http://www.christine.com">
  21. or
  22. <user nick="Chris" link="chris@host.com">
  23. The last thing you can do is to ignore nicks (for example bots):
  24. <user nick="nameofbot" ignore="y">
  25. You don't have to do all this in many lines, you could just as easily do:
  26. <user nick="Joe" alias="Joe^away Joe^work" pic="joe.jpg" link="joe@joe.com" sex="m">
  27. (Here the aliases is a space seperated list of nicks, that also works! But *
  28. as a wildcard is smarter, but also slower).
  29. CHANNELS SETUP
  30. ------------------
  31. For each of your channels which you want to parse through, you make
  32. something like this:
  33. <channel="#channel" logfile="channel.log">
  34. format = "mIRC"
  35. maintainer = "NameOfMaintainer"
  36. </channel>
  37. Any options in the <channel *> section will be forced, even over commandline
  38. options... any options before </channel> can be overridden from command line
  39. There is a lot of variables which you can set between the <channel> and
  40. </channel> tags, these are listed in the next section.
  41. PISG OPTIONS
  42. ------------------
  43. If you have multiple channels, then you can set some defaults for them, for
  44. example you can do.
  45. <set format="mIRC">
  46. And you won't have to worry about setting the format for every channel.
  47. You can also combine settings into one line such as:
  48. <set channel="#channel" logfile="/var/log/channel.log">
  49. All the differents variables are listed below.
  50. Other examples:
  51. <set lang='EN' langfile='lang.txt'>
  52. <set bgcolor="#dedeee" text="black" hbgcolor="#666699" hcolor="white" hicell="#BABADD" hicell2="#CCCCCC">
  53. <set activenicks="25" activenicks2="30" topichistory="3" nicktracking="0" timeoffset="+0">
  54. There is many variables which can be set, here's a list of them all (not
  55. casesensitive):
  56. * The most useful ones *
  57. channel The name of your channel.
  58. logfile The exact filename of the logfile
  59. format logfile format. see FORMATS file
  60. network Network the channels is using.
  61. outputfile The name of the html file to be generated
  62. maintainer The maintainer or bot which makes the logfile
  63. pagehead Some 'page header' file which you want to include in top
  64. of the stats
  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 (see lang.txt)
  71. EN | DE | DK | FR | ES | PL | NO | NL | SE
  72. langfile Filename 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. show_words 1 or 0, this will enable/disable both of the 2 above
  80. options.
  81. show_time 1 or 0, this will enable/disable the showing of the
  82. fancy timebars indicating when a nick was active.
  83. show_linetime 1 or 0, the same as above, except this will show the
  84. bar next to the number of lines like in mIRCStats
  85. show_legend 1 or 0, this will add a legend of the different time-
  86. bars.
  87. show_kickline 1 or 0, this will add an example-kickline to the
  88. "Most kicked"-stats
  89. show_actionline 1 or 0, this will add an example-actionline to the
  90. "Most actions"-stats
  91. show_shoutline 1 or 0, this will add an example-shoutline to the
  92. "Most shouting people"-stats
  93. show_violentlines 1 or 0, this will add an example-attack to the
  94. "Most aggressive" and "Most attacked"-stats
  95. ignorewords A space seperated list of words to ignore in 'most
  96. referenced words'
  97. foul Space seperated list of words considered to be 'foul'
  98. language, look in the bottom for a better explanation.
  99. regexp_alises 1 or 0, enabling this will make aliases in <user> tags
  100. regex-able.
  101. * Colors / layout for your stats page *
  102. bgcolor Background color of the page
  103. bgpic Background picture of the page
  104. text Normal text color
  105. hbgcolor Background color in headlines
  106. hcolor Text color in headline
  107. hicell Background color in highlighted cells
  108. hicell2 Background color in highlighted cells
  109. tdcolor Color of text in tables
  110. tdtop Top color in some tables.
  111. link Color of links
  112. vlink Color of visited links
  113. hlink Color of hovered links
  114. headline Border color of headlines
  115. rankc Colors of 'ranks' (1,2,3,4)
  116. pic_v_0 Below settings are the filenames of the images to be
  117. pic_v_6 shown on thepage on timebars, the names should be
  118. pic_v_12 self-explainable.
  119. pic_v_18
  120. pic_h_0
  121. pic_h_6
  122. pic_h_12
  123. pic_h_18
  124. * Small things, useful for some people *
  125. minquote Minimal value of letters for a random quote
  126. maxquote Maximum value of letters for a random quote
  127. wordlength The minimum number of chars an interesting word may be
  128. (in 'most referenced words')
  129. activenicks Number of nicks to show in the 'top 25'
  130. activenicks2 Nicks to show in 'these didnt make it...'
  131. topichistory How many topics to show in 'latest topics'
  132. nicktracking Track nickchanges and create aliases [1 or 0, enabled
  133. by default]
  134. WORD OPTIONS
  135. ------------------
  136. pisg has the feature of making stats of people using "foul words" or bad
  137. language, like fuck, shit, etc. but this is something people would like to
  138. configure to their own language and slang.
  139. So this option configures which words which are considered to be "foul":
  140. <set foul="ass bitch fuck">
  141. Or in German:
  142. <set foul="scheisse scheiße kacke">
  143. pisg also recognizes that people may attack others in a variety of ways.
  144. The words that pisg considers to be attacks may be set with the "violent"
  145. option:
  146. <set violent="slaps beats kicks">
  147. Have fun configuring pisg! :)