Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2004
Posts: 2
Junior Member
Junior Member
Offline
Joined: Mar 2004
Posts: 2
Since I couldnt find any mods that did this, and Im not familiar with CGI, I just threw this together. If anyone can improve on it, or knows a better way, please let me know!

Requires Wordlets mod and Instant Messenger Mod.


In ubb_pm.cgi

****************
Find
****************
&WriteFileAsString("$vars_config{MembersPath}/pm_info/pm_counter.cgi", "$pm_countern");

********
Add
********
#Send PM Notice
$PMI = "You have a new Private Message!";
$file[$#file + 1] = "$user_number||\n\n$PMI||||";
&WriteFileAsArray("$vars_config{MembersPath}/popup/$in{u}.cgi", @file);

********
find
********
&WriteFileAsString("$vars_config{MembersPath}/pm_info/pm_counter.cgi", "$pm_countern");

********
Add
********
#Send PM Notification

$PMI = "You have a new Private Message!";
$sendmeto = $pm_to{$thispost};

$file[$#file + 1] = "$user_number||\n\n$PMI||||";
&WriteFileAsArray("$vars_config{MembersPath}/popup/$sendmeto.cgi", @fil
***********

Thats it, the first one goes in New PM and the second entry is for Reply to PM. Any questions? I just cobbled it together really, so I dont mind if anyone fixes/does a better one. smile Thanks

Robert

Sponsored Links
Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Still not sure what this does. Can you explain? Eventually show me a screen shot?

Thank you

Joined: Mar 2001
Posts: 7,394
LK Offline
Admin / Code Breaker
Admin / Code Breaker
Offline
Joined: Mar 2001
Posts: 7,394
Very nice idea, good job! smile
Felix, it shows you a pop-up (with Instant Message mod) when you get a new private message.

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
Still dont know what it does. PM Mod already pops a windows with a "You have 'n' messages" when you receive one. It is part of the Mod!

and BTW you are missing something on the last line:
&WriteFileAsArray("$vars_config{MembersPath}/popup/$sendmeto.cgi", @fil

Joined: Oct 2002
Posts: 394
Enthusiast
Enthusiast
Offline
Joined: Oct 2002
Posts: 394
I think I got it..When someone writes you a Private Message you receive a notification like this: it pops a PM window, in my case the enhanced one in which you can reply right on the spot.

[Linked Image]

and if you reply the sender gets just a Instant Message.
Nice...

LK, can it be modified to show you some info about the PM, say the date, the subject and maybe a link to the Message or at least the Inbox folder? I have the PM Folders installed.

Thank you,

Felix

Sponsored Links
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
:glances at version number:


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

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
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
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
WebGuy 2
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)