View Single Post
  #20  
Old 04-30-2004, 01:28 PM
Pseudomizer's Avatar
Pseudomizer Pseudomizer is offline
 
Join Date: Mar 2002
Location: Germany
Posts: 614
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by yeloc
I installed the digichat hack and it worked perfectly on my test server. Nice job Pseudo.
Thanks.

Quote:
Originally Posted by yeloc
Now I have a question for everyone because I get a little confused when it comes to this. I run my website from my own server at home, so when I connected to my test server I would open my forum from 192.168.1.x. Then I would go to chat and Digichat would open just find without issue. The thing that I get confused about is when I install Digi to my real server. Do I put in my local ip of 192.168.1.x or the IP that the world gets to like "http://www.nottashouseofpancakes.com"? I know that seems stupid, but I'm confused by this.
This is very easy. Forget your testserver. Just think about your environment. You have a webserver with an IP adress and an URL. If you install the DigiChat on the same server you will have the /DigiChat folder in your webroot OR you install it on a different URL and different folder which you have to set in your apache config. Let's assume you put it into your root folder.

So you will have / which will be http://www.nottashouseofpancakes.com and below that you will have /DigiChat and /forum. So all clients will connect to the chat through http://www.nottashouseofpancakes.com...es/Default/bla bla bla. You can also use the IP but this will only work if your apache webserver has set the * = default webroot to your http://www.nottashouseofpancakes.com folder. So i highly recommend to use the URL name and not the IP if you are on the same server. This differs if you have a dedicated chat server like me. That's why i offer both in my hack.

Quote:
Originally Posted by yeloc
Also, I don't use the standard port of 80. I had to change my port to 8085. So when I install Digichat do I put in "http://www.nottashouseofpancakes.com:8085 as the host name"? If I'm reading correctly I think this program doesn't work to well with non standard ports and if it does you have to add a special piece of software which is a tad overwhelming. To work around this could I install the Digichat part to another machine and run that on port 80? I know this isn't part of the hack, but I figure we might have some time since not that many people might have this. Thanks guys and again great work Pseudo.
This is a little bit tricky and it takes some time to understand it. Per default the DigiChat starts on port 8396 and not on port 80. If you wish to specify on specific port you can set this in your parameters file in your DigiChat installation folder ( not the http folder ) and it will look like this filename "parameters":

out=/var/log/digi_out.txt
err=/var/log/digi_err.txt
ports=8396

So if you go with the standard installation your clients will connect to the chat through port 8396 and they will use port 80 to load all the grafics like emoticons, usericons, etc. If you have an error in your configuration with the http path then all clients will be able to connect to port 8396 but they will not see any graphics in the chat. Let me show you how this works:

Client -> loads Applet via HTTP port 80 from your specified webserver
Applet -> connects to the chatserver via port 8396 and starts the chat
Chat -> loads all icons via port 80 from your http://www.nottashouseofpancakes.com/DigiChat folder

You can set the port for the chat to whatever you want but the problem will be that users behind a firewall will not be able to connect. That's why there is the offer from HTTP Tunneling. There are multiple free software packages out there to run HTTP Tunneling ... BUT ... what happens with HTTP tunneling ?

Per default the applet start checking the following ports for the chat application:
- 80
- 443
- 8396

If nothing is found it will stop. If you specify your own port that does NOT include HTTP Tunneling. HTTP Tunneling is, to route all trafic to a specific port through your port 80 or 8080. The problem will be that you will get performance problems because all chat clients will connect through your port.

A good trick here is to use the port 443 as your HTTP Tunneling port because most of the adminstrators out there don't use/need SSL for their webservers and port 443 is open is 99% of the firewalls. Or you use port 8080 which is also used for proxy environments and due to this 90% of the firewalls have this port open.

I hope i did not confuse you with all this information but it took me 1 week to understand how it works and to install Tomcat for HTTP Tunneling through port 8080. Per default i have no HTTP Tunneling login enabled. The user has to specifically choose the firewall login to enter the chat as you can see in the drop down menu of the Chat start template.

Did this help or did this confuse you more ? I am more then happy to go deeper into this. Just tell me.

Cheers,
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01163 seconds
  • Memory Usage 1,792KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete