Embedding Fastpath Webchat in a personal webpage

Ok this is probably a simple question for alot of you. I have installed openfire enterprise and added the fastpath webchat plugin. It is all working fine with Active Directory. My question is how would I embed the chat links onto my personal webpage. Any help would be greatly appreciated.

christoph wrote:

Ok this is probably a simple question for alot of you. I have installed openfire enterprise and added the fastpath webchat plugin. It is all working fine with Active Directory. My question is how would I embed the chat links onto my personal webpage. Any help would be greatly appreciated.

I’ve done this on my blog - you can view the source to get an idea of how it’s done - Just change the URL and workgroup name to yours. Your URL may also need to include port 9090 (or whatever you have it set to). I’ve got our Openfire server running behind an Apache web server with a bunch of mod_rewrite rules so that it all serves up on ports 80/443.

Sam,

I have look at the coding on your blog web site. A few questions.

1/ show nickname or name


In the source code, you have “api/presence.cgi?jid=YourNetworkID”. Is this a plugin? If so which one?

2/ mod_rewrite


we put the below in our etc/httpd/conf.d/ssl.conf and in shell did a “service httpd restart”. It is not working for me. I get a 503 Service Temporarily Unavailable page. How did you get your mod_rewrite to work? I am using Centos 5 and openfire 3.5.1.

I am using the url in browser https://example.com/plugins/presence/status?jid=NetworkID@example.com&type=text

servername example.com ProxyVia On RewriteEngine On RewriteCond %{REQUEST_URI} ^/plugins/presence/status RewriteRule ^/(.*) https://example.com:9091/$1 [P]

3/ google talk

I see on your blog page you have a separate link for google talk. Can this be done through spark or sparkweb or do I need a separate desktop app?

Please start your own thread and ask your question there. This thread is a year old and is not applicable anymore since the product has gone opensource.

I have created a new thread, http://www.igniterealtime.org/community/thread/34475

hosdes wrote:

Sam,

I have look at the coding on your blog web site. A few questions.

1/ show nickname or name


In the source code, you have “api/presence.cgi?jid=YourNetworkID”. Is this a plugin? If so which one?

2/ mod_rewrite


we put the below in our etc/httpd/conf.d/ssl.conf and in shell did a “service httpd restart”. It is not working for me. I get a 503 Service Temporarily Unavailable page. How did you get your mod_rewrite to work? I am using Centos 5 and openfire 3.5.1.

I am using the url in browser https://example.com/plugins/presence/status?jid=NetworkID@example.com&type=text

servername example.com ProxyVia On RewriteEngine On RewriteCond %{REQUEST_URI} ^/plugins/presence/status RewriteRule ^/(.*) [https://example.com:9091/$1](https://example.com:9091/%241) [P]

3/ google talk

I see on your blog page you have a separate link for google talk. Can this be done through spark or sparkweb or do I need a separate desktop app?

To answer your questions:

  1. presence.cgi is a little perl script I wrote that does the embedding as javascript instead of an object tag. It grabs the contents of the presence URL with curl, and then prints out a tiny javascript program that just does a document.write of the curl-ed text.

  2. That’s pretty much how my mod_rewrite is configured. The only difference I see is that I’m using port 9090 and HTTP instead of 9091/HTTPS, and I don’t have it wrapped in IfModule tags. Does your Apache error log say anything? Is mod_rewrite actually installed?

  3. The Google Talk chatback stuff can “kind of, but not really” be done through Spark/Sparkweb. You will need to have the Google Talk gateway set up on your server and have your account logged into it via the gateway. When someone clicks on the chatback request, it sends an IM saying “someone clicked your chatback button. Go to this URL to talk to them: http://long-google-talk-chatback-gadget-url”, and that’s all the interaction it has with your XMPP client. You can’t actually conduct the chat within your XMPP client - just the google gadget thing.

Sam

Sam,

For #2, mod_write

a/ see mod_rewrite is loaded in phpinfo.php file. I also checked in httpd.conf file and see “LoadModule rewrite_module modules/mod_rewrite.so
”. It looks like it is enabled.

b/ port and without port #.

I am testing within LAN to make sure it works.

I can see it when I go to port #, https://192.168.1.xxx:9091/plugins/presence/status?jid=NetworkID@example.com&typ e=text. When I type without port #, I get a 404 error.

in httpd.conf I put

servername example.com ProxyVia On RewriteEngine On

RewriteCond %{REQUEST_URI} ^/plugins/presence/status
RewriteRule ^/(.*) https://192.168.1.xxx/$1 [P]

c/ doors close in httpd.conf

We have selected doors close and open to public. Do I have to put this in the httpd.conf file?

<Directory “/opt/openfire/plugins/presence/status”>
Options FollowSymLinks
AllowOverride All