Previous Thread
Next Thread
Print Thread
Rate Thread
#276168 07/07/2004 9:37 PM
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: PM Mailer 6.5

Description: This allows users to select private messages from their list of private
messages and click "Email PM" instead of "Delete" to receive a copy of the PM via email.
It's an excellent tool to allow users to "archive" off their Private Messages before they
are purged from your database.

Working Under: UBB.Threads 6.5

Mod Status: Beta

Any pre-requisites:

Author(s): JoshPet

Date: 07/07/04

Credits: JustDave

Files Altered: delete.php, viewmessages.tmpl, languages/*/generic.php

New Files: none

Database Altered: none

Info/Instructions:

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
116532-PMMailer-6.5.txt (0 Bytes, 243 downloads)

Sponsored Links
Joined: Jan 2003
Posts: 263
Member
Member
Joined: Jan 2003
Posts: 263
Great addition!

It would be perfect if we could have some confirmation page after clicking the Email button. Now it looks like nothing happens...

Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
I second that motion!

Joined: Jan 2003
Posts: 125
Journeyman
Journeyman
Joined: Jan 2003
Posts: 125
Hmm, i'm getting the following error:

Fatal error: Call to a member function on a non-object in /home/.gumnut/climb/cascadeclimbers.com/threadz/sendmessage.php on line 249

when i only send to someone who wants a copy via email. i changed back the code and didn't get an error in this area. any ideas?

Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
In threads 6.5.x we get more security. What kind of input type these are:

$deletecheck = get_input("deletecheck","post");
$pmemail = get_input("pmemail","post");

int? alpha?

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
good question... I'll hunt these up as well


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
this is a problem in many modifications that are ported to 6.5.x. While review my system I found many many many uncheckt. I will go on and will post in every modification thread with missing input check a question so we can prevent possible hacking while running these mods.

Joined: May 1999
Posts: 41
Power User
Power User
Offline
Joined: May 1999
Posts: 41
I am interested in finding out what type of input these are, so I am waiting for the results of the hunt

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Doing a little investigating, but this seems like an easy question - int stands for integer, in this case it is looking for a 1 or 0 for the deletecheck so that would be 'int'. The pmemail should be escaped in the code, eh? If not, since it's getting the entire pm, then 'alphanum' is probably the validator code to use, you think? (since the pm could/should only contain letters or numbers)


- Allen wavey
- What Drives You?
Joined: Jul 2001
Posts: 808
Coder
Coder
Joined: Jul 2001
Posts: 808
I try it but after apply 'int' and 'alphanum' they dont send out emails anymore. Better I wait out a little bit I dont understand not enough how this works.

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
The pmemail probably doesn't need alphanum, especially since it probably contains html characters.


- Allen wavey
- What Drives You?

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
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
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)