Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Mod Name / Version PM-Reply 1.1 beta1
Description Adds a new post extra function to make a reply to the post in a PM.
Working under UBB.threads 6.1.0
Any pre-requisites None
Author(s) Gardener
Credits None
Demo None
Files Altered ubbt.inc.php, showthreaded.php, showflat.php, sendprivate.php, sendmessage.php, templates/default/showthreaded.tmpl, templates/default/showflat.tmpl, templates/default/sendmessage.tmpl, templates/default/sendprivat.tmpl languages/generic.php
Database Altered No
New Files showpost.php
Any other info None


CHANGES
PM-Reply 1.1 beta1 includes a link to the link to the post that the PM is in reply to in the PM.

This post is updated with the newest version of this script.
Attachments
53558-PM-Reply-1_1beta1.zip (0 Bytes, 228 downloads)

Last edited by Gardener; 11/21/2002 12:27 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
Cool idea gardener


- Allen wavey
- What Drives You?
Joined: Jun 2001
Posts: 3,273
That 70's Guy
That 70's Guy
Offline
Joined: Jun 2001
Posts: 3,273
I like this idea... very nice!

Joined: Jan 2002
Posts: 218
Enthusiast
Enthusiast
Offline
Joined: Jan 2002
Posts: 218
Hey Gardener:

In your instructions you have the following:

code:
Step 3
Open up the file showflat.php and find these lines (at ~876):
$postrow[$i]['notifylinkstart'] = "<a href="{$config['phpurl']}/notifymod.php?Cat=$Cat&Board=$Board&Number=$Number&page=$page&view=$view&sb=$sb&o=$o&vc=1&fpart=$fpart&what=showflat">";
$postrow[$i]['notifylinkstop'] = "</a>";

Add these lines AFTER:
$postrow[$i]['sendpmlinkstart'] = "<a href="{$config['phpurl']}/sendprivate.php?Cat=$Cat&User=$EUsername">";
$postrow[$i]['sendpmlinkstop'] = "</A>";



Assuming you wish to have the subject of the private message response be the same as a reply to the post, you should change the instructions to read as follows:

code:
Step 3
Open up the file showflat.php and find these lines (at ~876):
$postrow[$i]['notifylinkstart'] = "<a href="{$config['phpurl']}/notifymod.php?Cat=$Cat&Board=$Board&Number=$Number&page=$page&view=$view&sb=$sb&o=$o&vc=1&fpart=$fpart&what=showflat">";
$postrow[$i]['notifylinkstop'] = "</a>";

Add these lines AFTER:
$postrow[$i]['sendpmlinkstart'] = "<a href="{$config['phpurl']}/sendprivate.php?Cat=$Cat&User=$EUsername&Subject=Re: $tsubject">";
$postrow[$i]['sendpmlinkstop'] = "</A>";



Basically I just added the &Subject=Re: $tsubject to the first part so it will pass the subject through. Otherwise, good hack! I know it will be appreciated by my members.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks for the fix, I don't use Flat mode that often so I didn't see that the subject was missing in the link there. I will add this to the instructions before I release it as a finished mod.

Sponsored Links
Joined: Mar 2000
Posts: 63
Member
Member
Offline
Joined: Mar 2000
Posts: 63
I installed this in 6.0.3 and it seemed to work, but when I tried to send the PM I got the error that

"We have no record for the Username that you are trying to send this message to."

even though the correct Username had been automatically entered into the form textbox.

Anyone any ideas please?

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Are there any strange characters in the user name? Is it not working for any username at all?

Joined: Mar 2000
Posts: 63
Member
Member
Offline
Joined: Mar 2000
Posts: 63
Hi, Gardener, yes I've got the 'Allow special characters in usernames' option enabled because as a legacy I had to allow '.' full-stops in the usernames. Is there any way round this that you know of? (e.g. my username is VLE.Tech)

thanks for your help.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
That might be the problem, although I haven't checked it yet, I will try to find the problem as soon as I get the time.

If you could try with some other usernames in the meantime that would be great. It will be much easier to track down if I know if it is the same all the time for you or if only for a few usernames.

Joined: Mar 2000
Posts: 63
Member
Member
Offline
Joined: Mar 2000
Posts: 63
Please ignore my point above re the hack not working on my boards. This was due to a silly mistake I made when editing the template.

Sorry and thanks for your help.

Sponsored Links
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Thanks, that's good to know.

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
The instructions for this hack has been updated to work with threads v6.1.0. It should probably work with 6.1.1 as well.

Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Just installed this on someone's board.

Very nice! Thanks Gardener!

Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
I've updated this script, it now adds a link back to the post which the PM is in reply to. The new version is attached to the first post of this thread.

Joined: Jul 2001
Posts: 1,157
Likes: 82
coffee and code
coffee and code
Joined: Jul 2001
Posts: 1,157
Likes: 82
with a bit of hacking, i got this to work for my 6.2/6.5 hybrid board..... but I wouldn't suggest any newB attempt it.

I really like this idea! and took it a step further, now all the fields in the PM form are automatically filled-in with the forum info

Thanks for the templates Gardner - awesome work!!


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
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
Glad you like it!


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
isaac
isaac
California
Posts: 1,157
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
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)