This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

ProjectX IRC 2 HTML

Support & discussion of released scripts, and announcements of new releases.
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

ProjectX IRC 2 HTML

Post by Football »

http://www.egghelp.org/cgi-bin/tcl_arch ... oad&id=779

The script doesn't work, any chance for a fix/update please?
Idling at #Football, Quakenet.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

I've not found any errors with the script at all. it works fine. Can you post your error message or more information? like the output of .set errorInfo
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Post by Football »

[19:43] Tcl error in file 'EPL.conf':
[19:43] invalid channel: #channel
while executing
"chanlist $chan"
(procedure "pxi2h:make" line 5)
invoked from within
"pxi2h:make $ele"
("foreach" body line 3)
invoked from within
"foreach ele [array names pxi2h_chan] {
if {![info exists pxi2h_history($ele)]} { set pxi2h_history($ele) "" }
pxi2h:make $ele
}"
(file "scripts/pxi2h.tcl" line 241)
invoked from within
"source scripts/pxi2h.tcl"
(file "EPL.conf" line 1378)
[19:43] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)




This is the pix2h.tcl file:

# The channel set to show online:
set pxi2h_chan(#channel) "/home/xabriel/eggdrop/public_html/epl.html"
#
# The prefix to prevent stuff from being shown on the web:
set pxi2h(secret) "."
#
# Maximum number of lines shown on the web:
set pxi2h(maxlines) 15
#
# The page is set to refes every X seconds:
set pxi2h(refresh) 10
#
# The title of the page:
set pxi2h(title) "#EPL Quakenet - English Premier League Community"
#
# Text color:
set pxi2h(text) "#FFFFFF"
#
# Background color:
set pxi2h(bgcolor) "#000000"
#
# Heading color:
set pxi2h(heading) "#6666EE"
#
# Font type:
set pxi2h(font) "monospace"

Even if I change #channel to #EPL it doesn't work, what am I doing wrong?
Idling at #Football, Quakenet.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Code: Select all

set pxi2h_chan(#channel) "/home/xabriel/eggdrop/public_html/epl.html" 
#channel should be the channel name you want it to display the stuff from :P
Example: (if i wanted #chat to be displayed)

Code: Select all

set pxi2h_chat(#chat) "/home/public_html/ircchans/chat.html"
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Post by Football »

I've changed it to:

[/code]set pxi2h_epl(#epl) "/home/xabriel/eggdrop/public_html/epl.html"

Code: Select all


but it doesn't seem to work, it didn't create a public_html folder or a epl.html file.

* Is there an option to make it auto-update/auto-upload the file to a ftp/website?
Idling at #Football, Quakenet.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

in DCC/Telnet type: .irc2html it should display the status (i.e on/off)
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Post by Football »

.irc2html
ProjectX irc2html is on


but doesn't generate anything.
Idling at #Football, Quakenet.
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

The public_html folder on a shell host is normally the physical folder of the 'website' given by said shell host. Didn't have a public_hmtl folder before? Then your shell host probably doesn't give you free web space with your account or it's not directly linked up with your shell account.

I think that one of the reasons nothing is generating for you is because your output folder does not exist. Read - you need to make the public_html folder within your eggdrop folder before it will output at all. It probably checks if the path exists before trying to output the file - since it sees the path doesn't exist, it just doesn't output a file. So the simplest solution? Make the folder or change the output path.

As for uploading? You may need a ftp uploading script (check the script database) that does it for you. I use one with my bot that uploads my pisg stats pages on to my web host every hour. You can probably find one to do the same for you too.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

@Football: change the webpage path something like

Code: Select all

set pxi2h_epl(#epl) "epl.html"
to see if it generates it that way :) (you can always link it to your web directory later if it dose)
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Post by Football »

Nothing changed, didn't create a epl.html file anywhere..
Idling at #Football, Quakenet.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

I wouldn't know what would be causing it to not creat the html file then.
The script was made for versions 1.3 so at best i'd hope for someone to update or creat a newer script for you :( sorry
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Post by Football »

Good news, the script finally works properly for me.

Though the bot doesn't display his own words, any chance someone could modify it will?
My bot is using rssnews.tcl, and I would like to see it logged into the file aswell..
Idling at #Football, Quakenet.
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

The exception of the bot in stats should have $botnick in it. You could probably remove or change this line manually so it doesn't if you want.
F
Football
Master
Posts: 205
Joined: Fri Dec 26, 2008 3:08 pm
Location: Quakenet, #Football

Post by Football »

Nope, no $botnick in the script
Idling at #Football, Quakenet.
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

Post Reply