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.
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>";
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>";
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.
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.
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)
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.
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.
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.