Mod Name / Version Filter PM's 1.3 Description Allows your users to filter their private messages by sender/receiver (depending on the box you are looking) and or date. Particularly helpful when you have a long list of = not delete them. Working under UBB.threads 6.2 Any pre-requisites None Author(s) dimopoulos Credits ubbdev.com who taught me how to do things in php and ubb threads Demo None. Files Altered viewmessages.php, templates/default/viewmessages.tmpl, languages/.../viewmessages.php Database Altered No New Files None Any other info Please report any problems you might have and I'll try to fix them as soon as possible. Revision History 1.0 dimopoulos Initial release for 6.1.1 1.1 dimopoulos Modified instructions for 6.2 1.2 dimopoulos Made the modification language independent. Added formatting on the date, as per configuration string specified in theme.inc.php 1.3 Astaran Addition of the 'No Filter' string in the language files Initialization of the 'fltdate' and 'fltfrom' variables Clarification of PM Filter with PM Limit modification instructions Change in the template so that it becomes a bit more user friendly
Edit: Please see the attached file which contains instructions 2003-01-27: Edit: Small error correction. The variables need the "post" parameter in the get_input function.
This one looks really nice! Have you planned to make this one language indepentend and to use the date format, provided from the theme.inc.php?
I like your way of commenting the hacks, but i wasn't able to copy&paste in formatted into my editor. Could you provide the instructions in a textfile? Would make things a lot easier to apply.
I have increased the minor version of this modification.
Additions: - Language independant - Uses the timeformat setting in theme.inc.php (as per Astaran's request)
Corrections: - On the instructions (some was not clear) - Attached file in the first post, to allow preserving of the format while copying and pasting to your files. (as per 3DSHROOM's request)
There was an error with the get_input statement in the instructions. I have changed them and now it will work, since I installed it on a fresh installation of threads.
Basically the change was:
get_input(...., "get")
to
get_input(...., "post")
on both statements for the fltdate and fltfrom fields at the top of the instructions.
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.