CONFIG-README 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. README for pisg.cfg - the configuration file for pisg
  2. ------------------
  3. This file is used for:
  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 in the form:
  11. <user nick="NICK" option="VALUE">
  12. Remember, the nick is always required.
  13. For example to add aliases to a nick, then you could do this:
  14. <user nick="Joe" alias="Joe^*">
  15. This will add all Joe^'s to 'Joe' in the stats.
  16. Another thing you can do is to add a picture to a user:
  17. <user nick="Ben" pic="ben_holiday.jpg">
  18. You can also set a user's sex:
  19. <user nick="Ben" sex="m">
  20. Also you can add links to URLs and e-mails:
  21. <user nick="Christine" link="http://www.christine.com">
  22. or
  23. <user nick="Chris" link="chris@host.com">
  24. The last thing you can do is to ignore nicks (for example bots):
  25. <user nick="nameofbot" ignore="y">
  26. You don't have to do all this in many lines, you could just as easily do:
  27. <user nick="Joe" alias="Joe^away Joe^work" pic="joe.jpg" link="joe@joe.com" sex="m">
  28. (Here the aliases is a space seperated list of nicks, that also works! But *
  29. as a wildcard is smarter, but also slower).
  30. CHANNELS SETUP
  31. ------------------
  32. For each of your channels which you want to parse through, you make
  33. something like this:
  34. <channel="#channel" logfile="channel.log">
  35. format = "mIRC"
  36. maintainer = "NameOfMaintainer"
  37. </channel>
  38. Any options in the <channel *> section will be forced, even over commandline
  39. options... any options before </channel> can be overridden from command line
  40. There is a lot of options which you can set between the <channel> and
  41. </channel> tags, these are listed in the next section.
  42. PISG OPTIONS
  43. ------------------
  44. If you have multiple channels, then you can set some defaults for them, for
  45. example you can do.
  46. <set format="mIRC">
  47. And you won't have to worry about setting the format for every channel.
  48. You can also combine settings into one line such as:
  49. <set channel="#channel" logfile="/var/log/channel.log">
  50. All the different options are listed below.
  51. Other examples:
  52. <set lang='EN' langfile='lang.txt'>
  53. <set bgcolor="#dedeee" text="black" hbgcolor="#666699" hcolor="white" hicell="#BABADD" hicell2="#CCCCCC">
  54. <set topichistory="3" timeoffset="+0">
  55. There is many options which can be set, here's a list of them all (not
  56. casesensitive):
  57. * The most useful ones *
  58. channel The name of your channel. E.g. '#mychannel'
  59. logfile The exact filename of the logfile. E.g. 'mylog.log'
  60. format The logfile format. See FORMATS file for supported formats
  61. network Network the channels is using. E.g. 'Undernet'
  62. outputfile Outputted stats goes to this HTML file. Default 'index.html'
  63. maintainer The maintainer or bot which makes the logfile.
  64. lang Language to use (see lang.txt)
  65. EN | DE | DK | FR | ES | PL | PT | NO | NL | SE
  66. pagehead Some 'page header' file which you want to include in top
  67. of the output file.
  68. imagepath If your user pictures is located in a special direcotry,
  69. set the path here. E.g. 'userpics/'
  70. default_pic If no picture defined for a user, use this default
  71. picture, good for example to display 'No picture
  72. available'.
  73. logdir If you specify a path to a directory here, then pisg will
  74. run through the files in that directory, parse all
  75. logfiles in it and create 1 HTML file from it. Useful
  76. with eggdrops.
  77. timeoffset A time offset on the stats page - if your country has
  78. a different timezone than the machine where the stats
  79. are being generated, then for example set '+1' to add
  80. one hour to the stats.
  81. show_activetimes 1 or 0, this enables/disables the 'Most Active Tiems'
  82. section, default is enabled.
  83. show_bignumbers 1 or 0, enable/disable 'Big Numbers' and 'Other
  84. interesting numbers', default is enabled.
  85. show_wpl 1 or 0, this enables pisg to show 'words per line' for
  86. each person in 'most active nicks'
  87. show_cpl Same as above, this is just 'characters per line'
  88. show_words 1 or 0, this will enable/disable both of the 2 above
  89. options.
  90. show_time 1 or 0, this will enable/disable the showing of the
  91. fancy timebars indicating when a nick was active.
  92. show_linetime 1 or 0, the same as above, except this will show the
  93. bar next to the number of lines like in mIRCStats
  94. show_randquote 1 or 0, this wil enable or disable the random quote
  95. displayed in the "active nick list"
  96. show_legend 1 or 0, this will add a legend of the different time-
  97. bars.
  98. show_kickline 1 or 0, this will add an example-kickline to the
  99. "Most kicked"-stats
  100. show_actionline 1 or 0, this will add an example-actionline to the
  101. "Most actions"-stats
  102. show_shoutline 1 or 0, this will add an example-shoutline to the
  103. "Most shouting people"-stats
  104. show_violentlines 1 or 0, this will add an example-attack to the
  105. "Most aggressive" and "Most attacked"-stats
  106. show_muw 1 or 0, this will enable or disable the "most used
  107. words" list
  108. show_mrn 1 or 0, this will enable or disable the "most
  109. referenced nicks" list
  110. show_mru 1 or 0, this will enable or disable the "most
  111. referenced urls" list
  112. ignorewords A space seperated list of words to ignore in 'most
  113. referenced words'
  114. foul Space seperated list of words considered to be 'foul'
  115. language, look in the bottom for a better explanation.
  116. regexp_alises 1 or 0, enabling this will make aliases in <user> tags
  117. regex-able. Default '0'.
  118. silent 1 or 0. Enabling this will suppress all standard output
  119. from pisg. Error messages will still be sent to STDOUT.
  120. charset Charset to use for stats page, default is 'iso-8859-1'.
  121. * Colors / layout for your stats page *
  122. bgcolor Background color of the page
  123. bgpic Background picture of the page
  124. text Normal text color
  125. hbgcolor Background color in headlines
  126. hcolor Text color in headline
  127. hicell Background color in highlighted cells
  128. hicell2 Background color in highlighted cells
  129. tdcolor Color of text in tables
  130. tdtop Top color in some tables.
  131. link Color of links in tables
  132. vlink Color of visited links in tables
  133. hlink Color of hovered links in tables
  134. bg_link Color of links on background
  135. bg_vlink Color of visited links on background
  136. bg_hlink Color of hovered links on background
  137. headline Border color of headlines
  138. rankc Colors of 'ranks' (1,2,3,4) and active times
  139. hi_rankc Highlighted ranks
  140. pic_height Hardcode user picture sizes on stats page. This is when
  141. user has a pic, and you want to make it smaller.
  142. pic_width
  143. pic_v_0 Below settings are the filenames of the images to be
  144. pic_v_6 shown on the page on timebars, the names should be
  145. pic_v_12 self-explainable.
  146. pic_v_18
  147. pic_h_0
  148. pic_h_6
  149. pic_h_12
  150. pic_h_18
  151. * Small things, useful for some people *
  152. logtype The type of logs kept for your channel. Currently only
  153. "Logfile" is supported.
  154. langfile Filename of language file. Default 'lang.txt'
  155. minquote Minimal value of letters for a random quote
  156. maxquote Maximum value of letters for a random quote
  157. wordlength The minimum number of chars an interesting word may be
  158. (in 'most referenced words')
  159. activenicks Number of nicks to show in the 'top 25'
  160. activenicks2 Nicks to show in 'these didnt make it...'
  161. topichistory How many topics to show in 'latest topics'
  162. nicktracking Track nickchanges and create aliases [1 or 0, enabled
  163. by default]
  164. WORD OPTIONS
  165. ------------------
  166. pisg has the feature of making stats of people using "foul words" or bad
  167. language, like fuck, shit, etc. but this is something people would like to
  168. configure to their own language and slang.
  169. So this option configures which words which are considered to be "foul":
  170. <set foul="ass bitch fuck">
  171. Or in German:
  172. <set foul="scheisse scheiße kacke">
  173. pisg also recognizes that people may attack others in a variety of ways.
  174. The words that pisg considers to be attacks may be set with the "violent"
  175. option:
  176. <set violent="slaps beats kicks">
  177. Have fun configuring pisg! :)
  178. LINKS
  179. ------------------
  180. It's possible to ignore links in the 'most referenced URLs' section:
  181. <link url="http://www.slashdot.org" ignore="y">