![]() |
Just quick question. Does this take the last post date as the start of the counter or the date of the threadstarter?
For example. The counter is set for 30 days. User makes a thread on my site June 1st 2004. There are a few more posts added on, last post in that thread is June 23rd 2004. So would the thread expire on June 1st when it was first started, or June 23rd when the last post? |
The last post date.
|
I've been needing a hack like this for specials that expire, classifieds, etc. I would love to be able to set the expiration at the thread level instead the whole forum -- since some specials expire in, say, 4 days and some in 30 days... possible or too much work?
|
i wouldn't have time to fix something like that up. :(
|
I understand. Maybe I can learn from your code and come up with something. Great hack! :)
|
It shouldn't be that hard to do, if i was going to do it i would give the thread starter the option to put how many days till thread is considered "expired". When he submits that thread, it will submit the amount the thread starter specifed into a new feild in the post table in the database, then you would have to add a query to check that feild when someone goes to reply.
Basicly when someone goes and clicks on reply, the query will check the database to see if the thread has expired, and goes from there. If i have the time i might be able to do this, but im going to be moving to a new home next weekend, so im trying to finish up some clients before i go with no DSL for a couple of days. |
Quote:
|
Quote:
|
Thats what this hack does, when a user trys to make a 'reply' to an old thread, it will show this error.
|
Thanks for the clarification Live Wire, that's what I was looking for.
/me clicks install |
All times are GMT. The time now is 01:46 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|