UBB.Dev
This is a script to allow ubb membership integration to digichat's chat service.
Updated: 2-1-02
Thanks for your help, LK!

Download

[ 11-11-2001: Message edited by: MasterMind ]
thanks iv been waiting for this
Thanks MasterMind smile
no prob. try it, nonlive, before using it. Report bugs here to be fixed.
Sorry, but we couldn't find a record for Username:. Please try again. Use your Back button.

This is what i am getting on 6.1.2
Good. FITNR.

With help, LK, take a look please? smile
MM, i thank u for even tryin this, but one question, i have been able to down grade a number of 6.1+ hacks into my 6.05 forum, i have decided not to go to 6.1 because im waiting on 6.2+, so will this work on 6.05 or will i have to play with the scripts?. if it will work on 6.05 illbe happy to help u test it :]
no, not as-is
I got it to work in my board:

1. I didn't use form_data at all, just "%DATA = map{$_ => param($_)} param(); #map is your friend!" (it was commented before).

2. $user_number = &GetUserNumber($user); - notice $user_number and $user.

3. if ($user_number ne "") { - since $ProfileNumber doesn't exist, see #2.

4. @user_profile = &OpenProfile("$user_number"); - without .cgi

5. $pubname = &GetPubName($user_number); - get public name.

6.

I think that's all smile good job, demo: http://www.lkubb.dns2go.com/?ubb=digichat .
Thanks LK. ZIP updated with beta 1.
Looks like it's still the old zip confused Is it my Temporary Internet Files?

Anyway, I modified the code a little to set up a demo account: test/digichat.

[ 11-11-2001: Message edited by: LK ]
no...its the new one...
Code
code:
$user_number should before $pubname wink

Except that I think everything is fine smile
Quote
quote:
The same message here. It's still alpha i guess frown
ok i feel dumb saying this but

i'm totaly lost in setting this up
how do i install this? frown
Variables: I'll check it out. Make sure you have the newest zip file from the server.

Asniper: I'll have an HTML file for this in about 5.
Maybe not. Hold on..
Fixed a few bugs. Uses nice errors like UBB. Uses ubb's text and background. At the top you need to set your digichat siteid in "$id = " variable.
$pubname = &GetPubName($pubname); should be $pubname = &GetPubName($user_number); wink

Except that it works fine, demo updated.
Does this work when the Digichat is on an other server?

I hope you put a good readme file in the zip. wink
yes
Suppose a member has logged in and wants to go to Digichat. A link to digichat.cgi does not work. LK has it in a login-intro that brings you instantly to Digichat. Lk, how do you do that, and how can it be put in the main-intro of a forum to do the same?
In ultimatebb.cgi
Code
code:

[ 11-13-2001: Message edited by: LK ]
Tnx LK, that was crucial. Great, it works. wink

It would be nice if the member who has already logged in at the forum, can travel to Digichat without entering the name and password again.

[ 11-13-2001: Message edited by: Variables ]
Change it to the updated code above (I edited it now), it automatically types in the username/password in the login page (?ubb=digichat).
Perfect! Great job LK. wink
What is new?
Can this mod link profile info form UBB to digichat profies?
I´m sorry to bother, but could you include instructions on how to install the hack?

I copied digichat.cgi to ubb cgi, and also hacked ultimatebb.cgi as LK said.
But how do I link to the file?

If I go to http://mydomain.com/cgiubb/ultimatebb.cgi?ubb=digichat, the login appears with my nick and password already typed, but when I try to login it takes me back to the forums summary page.
manuel, you have 'ation' instead of 'action'.
This is the only release for 6.1.0 (pending bugs). 6.2.0 will have a new, more functional version with a few new features. Stay tuned!
Hehe, stupid me. laugh


I used the "embeded" parameter, and even though the chat poped-up. Any clue on this?

I would like it that who´s online shows when users are chating. This is possible?


Thanks guys !!
anyone has a demo site?
Allen, http://www.lkubb.dns2go.com/?ubb=digichat , use username/password: test/digichat
thanks, looking good
But why I can't chat ?I can't see what I type,
I can't choose Chatwatch option in Digichat.
LK,How can I do for this ?
I'm lost too. The zip file I downloaded (linked at the top of this thread) had two files. One is a readme file stating that this is the alpha version. The other has the code, but I'm totally lost on which files I'm supposed to edit and where?

Can somebody explain this to me? This is not my area of expertise. Sorry.

Thanks for the help.
Forgot to mention that I'm running v6.05. Will this still work?

LtUSMC
In the end of $MainButtonsLine (ubb_lib.cgi) line, add:
| digichat

If you don't want it to say the username/password, you can use my login that I posted before:

In ultimatebb.cgi
Code
code:

Then, use:
| digichat
I think mine is not working becasue I'm using v6.05. Otherwise, I did the following:

I edited digichat.cgi and changed the CODEBASE line to reflect the correct server. The CODE line was the same, so I didn't change it. I also didn't find what was referred to as , as there was no port parameter being used that noticed in my current html code.

I tried using the link of:

http://www.....com/cgi-bin/ultimatebb.cgi?ubb=digichat

And the username and password appears properly. But when I click submit, I get a "The page cannot be displayed" message, and the page is titled HTTP 500 Internal Server Error.

How can I change the program to have it work with v6.05? I would really appreciate this help

Any ideas?

Thanks.

[ 12-01-2001 02:50 AM: Message edited by: LtUSMC ]
Quote
quote:
no
Is there anything I can do to modify the program to have it work with v6.05?

The reason I'm hesitant to upgrade to v6.10 is because of all the other hacks I have installed already. I assume I would lose them in the upgrade.

Any suggestions on what I could to make it work with v6.05? I can work on the program if I can get some guidance. Or are there alternative solutions? Thanks
Ok, I went ahead and upgraded to v6.10. Now the DigiChat hack works like a charm. Thanks!!

Two questions:

1) I have the login/password form on my forum summary page. I would like it to open a new window? Where and what file should I edit to do this?

2) Since I have my username/password login on the forum summary page, they currently show up blank when one opens this page. What can I modify in order to have these already filled with the username & password information?

3) Is there a way for DigiChat to remember user settings such as icon and profile?

Thank you for all the help.

LtUSMC
I have the same question and feel the same as Asniper. . .
up
suh-weet. been waiting for this one. good job guys....
One suggestion. First, I have my UBB set to not allow guests at all. I'm trying to link (from a page outside of the UBB) directly to the digichat login screen, but if you aren't logged in it asks you to do so, and then after you login instead of sending you to the digichat login screen again, it sends you to the main UBB page.

I'm running 6.2.0
Updated. Not sure if it will WORK, but...
[code][/code]Why is it needed? tipsy

1. There isn't $in{refer}.
2. $ubb isn't used anywhere.
3. You have more }s than {.
4. You're printing blank variables as cookies.
FYI, it's in there for version 2.0, coming to a theatre near you.
Oh, also another suggestion...

The old digichat hack allowed you to pass variables for avatars and other preferences.

That would be dope.
Hi LK

Have you managed to call the digichat.cgi directly without
using a form. You seem to say that you can in a earlier note, but
I don't understand what to change. frown I have the form version working
with my board thanks to your later note.

Any ideas on how you could login to DigiChat when you are not already
logged into UBB? At present it logs you into UBB then takes you to the forums.

I would be very grateful for any hints on how to get that to work.

I am now looking at the buddies capability in DigiChat. I think
It should be possible to interface it quite neatly with UBB.
I am going to attempt to write some code and will post it here if
anyone is interested.

Cheers

Websorceror
In digichat.cgi, find:
Code
[/code]Replace with:[code]
Then try to link to digichat.cgi... It's not tested, but I think it should work.
Hi LK,

Wow I didn't expect a response that quick, thanks very much I will try that.
Do you know if this hack is going to eventually become a finished application.
It works really well on my board, so I am already pretty happy with it.
Are there any known deficiencies I should be aware of?

Cheers

Websorceror smile
Hi LK,

Your suggestion to bypass the form worked like a dream.

Many Thanks

Websorceror
Hi Greg and LK,

I have been testing the digichat hack over the past few days and have found one small bug,
so far (pretty good for beta software smile ). If you access the chat using Netscape it fails with
a file not found, this is because the case on the client.jar is wrong. Literally only changing the
uppercase "C" to lowercase will fix the fault.

Find (in digichat.cgi)
ARCHIVE="Client.jar"

Change to
ARCHIVE="client.jar"

I have also found if I use LK's cookie code that it can let people through who do not have post
access under some circumstances when calling the hack directly. I have written a small patch to
fix the problem and will post it when i have tested it works correctly. Thanks for the great
hack it has allowed me to really integrate Digichat in with my UBB membership in record time.

Greg are you still intending to release v2.0, if so could you give any clues as to what it will
contain?

Cheers

Websorceror
Have you ever seen that problem yourself?
Hi LK,

I have seen it on my system, it is likely to be rare but I have been able to reproduce it. I will logon to my other system to get the details, should get back to you within 15 mins.

Cheers

Websorceror
Hi LK,

I found that users who had been members, but
since had their posting ability turned off could
still access digichat if I called the hack
directly using your cookie suggestion. They
obviously needed to have logged on with posting
rights before, and still have a valid cookie.

To prevent this I added the following code

Find

&DoPostTheReply;

Add this immediately before it

if ($user_profile[4] !~ /Write/i){
print("

Sorry, you not authorised to chat");
exit;
}

So far it seems to solve the problem.

I am also going to try to interface with the UBB buddies facility. I am still learning Perl and
UBB so that should be interesting. Hope the above is useful.

Cheers

Websorceror
The link is down.. frown
Hi Morpheus,

The link is live again now, I just successfully
downloaded the hack. This is a really good hack,
but make sure you read the posts by LK on how to
install and call it. Great to see someone else
interested in integrating Digichat, good luck and
enjoy.

I have been looking at writing some extensions
for this to allow saving of buddy lists and
possibly more. I may release them here when they
are finished if anyone is interested.

Cheers

Websorceror
Yeah! Great hack! Nice Work!
i just cant seem to understand this step
i am using 6.3.0
does that mean it wont work?

[code][/code]Then, use:
| digichat[/b]
anyone can shed some light on this please?
i seem to have it working but only this part of the linking doesnt seem to work or i dont understand this post above

please help...i have 6.3.0
bump

help please
thanks LK for all your help
sorry didnt mean to bother you with the PMs
Digichat applet can be assessable by php and mysql! So you can run the applet with php values that can connect to your mysql database:

PHP Code
<applet name="DigiChat" 
codebase="http://hostname/DigiChat/DigiClasses/"
code="com.diginet.digichat.client.DigiChatApplet"
width="200" height="90" align="middle" archive="client.jar">
<
param name="siteID" value="<?php echo $_SESSION['SESS_SITE_ID']; ?>">
<
param NAME="Age" VALUE="<?php echo $_SESSION['SESS_AGE'];?>">
<
param NAME="realname" VALUE="<?php echo $_SESSION['SESS_REAL_NAME'];?>">
<
param NAME="nickname" VALUE="<?php echo $_SESSION['SESS_FIRST_NAME'];?>">
<
param name="url" value="<?php echo $_SESSION['SESS_URL']; ?>">
<
param name="exitmessage" value="<?php echo $_SESSION['SESS_EXIT_MESSAGE']; ?>">
<
param name="comments" value="<?php echo $_SESSION['SESS_COMMENTS']; ?>">
<
param name="cabbase" value="Client.cab">
<
param name="background" value="ffffff">
<
param name="textcolor" value="000000">
<
param value="true" name="RoomsTab">
<
param name="quickload" value="true">
<
param name="signed" value="TRUE">
<
param name="ports" value="7545,7546,7547,7548">
</
applet>
Danke xCx
© UBB.Developers