php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#202885 - 04/21/04 01:54 AM [6.7] [beta] Instant Messenger
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
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: http://www.ubbdev.com/ubb/upload/00006378/IM6.7.zip

Credits: LK

This mod does require the CP mod addon .

Top
#202886 - 04/21/04 08:41 AM Re: [6.7] [beta] Instant Messenger
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
will try as soon as pavioni is working again smile
_________________________
Code monkey like Fritos

Top
#202887 - 04/21/04 12:57 PM Re: [6.7] [beta] Instant Messenger
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Well your site is working, but I'm getting a corrupt zip
_________________________
Code monkey like Fritos

Top
#202888 - 04/21/04 01:45 PM Re: [6.7] [beta] Instant Messenger
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Oops, ascii mode bad. Fixed.

Top
#202889 - 04/21/04 01:58 PM Re: [6.7] [beta] Instant Messenger
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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?
_________________________
Code monkey like Fritos

Top
#202890 - 04/21/04 02:15 PM Re: [6.7] [beta] Instant Messenger
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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"; },
		},
_________________________
Code monkey like Fritos

Top
#202891 - 04/21/04 02:45 PM Re: [6.7] [beta] Instant Messenger
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
heh, too early for meh. shocked

ZIP updated again, changes only to cp2_vars.cgi.

Top
#202892 - 04/21/04 03:06 PM Re: [6.7] [beta] Instant Messenger
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
/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.!,
_________________________
Code monkey like Fritos

Top
#202893 - 04/24/04 09:46 PM Re: [6.7] [beta] Instant Messenger
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Brett, ubb_checkmsg.cgi has been giving me a huge error log, so I fixed it to the best of my ability.

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

smile
_________________________
Code monkey like Fritos

Top
#202894 - 04/25/04 04:00 AM Re: [6.7] [beta] Instant Messenger
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
What were the errors in your error log?

Top
#202895 - 04/25/04 09:59 AM Re: [6.7] [beta] Instant Messenger
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
premature end of header scripts, uninitialized value, use of useless something.

smile I really enjoyed the last one tipsy
_________________________
Code monkey like Fritos

Top
#202896 - 05/09/04 04:28 PM Re: [6.7] [beta] Instant Messenger
GATOR420 Offline
Member

Registered: 01/31/03
Posts: 118
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?
_________________________
-GATOR

"Pain is temporary, Pride is forever"

Top
#202897 - 05/09/04 06:14 PM Re: [6.7] [beta] Instant Messenger
Brett Offline
Moderator

Registered: 05/04/01
Posts: 992
Loc: Twinsburg, Ohio
Looks like your ubb_checkmsg.cgi is erroring out.

on the topline of ubb_checkmsg.cgi

change it to just:

#!/usr/bin/perl

Top
#202898 - 05/09/04 08:33 PM Re: [6.7] [beta] Instant Messenger
GATOR420 Offline
Member

Registered: 01/31/03
Posts: 118
Damn, you guys are so smart! I bow to your scripting wisdom...
_________________________
-GATOR

"Pain is temporary, Pride is forever"

Top
#202899 - 05/18/04 06:55 PM Re: [6.7] [beta] Instant Messenger
Mr. B Offline
Member

Registered: 04/13/03
Posts: 56
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

Top
#202900 - 09/07/04 02:14 PM Re: [6.7] [beta] Instant Messenger
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
What would be the proceedure to block certain user(s) from being able to use IM?
_________________________
- Allen wavey
- What Drives You?

Top
#202901 - 09/07/04 02:37 PM Re: [6.7] [beta] Instant Messenger
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
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
_________________________
Code monkey like Fritos

Top
#202902 - 09/07/04 10:30 PM Re: [6.7] [beta] Instant Messenger
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
laugh Thank you Ian smile
_________________________
- Allen wavey
- What Drives You?

Top
#202903 - 09/07/04 10:47 PM Re: [6.7] [beta] Instant Messenger
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5095
Loc: Portland, OR, USA
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
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#202904 - 12/25/05 01:59 PM Re: [6.7] [beta] Instant Messenger
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
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

Top
#202905 - 12/25/05 11:01 PM Re: [6.7] [beta] Instant Messenger
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5095
Loc: Portland, OR, USA
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).
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#202906 - 12/26/05 08:46 AM Re: [6.7] [beta] Instant Messenger
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
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

Top
#202907 - 12/28/05 04:40 AM Re: [6.7] [beta] Instant Messenger
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
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?
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#202908 - 12/28/05 09:25 AM Re: [6.7] [beta] Instant Messenger
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas

Top
#202909 - 01/02/06 05:31 PM Re: [6.7] [beta] Instant Messenger
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
Any thoughts yet..?

Top
#202910 - 01/03/06 11:37 PM Re: [6.7] [beta] Instant Messenger
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
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.
_________________________
- Allen wavey
- What Drives You?

Top
#202911 - 01/04/06 09:31 AM Re: [6.7] [beta] Instant Messenger
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
Bizarre ... I would love to have this mod, but I guess it wasn't to be.

Top
#202912 - 01/04/06 10:23 PM Re: [6.7] [beta] Instant Messenger
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
It should work on your forum... I'd check your install of it.
_________________________
- Allen wavey
- What Drives You?

Top
#202913 - 01/05/06 09:09 AM Re: [6.7] [beta] Instant Messenger
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
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...

Top
#202914 - 01/06/06 06:30 PM Re: [6.7] [beta] Instant Messenger
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
smile Double-check your work in public_common.pl mostly...
_________________________
- Allen wavey
- What Drives You?

Top
#202915 - 01/17/06 10:43 AM Re: [6.7] [beta] Instant Messenger
tgreene Offline
Member

Registered: 11/28/02
Posts: 187
Loc: Jonesboro, Arkansas
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...

Top
#202916 - 01/18/06 09:30 PM Re: [6.7] [beta] Instant Messenger
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25373
Loc: Texas
ouch... glad you are doing ok'ish smile
_________________________
- Allen wavey
- What Drives You?

Top
#311422 - 09/03/06 01:25 AM Re: [6.7] [beta] Instant Messenger [Re: AllenAyres]
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
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.


Top
#311427 - 09/03/06 02:42 PM Re: [6.7] [beta] Instant Messenger [Re: Nightcrawler]
Nightcrawler Offline
User

Registered: 12/17/03
Posts: 47
Loc: San Diego
^ Please ignore the above. Posted in wrong thread.

Top
#312596 - 01/10/07 04:34 PM Re: [6.7] [beta] Instant Messenger [Re: Nightcrawler]
bpeirce Offline
Junior Member

Registered: 05/24/05
Posts: 12
So does this mod work?

Thanks,

- Bill

Top
#312605 - 01/11/07 12:13 AM Re: [6.7] [beta] Instant Messenger [Re: bpeirce]
Gizmo Administrator Offline
Wizard

Registered: 01/10/00
Posts: 5095
Loc: Portland, OR, USA
It worked fine for me in 6.7.3 when i was running it last year...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design Owner

Top
#315997 - 10/12/07 06:06 PM Re: [6.7] [beta] Instant Messenger [Re: Gizmo]
Painfool Offline
Member

Registered: 08/14/00
Posts: 182
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!

Top
Page 1 of 2 1 2 >


Moderator:  Charles, Gizmo