Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
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 .

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
will try as soon as pavioni is working again smile

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
Well your site is working, but I'm getting a corrupt zip

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Oops, ascii mode bad. Fixed.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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?

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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"; },
},

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
heh, too early for meh. shocked

ZIP updated again, changes only to cp2_vars.cgi.

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
/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.!,

Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
What were the errors in your error log?

Sponsored Links
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
premature end of header scripts, uninitialized value, use of useless something.

smile I really enjoyed the last one tipsy

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
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"
Joined: May 2001
Posts: 1,042
Likes: 7
Moderator
Moderator
Offline
Joined: May 2001
Posts: 1,042
Likes: 7
Looks like your ubb_checkmsg.cgi is erroring out.

on the topline of ubb_checkmsg.cgi

change it to just:

#!/usr/bin/perl

Joined: Jan 2003
Posts: 118
Member
Member
Offline
Joined: Jan 2003
Posts: 118
Damn, you guys are so smart! I bow to your scripting wisdom...


-GATOR

"Pain is temporary, Pride is forever"
Joined: Apr 2003
Posts: 57
Member
Member
Offline
Joined: Apr 2003
Posts: 57
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

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
What would be the proceedure to block certain user(s) from being able to use IM?


- Allen wavey
- What Drives You?
Joined: Jan 2003
Posts: 3,456
Likes: 2
Master Hacker
Master Hacker
Offline
Joined: Jan 2003
Posts: 3,456
Likes: 2
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

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
laugh Thank you Ian smile


- Allen wavey
- What Drives You?
Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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 - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
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

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
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 - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
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

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
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?

Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188

Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
Any thoughts yet..?

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
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?
Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
Bizarre ... I would love to have this mod, but I guess it wasn't to be.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
It should work on your forum... I'd check your install of it.


- Allen wavey
- What Drives You?
Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
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...

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
smile Double-check your work in public_common.pl mostly...


- Allen wavey
- What Drives You?
Joined: Nov 2002
Posts: 188
Member
Member
Offline
Joined: Nov 2002
Posts: 188
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...

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
ouch... glad you are doing ok'ish smile


- Allen wavey
- What Drives You?
Joined: Dec 2003
Posts: 49
User
User
Offline
Joined: Dec 2003
Posts: 49
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.


Joined: Dec 2003
Posts: 49
User
User
Offline
Joined: Dec 2003
Posts: 49
^ Please ignore the above. Posted in wrong thread.

Joined: May 2005
Posts: 12
Junior Member
Junior Member
Offline
Joined: May 2005
Posts: 12
So does this mod work?

Thanks,

- Bill

Joined: Jan 2000
Posts: 5,833
Likes: 20
UBBDev / UBBWiki Owner
Time Lord
UBBDev / UBBWiki Owner
Time Lord
Joined: Jan 2000
Posts: 5,833
Likes: 20
It worked fine for me in 6.7.3 when i was running it last year...


UBB.Dev - Putting Dev into UBB.threads
Company: VNC Web Services - UBB.threads Scripts and Scripting, Install and Upgrade Services, Site and Server Maintenance.
Forums: A Gardeners Forum, Scouters World, and UGN Security
UBB.Threads: My UBB Themes, My UBB Scripts
Joined: Aug 2000
Posts: 178
Member
Member
Offline
Joined: Aug 2000
Posts: 178
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!


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Posts: 70
Joined: January 2007
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)