Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2003
Posts: 7
Dom
Offline
Lurker
Lurker
Joined: Nov 2003
Posts: 7
Mod Name / Version: Threaded Private Messages

Description: Threads PMS similar to UBB Classic. New messages and replies to existing messages become threaded, with only the original post showing in the received and sent lists.

Working Under: UBB.Threads 6.4

Mod Status: Beta

Any pre-requisites:

Author(s): Dom

Date: 04/15/04

Credits:

Files Altered: viewmessages.php, viewmessage.php, viewmessage.tmpl, mess_handler.tmpl, mess_reply.php, mess_reply.tmpl, ubbt.inc.php, sendmessage.php

New Files: None

Database Altered: Yes

Info/Instructions: Description: Threads PMS similar to UBB Classic. New messages and replies to existing messages become threaded, with only the original post showing in the received and sent lists.

Note that this is a big change to the code and whilst I've tested these install instructions and the resultant code I can not guarantee that this will work perfectly. My thinking was to let it loose upon the comunity so it could be looked at by everyone.

This threading works using several new flags in the database. Maybe I could have used fewer flags, but I wanted to use the exisiting system as much as possible so that the old and new systems worked alongside each other. If you can think of a more effecient way then I'd be interested to know.

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
111970-ThreadedPMs.txt (0 Bytes, 63 downloads)

Sponsored Links
Joined: Aug 2000
Posts: 1,609
Addict
Addict
Offline
Joined: Aug 2000
Posts: 1,609
Sweetness!

Joined: Oct 2003
Posts: 2,305
Old Hand
Old Hand
Joined: Oct 2003
Posts: 2,305
Thanx

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Much requested! thanks!

Joined: Jun 2004
Posts: 1
Lurker
Lurker
Offline
Joined: Jun 2004
Posts: 1
Would anyone be interested in a mod so you can have several pages?
Right now the script doesn't have a limit and will go on forever so the thread can become very long, I have altered it a little so it will do 10 pm's per page and will show a new page for the rest.

Sponsored Links
Joined: Feb 2002
Posts: 2,286
Veteran
Veteran
Joined: Feb 2002
Posts: 2,286
Please feel free to post it


Fans Focus - Focusing on Fans of Sport

(Okay - mainly football (the British variety wink at the moment - but expanding all the time....)
Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
this is a very complicated modification to debug - the problem comes when you have an active website with over 3,000 PMs being sent each day... the commands that grab how many PM are new in your inbox will just kill your server.

Another issue I'm having with this mod is that people complain that right after they reply to a message, the original message no longer exists (although it actually went to the OUTBOX).

Now if the sender goes into his outbox and reads what he sends, that message will no longer be checked as NEW for the recipient.

And the last issue I have with this system is that if a PM was written to a member and the conversation lasted 29 days, and you have your PM to purge every 30 days.... it will purge the first PM in that conversation, removing all the remaining linked PM in that conversation - and giving the impression that the conversation that took over 30 days to completed, never really existed. (yes, on my bored the age limit of PM is maxed at 30 days... our PM file is about 90mb)

other than these things - I have been working hard to constantly improve this mod - but its very difficult due to it's complex SQL queries...


Current developer of UBB.threads PHP Forum Software
Current Release: UBBT 7.7.5 // Preview: UBBT 8.0.0
isaac @ id242.com // my forum @ CelicaHobby.com

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
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
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 20240430)