Previous Thread
Next Thread
Print Thread
Rate Thread
#233235 01/14/2003 8:12 AM
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
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.

Warm regards

Nikos
Attachments
64973-PM Filter 1.3.txt (0 Bytes, 100 downloads)

Last edited by dimopoulos; 01/27/2003 7:43 AM.

Nikos
Sponsored Links
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Thanks!

Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
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.

Thx!
Astaran

Joined: Apr 2002
Posts: 102
Journeyman
Journeyman
Offline
Joined: Apr 2002
Posts: 102
Thanks! Works great. I wasn't able to cut/paste and have it stay formatted either but it still works.

The only confusing part was where to put the code that was supposed to be in the template. I guess it is kind of up to the admin though..

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Sure thing

I have been meaning to make this language independant (on my looooong TODO list)

I will also work on the date format. That shouldn't be a problem.

I will also attach a text file for all possibly tomorrow.

Warm regards

Nikos


Nikos
Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Just a note,

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)

Warm regards

Nikos


Nikos
Joined: Mar 2002
Posts: 305
Enthusiast
Enthusiast
Offline
Joined: Mar 2002
Posts: 305
Thanks, works great! There are times when this could have really saved some time.


[:"red"]Lisa[/]
Joined: Dec 2000
Posts: 1,471
Addict
Addict
Offline
Joined: Dec 2000
Posts: 1,471
Thx Nikos!

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Edit note: Changed the minor version and corrected some things based on Astaran's instructions and suggestions
  • 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


Thanks Astaran.

Warm regards

Nikos


Nikos
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Are all the parts of Step 2 only if you have the PM limit.

I installed this.... but selecting a username and hitting refresh just brings up the same list as before.

What did I miss?

Sponsored Links
Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
Josh,

Steps 1,3 and 4 are required. Yes step 2 is optional only if you have the PM Limit installed - I guess I should have put it last (Doh!)

It seems that the filter is not constructed in the $strWhere variable to be passed onto the $query statement (step 1.2-1.3).

If you have problems with it, please email me the viewmessages.php file and I will compare it with mine and email it back at you.

Warm regards

Nikos


Nikos
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
OK - will try fresh first and see if it works.

I wasn't sure if I had to add 2.1 (the sub steps) etc....

If I can't get it, I'll send 'em to you. Thanks.

Joined: Aug 2002
Posts: 1,191
Kahuna
Kahuna
Joined: Aug 2002
Posts: 1,191
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.

Warm regards

Nikos


Nikos
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
We have this installed here at Threadsdev now. It helps wade through a long list of received private messages.
Thanks.

Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
I like this one, thank you


- Allen wavey
- What Drives You?
Joined: Jan 2002
Posts: 674
Junior Member
Junior Member
Offline
Joined: Jan 2002
Posts: 674
This is one of my favorite hacks.. Thanks


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
Nettomo
Nettomo
Germany, Bremen
Posts: 417
Joined: November 2001
Forum Statistics
Forums63
Topics37,575
Posts293,930
Members13,823
Most Online6,139
Sep 21st, 2024
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)