UBB.Dev
Posted By: Brett [6.7] [beta] Instant Messenger - 04/21/2004 8:54 AM
Modification Name: Instant Messenger

Author(s): Brett

Description: Lets the users IM other online users, using PNTF, through an alert javascript.

Demo: http://www.pavioni.com/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=msg

Requirements: UBB 6.7.x

Download Link: https://www.ubbdev.com/ubb/upload/00006378/IM6.7.zip

Credits: LK

This mod does require the CP mod addon .
Posted By: Ian Spence Re: [6.7] [beta] Instant Messenger - 04/21/2004 3:41 PM
will try as soon as pavioni is working again smile
Posted By: Ian Spence Re: [6.7] [beta] Instant Messenger - 04/21/2004 7:57 PM
Well your site is working, but I'm getting a corrupt zip
Posted By: Brett Re: [6.7] [beta] Instant Messenger - 04/21/2004 8:45 PM
Oops, ascii mode bad. Fixed.
Posted By: Ian Spence Re: [6.7] [beta] Instant Messenger - 04/21/2004 8:58 PM
btw Brett, people are gonna have trouble installing this without the spellcheck addon, may I suggest having them find the post don't count links in the cp?
Posted By: Ian Spence Re: [6.7] [beta] Instant Messenger - 04/21/2004 9:15 PM
psssttt.

Code
				vars_modifications::instant_message_refresh
You didn't give us the declaration of that, ie

Code
		instant_message_perms => {
type => "radio",
values => [qw(none admins mods all)],
default => q!all!,
req => 0,
final_code => sub { return "FIXME"; },
},
Posted By: Brett Re: [6.7] [beta] Instant Messenger - 04/21/2004 9:45 PM
heh, too early for meh. shocked

ZIP updated again, changes only to cp2_vars.cgi.
Posted By: Ian Spence Re: [6.7] [beta] Instant Messenger - 04/21/2004 10:06 PM
/me wonders why you escaped the "s in

Code
    q!vars_modifications-_-instant_message_time-description! => q!Every IM includes the date and time that it was sent. If you set to "Show it", it shows that time in the IM window.!,
Posted By: Ian Spence Re: [6.7] [beta] Instant Messenger - 04/25/2004 4:46 AM
Brett, ubb_checkmsg.cgi has been giving me a huge error log, so I fixed it to the best of my ability.

https://www.ubbdev.com/ubb/upload/00020028/ubb_checkmsg.txt

smile
Posted By: Brett Re: [6.7] [beta] Instant Messenger - 04/25/2004 11:00 AM
What were the errors in your error log?
Posted By: Ian Spence Re: [6.7] [beta] Instant Messenger - 04/25/2004 4:59 PM
premature end of header scripts, uninitialized value, use of useless something.

smile I really enjoyed the last one tipsy
Posted By: GATOR420 Re: [6.7] [beta] Instant Messenger - 05/09/2004 11:28 PM
OK, how exactly does this work? I tried to send an IM to another test user and they don't get any messages. They send to me and I don't get them. I'm guessing this might have to do with me hosting the site on a different port than port 80(because it's blocked on my ISP)? How to fix is the question... Any ideas?
Posted By: Brett Re: [6.7] [beta] Instant Messenger - 05/10/2004 1:14 AM
Looks like your ubb_checkmsg.cgi is erroring out.

on the topline of ubb_checkmsg.cgi

change it to just:

#!/usr/bin/perl
Posted By: GATOR420 Re: [6.7] [beta] Instant Messenger - 05/10/2004 3:33 AM
Damn, you guys are so smart! I bow to your scripting wisdom...
Posted By: Mr. B Re: [6.7] [beta] Instant Messenger - 05/19/2004 1:55 AM
Nice hack brett .. It's realy a pleasure to have it back ...

I had a problem with ubb_checkmsg

IMs still appearing to me until I refresh the page <<< the same problem that I had on 6.5 shocked

===
Ian ..
ur file is not workin smash
Posted By: AllenAyres Re: [6.7] [beta] Instant Messenger - 09/07/2004 9:14 PM
What would be the proceedure to block certain user(s) from being able to use IM?
Posted By: Ian Spence Re: [6.7] [beta] Instant Messenger - 09/07/2004 9:37 PM
change
Code
if ($ubb eq 'msg') {
&RequireCode("$vars_config{CGIPath}/ubb_msg.cgi");
&im_form;
exit(0);
} # end if

if ($ubb eq 'send_msg') {
&GetOrPost("POST");
&RequireCode("$vars_config{CGIPath}/ubb_msg.cgi");
&im;
exit(0);
} # end if
to

Code
if ($ubb eq 'msg') {
if($user_number =~ m/^(00000247|0000023|00000003)$/) {
&StandardHTML("Go away!");
}
&RequireCode("$vars_config{CGIPath}/ubb_msg.cgi");
&im_form;
exit(0);
} # end if

if ($ubb eq 'send_msg') {
&GetOrPost("POST");
if($user_number =~ m/^(00000247|0000023|00000003)$/) {
&StandardHTML("Go away!");
}
&RequireCode("$vars_config{CGIPath}/ubb_msg.cgi");
&im;
exit(0);
} # end if
Posted By: AllenAyres Re: [6.7] [beta] Instant Messenger - 09/08/2004 5:30 AM
laugh Thank you Ian smile
Posted By: Gizmo Re: [6.7] [beta] Instant Messenger - 09/08/2004 5:47 AM
Quote
Originally posted by AllenAyres:

What would be the proceedure to block certain user(s) from being able to use IM?
Wouldn't a better one being only allowing specific users? hehe
Posted By: tgreene Re: [6.7] [beta] Instant Messenger - 12/25/2005 9:59 PM
The "IM" link is not showing up on my {Forum Summary} page, as well as several others. Any ideas..?

Eedited to add, that I'm not so sure it's working at all... I see the options in thew CP, and have selected them, then I tried sending a etst message, and it seems that it isn't functioning properly. frown
Posted By: Gizmo Re: [6.7] [beta] Instant Messenger - 12/26/2005 7:01 AM
If the link in the header isn't showing up then you need to re-do the public_common.pl steps (As the header links are contained in that file).
Posted By: tgreene Re: [6.7] [beta] Instant Messenger - 12/26/2005 4:46 PM
The strange thing is, they DO show up on several pages...

Things that make ya go hmmmmmmmmmmmmmm! confused

If you would be so kind as to take a look, my URL is: http://www.gr-outdoors.com/index-forums.htm
Posted By: LK Re: [6.7] [beta] Instant Messenger - 12/28/2005 12:40 PM
There might be a collision with another hack. Can you ZIP up your /noncgi/Templates/public_forum_summary.pl file, upload it and send me a link to the ZIP file?
Posted By: tgreene Re: [6.7] [beta] Instant Messenger - 12/28/2005 5:25 PM
http://www.gr-outdoors.com/uploads/public.zip
Posted By: tgreene Re: [6.7] [beta] Instant Messenger - 01/03/2006 1:31 AM
Any thoughts yet..?
Posted By: AllenAyres Re: [6.7] [beta] Instant Messenger - 01/04/2006 7:37 AM
odd, it only works on some pages confused

There's other issues as well, when you click into a forum, the breadcrumb link back to the forum index isn't there, just the category.
Posted By: tgreene Re: [6.7] [beta] Instant Messenger - 01/04/2006 5:31 PM
Bizarre ... I would love to have this mod, but I guess it wasn't to be.
Posted By: AllenAyres Re: [6.7] [beta] Instant Messenger - 01/05/2006 6:23 AM
It should work on your forum... I'd check your install of it.
Posted By: tgreene Re: [6.7] [beta] Instant Messenger - 01/05/2006 5:09 PM
I've put the original files back, so I'll attempt a re-hack of it to see if I made a mistake somewhere along the line...
Posted By: AllenAyres Re: [6.7] [beta] Instant Messenger - 01/07/2006 2:30 AM
smile Double-check your work in public_common.pl mostly...
Posted By: tgreene Re: [6.7] [beta] Instant Messenger - 01/17/2006 6:43 PM
I should be able to get to re-hacking it today, as I've pretty much been flat on my back since the day after Christmas, when I had a nasty rock climbing accident that screwed up my left leg & foot...
Posted By: AllenAyres Re: [6.7] [beta] Instant Messenger - 01/19/2006 5:30 AM
ouch... glad you are doing ok'ish smile
Posted By: Nightcrawler Re: [6.7] [beta] Instant Messenger - 09/03/2006 8:25 AM
Is there a way to allow specific users a different Maximum # Of Files instead of the group option?

For example, I want member 00000387 to be able to upload 10 files rather than his group's 5 files max.

Posted By: Nightcrawler Re: [6.7] [beta] Instant Messenger - 09/03/2006 9:42 PM
^ Please ignore the above. Posted in wrong thread.
Posted By: bpeirce Re: [6.7] [beta] Instant Messenger - 01/11/2007 12:34 AM
So does this mod work?

Thanks,

- Bill
Posted By: Gizmo Re: [6.7] [beta] Instant Messenger - 01/11/2007 8:13 AM
It worked fine for me in 6.7.3 when i was running it last year...
Posted By: Painfool Re: [6.7] [beta] Instant Messenger - 10/13/2007 1:06 AM
An interesting point was made by a user; If someone selects "Don't Allow anyone to IM Me" - shouldn't they have the right to actually SEND IM's revoked? Anyway or anyone willing to see if thats possible?

Thanks smile Still debating the Threads thing, maybe someday!
© UBB.Developers