Просмотр исходного кода

New 'bgpic' setting by Vetinari
He also found some small bugs in CONFIG-README :)

Morten Brix Pedersen 25 лет назад
Родитель
Сommit
12162de078
3 измененных файлов с 12 добавлено и 3 удалено
  1. 3 2
      CONFIG-README
  2. 4 0
      Changelog
  3. 5 1
      pisg.pl

+ 3 - 2
CONFIG-README

@@ -15,13 +15,13 @@ always required.
 For example to add aliases to a nick, then you could do this:
 For example to add aliases to a nick, then you could do this:
     <user nick="Joe" alias="Joe^*">
     <user nick="Joe" alias="Joe^*">
 
 
-This will add alle Joe^'s to 'Joe' in the stats.
+This will add all Joe^'s to 'Joe' in the stats.
 
 
 Another thing you can do is to add a picture to a user:
 Another thing you can do is to add a picture to a user:
     <user nick="Ben" pic="ben_holiday.jpg">
     <user nick="Ben" pic="ben_holiday.jpg">
 
 
 Also you can add links to URLs and e-mails:
 Also you can add links to URLs and e-mails:
-    <user nick="Christine" link="http://www.christine.com>
+    <user nick="Christine" link="http://www.christine.com">
 
 
     or
     or
 
 
@@ -107,6 +107,7 @@ langfile             Name of language file
   * Colors for your stats page *
   * Colors for your stats page *
 
 
 bgcolor              Background color of the page
 bgcolor              Background color of the page
+bgpic                Background picture of the page
 text                 Normal text color
 text                 Normal text color
 hbgcolor             Background color in headlines
 hbgcolor             Background color in headlines
 hcolor               Text color in headline
 hcolor               Text color in headline

+ 4 - 0
Changelog

@@ -1,3 +1,7 @@
+pisg (0.20) 
+   * Add 'bgpic' config setting for the possibility to add a userdefined
+     background picture to the page (Vetinari)
+
 pisg (0.19) - Tue, Aug 7th 2001
 pisg (0.19) - Tue, Aug 7th 2001
    * Fix critical bug where <channel="#chan"> in pisg.cfg didn't work at all.
    * Fix critical bug where <channel="#chan"> in pisg.cfg didn't work at all.
    * Warn the user when a translation template doesn't exist for a specific
    * Warn the user when a translation template doesn't exist for a specific

+ 5 - 1
pisg.pl

@@ -1993,6 +1993,10 @@ sub lasttopics
 # Some HTML subs
 # Some HTML subs
 sub htmlheader
 sub htmlheader
 {
 {
+my $bgpic = "";
+if ($conf->{bgpic}) {
+    $bgpic = " background=\"$conf->{bgpic}\"";
+}
 print OUTPUT <<HTML;
 print OUTPUT <<HTML;
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <html>
@@ -2027,7 +2031,7 @@ td {
 .small { font-family: verdana, arial, sans-serif; font-size: 10px; }
 .small { font-family: verdana, arial, sans-serif; font-size: 10px; }
 .asmall { font-family: arial narrow, sans-serif; font-size: 10px }
 .asmall { font-family: arial narrow, sans-serif; font-size: 10px }
 </style></head>
 </style></head>
-<body>
+<body$bgpic>
 <div align="center">
 <div align="center">
 HTML
 HTML
 my %hash = (
 my %hash = (