vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Administrative and Maintenance Tools - Expired Threads (https://vborg.vbsupport.ru/showthread.php?t=70302)

Yahhoon23 10-08-2004 11:12 AM

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?

Logikos 10-08-2004 03:54 PM

The last post date.

ChurchMedia 10-09-2004 06:08 AM

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?

Logikos 10-09-2004 07:48 AM

i wouldn't have time to fix something like that up. :(

ChurchMedia 10-09-2004 07:59 AM

I understand. Maybe I can learn from your code and come up with something. Great hack! :)

Logikos 10-09-2004 08:23 AM

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.

WAR 10-09-2004 04:34 PM

Quote:

Originally Posted by Charlie O'Leary
I did, but I wasn't sure if it displayed that when the thread was opened or if it did that when it was replied to. Was hoping the latter, but wasn't sure. :)

Does the warning display when the user tries to open the thread, or when they try to reply to the thread?

Omega Prime 10-09-2004 04:47 PM

Quote:

Originally Posted by WAR
Does the warning display when the user tries to open the thread, or when they try to reply to the thread?

That's what I'm wondering as well. It'd be awesome if this shows up when someone tries to make a reply to an old thread ;)

Logikos 10-09-2004 05:57 PM

Thats what this hack does, when a user trys to make a 'reply' to an old thread, it will show this error.

WAR 10-09-2004 06:03 PM

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
  • Page Generation 0.01100 seconds
  • Memory Usage 1,730KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete