If it is trying to connect to any other IRC server it's because you've added it to the script. If it's only attempting to connect to one server then you've modified the script incorrectly. Go to the Jpilot home page and follow the instructions for adding additional IRC servers closely...
Some servers do not allow [ type characters and some do not allow multiple connects. JPilot might see them as from the same source, I forgot if it really does.
Jpilot is just a client side IRC program (like Mirc) and it does not control what options you have available once you connect to an IRC server. Most IRC servers will not allow multiple logins by the same nickname.
IRC servers will also not allow spaces in a nickname, but the jchat.php script converts spaces to underscores in user names automaticly.
[]Dalantech said: I've fixed the template, but what did the error have to do with you connecting to irc.blackened.com? [/]
The parameters from the template are not send to the jchat and then it is using a default server (irc.black.....) After removing the " and making a " out of it the template worked correct for me. I am sure that this will also solve it for the others which had the same problem.
It's the way you explained it. I had know idea what you meant.
The escaped quotes in the template were there from me cutting and pasting from another chat.php script that didn't use a template (that's why the quotes were escaped). I don't use the default IRC server, so I had to have something to put in the chat template for the mod here. The only problem was that I forgot to remove the back slashes -doh!
Okay seems you have dachat somewhere in the template. Save the following code as jchat.tmpl and place in the template directory. Remember to change the name of the chat room you want to where it says so in the room name variable. I have it listed in CAPITALS.
OK, I am so sorry that I am making this difficult! I am sure that you wish you had never replied to my post
I have done what you have stated to do, atleast I think I have and now I have a greyed out box where the chat window should be. To me, it seems like it's not connecting to the chat server
That's an odd error. I just checked the zip file and there are no references to my chat page in any of the files. Where did you get the files that you used for this mod?
[]Dalantech said: That's an odd error. I just checked the zip file and there are no references to my chat page in any of the files. Where did you get the files that you used for this mod? [/] Great job putting this together !!!
[] dachat Cannot join channel (This channel has been closed by DALnet)" [/]
dachat is the name of the chat channel that I use on a private IRC server, so it looks like you used wget (or some other program) to pull the chat files from my web server instead of using the files included in the attachment on the first post of this thread...
Yes Josh is right if you have the chat directory under Threads you would not have needed to edit the template to do chat/jirc.php either. That Template I posted for you I modified for a MOCK room name for you and a MOCK title. It works fine under the scheme it is suppose to be. All chat files go in the chat subdirectory and then the template file in the template/default directory.
[]Dalantech said: This is the part that caught my attention:
[] dachat Cannot join channel (This channel has been closed by DALnet)" [/]
dachat is the name of the chat channel that I use on a private IRC server, so it looks like you used wget (or some other program) to pull the chat files from my web server instead of using the files included in the attachment on the first post of this thread... [/] Here is the code:
JUST KIDDING. Glad you got it working. Although I do not see personally why irc.dal.net does not work that is their base server which will load any one of those other channels that are open at the time.
if you type irc.dal.net in a chat program you may end up somewhere like munich.de.dal.net
It would have to use a port that your firewall can proxy. Since port 80 is used for HTTP (web surfing) you might try searching for chat scripts that use it (all firewalls proxy port 80).
Thought I would post this: I modified my jchat.php to change special characters in usernames.. I might not have gotten them, all, but did get the common ones my users have..
I think Dave_L gave me the script line to convert spaces to underscores. I wrote the jpilot chat script when I was first learning php. Now the more books I have the fewer questions I ask...
There is one problem with the way you wrote it: The value of $irc_nick will be the last line ( $irc_nick = str_replace('â„¢', '(TM)', $Username); ), all the others will be over written. Try changing it to this:
Hmm. Okay, this didn't do what I thought it would do. It logs users on with their board username, etc., but then they get renamed to guest because those nicks are already in use on dalnet or whatever. Is that what's supposed to happen or did I do something wrong? I'm not sure I get the point of using the board nicknames in that case, since virtually all of them are in use.
Yes that's supposed to happen. Otherwise they wouldn't be able to log onto the chat server. You'll need to install and run your own IRCd and services (if you want to offer control of the nicknames on the chat server) and have your jpilot applet connect to it so that this will not happen.
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.