| View previous topic :: View next topic |
| Author |
Message |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Sat Oct 20, 2007 5:58 am Post subject: Log converter [SOLVED] |
|
|
Hi,
does anyone here have a (non-tcl) script which converts my eggdrop-logs for my homepage? for example changes the color-codes into html?
thx in advance,
tadadadaaa
Last edited by tueb on Wed Oct 24, 2007 9:13 am; edited 1 time in total |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Sat Oct 20, 2007 8:40 am Post subject: |
|
|
| yes, i believe thats exactly what i'm looking for! |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Tue Oct 23, 2007 1:35 pm Post subject: |
|
|
| thx =D |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Wed Oct 24, 2007 11:35 am Post subject: |
|
|
actually, there is one thing.
I got it up and running http://www.moxquiz.de/docs.php?id=53, but it doesn't show the empty spaces correctly. Do you have an idea how to fix that?
thx |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Wed Oct 24, 2007 12:07 pm Post subject: |
|
|
could you give me an example of the source line and the corresponding html line please?
I guess it's a particular char wich might be replaced. _________________ https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
| Back to top |
|
 |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Thu Oct 25, 2007 7:22 am Post subject: |
|
|
(wrote the same post twice o0)
Last edited by tueb on Thu Oct 25, 2007 7:29 am; edited 1 time in total |
|
| Back to top |
|
 |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Thu Oct 25, 2007 7:24 am Post subject: |
|
|
I pretty much read out everly line of the log:
| Quote: | [00:46] <MoxQuizBot> 06,00{MoxQuizz} 02,11Tipp 3:
[00:46] <MoxQuizBot> 12,00··a···
[00:46] <MoxQuizBot> 06,00{MoxQuizz} 02,11Tipp 4: |
and put it through your code:
| Code: | $logfile = $_POST["logans"];
$file = "/home/eggdrop/stats/channellogs/$logfile";
$userdatei = fopen("$file","r");
while(!feof($userdatei))
{
$zeile = fgets($userdatei,10024);
echo mirc2html($zeile); //i didn't change the mirc2html-function
print "<br />";
}
print "</div></div>";
fclose($userdatei);
} |
but in the output the spaces are "lost": http://www.moxquiz.de/docs.php?id=53
thx =) |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
tueb Halfop
Joined: 04 Oct 2007 Posts: 76 Location: #quiz.de @ irc.gamesurge.net
|
Posted: Thu Oct 25, 2007 12:21 pm Post subject: |
|
|
sry, that didn't work. (even after i added the ";" ) |
|
| Back to top |
|
 |
|