Log in

View Full Version : How can I modify getnew routine to accept different date for each forum?


edschaum
07-17-2004, 08:35 PM
Hi,

I recently wrote a persistant mark forum read routine which stores a separate time value for when each forum was last marked as read.

What I want to do next is to get a "quickscan" routine going - i.e., read new messages in every forum using the individual time stored for each forum.

It seems like the easiest way to do this would be to modify the "getnew"
routine in search.php to accept a separate time value for each forum instead of the single time that is used repeatedly. I keep staring at the code but I'm not coming up with any easy solutions on how to accomplish this.

Anyone want to help with this? All I can offer is acknowledgement in the docs and my thanks.

Ed

edschaum
07-18-2004, 06:22 PM
The main thing I need to get this working is to be able to pull a list of all the forumid's that the current user has access to.

Is there a single built-in function that will return an array of all forumid's that a user is allowed to view?

Merjawy
07-18-2004, 09:56 PM
I am not sure I understood you but lets try this

search.php?do=getdaily&days=X

X=how many days back to search for posts

getdaily&days=7 will result in a week worth of posts

if thats not what you're looking for, I am sure it will give you an idea to how to go about what you need

edschaum
07-19-2004, 11:13 AM
Hi,

Thanks for the reply. What I'm looking for is some help modifying the code inside search.php.

Ed

MissKalunji
11-27-2011, 12:01 AM
I am not sure I understood you but lets try this

search.php?do=getdaily&days=X

X=how many days back to search for posts

getdaily&days=7 will result in a week worth of posts

if thats not what you're looking for, I am sure it will give you an idea to how to go about what you need
thank you! i've been wondering how to write it.