PDA

View Full Version : Mod to search for replies to your messages (uploaded)


CarCdr
07-27-2004, 10:00 PM
Search For Replies To Your Posts
================================

Difficulty: Easy
Files to modify: search.php
Compatibility: 3.0.0, 3.0.1, 3.0.3

This hack adds a section to search.php to support two new actions:

getnewreplies: List replies to your posts since your last visit.

getdailyreplies: List replies since a certain number of days.
Use 'days' parameter to control the number of days to search.

The code is based on the section for 'getnew' and 'getdaily'.
The maximum number of results returned is controlled by
$vboptions[maxresults], per other search.php results.

Additionally, you can specify 'showposts=1' (DEFAULT) to show the
results as posts. 'showposts=0' will display results as threads.

Examples:

/search.php?do=getnewreplies
Show new replies to your posts since your last visit.

/search.php?do=getnewreplies&showposts=0
Show threads containing a reply to a post you have made, only
for replies posted since your last visit.

/search.php?do=getdailyreplies&days=7
Show replies to your posts that have been entered during the
last 7 days.

Results are displayed by search.php the same as any other search, so a screenshot would be redundant.

Code to add to search.php contained in attachment.

Osterling
07-28-2004, 02:53 AM
i would be happy to help test it

MindTrix
07-28-2004, 07:47 AM
This should have gone in the Discussion section or lounge really. This area is for releasing hacks only. Sounds like a nice mod you got going though.

CarCdr
07-28-2004, 04:51 PM
This should have gone in the Discussion section or lounge really. This area is for releasing hacks only. Sounds like a nice mod you got going though.
Good point. Shoulda posted it elsewhere.

I'll make good by posting the hack after work today and modifying the first post of the thread appropriately.

CarCdr
07-28-2004, 08:20 PM
I have uploaded the mod. See the updated first post.

CarCdr

Osterling
08-01-2004, 01:42 PM
i added the code and it doesn't seem to work