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.
================================
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.