CONFIG-README 11 KB

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