Previous Thread
Next Thread
Print Thread
Rate Thread
#261804 11/01/2003 4:01 AM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: PMs Via Email 2.1

Description: This hack expands the notification of Private Messages via email by showing you the actual message, and who it is from inside the email. Great way to keep up with your PMs when you don't have time to browse the site, and an excellent way to save PMs before they are purged from the database by the admins. Also changes the subject of the email to contain the actual subject of the PM as I sometimes have 50 "You Have New Messages" messages. If you have email notification of Private Messages on, and you click "save a copy" when sending
a PM, a copy to save will be emailed to you.

Version 1.3 updates instructions for UBB.Threads 6.3beta
Version 1.4 updates instructions for UBB.Threads 6.3 Final release
Version 2.0 updates instructions for UBB.Threads 6.4
Version 2.1 fixes a bug where the subject of the PM wasn't appearing in the Subject of the email.


Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites: UBB.Threads 6.4

Author(s): JoshPet

Date: 11/01/03

Credits: me myself and I

Files Altered: sendmessage.php, mess_reply.php

New Files: none

Database Altered: none

Info/Instructions: Very simple modification.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Attachments
98369-PMsViaEmail2.1.txt (0 Bytes, 83 downloads)

Last edited by JoshPet; 11/12/2003 4:50 AM.
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
sweet


- Allen wavey
- What Drives You?
Joined: Aug 2002
Posts: 111
Journeyman
Journeyman
Offline
Joined: Aug 2002
Posts: 111
<< Also changes the subject of the email to contain the actual subject of the PM as I sometimes have 50 "You Have New Messages" messages. >>

I just did this mod on a 6.4 install, and sent a test message to myself. While I did receive a copy of the PM in my email, the subject line still only read, "You have new messages". Something I did wrong, or something that needs to be tweaked for 6.4?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
You're right. Yup sumfin's not right. I'll see if I can get that tracked down.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
tracked? I have the PM hack installed and this is a much needed one to compliment it for sure. Thanks

Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Fixed this - updated to 2.1 so that the Subject of the PM will make it into the subject of the email.

Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
Thanks Josh working good here

Joined: Aug 2002
Posts: 239
Member
Member
Joined: Aug 2002
Posts: 239
Any way to make this available to only certain user groups?? Say only admins......


Some people read their stars..... I choose to write my own
Joined: Jun 2000
Posts: 190
Enthusiast
Enthusiast
Joined: Jun 2000
Posts: 190
Josh,

After upgrading to 6.4.1, e-mail notifications in HTML format aren't being converted; i.e., the raw code is displayed. FYI, this is the only item where the HTML isn't converted, e.g., Subscriptions, post replies, PM Mailer - 6.4, etc., are all being sent fine in HTML format.

Thought you might want to know. But, perhaps this is unique to my Board??

Jeff


Artificial Intelligence is no match for natural stupidity!
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
This mod was never really written to take advantage of the user preference for email. It should, but haven't had a client request that and so I've never rewritten this.

So currently, this simply sends the email plain text.

Sponsored Links
Joined: Jan 2002
Posts: 266
Kel Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
This has become an issue on my recently upgraded board. If users choose the "In HTML" option for their how they want their emails, they get a link that gets them an SQL error. As we all know, not all of our users are "saavy" enough to figure out what the problem is and to cut and paste the proper part of the link into their browser. Consequently, I'm getting bombarded with posts and emails complaining that "there is a problem with the board". The fix is easy... switch to "In plain text"... but some of my users aren't that bright either... ... and even a post telling them to do that, goes ignored by at least 50%.

Any way to "fix" this without having to rely on my members?

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
I'd have to rewrite this to use the email function in threads and use thier mail preference etc...

Right now it only sends email in Plain text which is what suited my purposes when I needed it. HTML email is bad.

No plans to do that in the immediate future unless I end up with lots of free time (I wish) or one of my clients needs it converted. But I'll put it on my list to update if I get time.

Joined: Jan 2002
Posts: 266
Kel Offline
Member
Member
Offline
Joined: Jan 2002
Posts: 266
That works for me...

Thanks for the reply!


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
AllenAyres
AllenAyres
Texas
Posts: 21,079
Joined: March 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)