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)

Logikos 10-09-2004 06:06 PM

Np, glad you find this useful.

Kenneth Pilo 10-15-2004 10:24 AM

Quote:

Originally Posted by ChurchMedia
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?

***snip***

Quote:

Originally Posted by Live Wire
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.

As ChurchMedia mentioned it would be great to apply to classifieds (threads where people can?t reply). Looking forward to the next step :)

Skyline_GT 10-22-2004 01:01 AM

is it possible to set it only a certain forums only.?

Logikos 10-22-2004 04:03 PM

@Kenneth Pilo - I'm going to release something like that very soon.

@Skyline_GT - Yes this hack works as per forum basis, means you can set that threads to expire on certain forums only.

pjgoncalves 10-24-2004 03:37 PM

This is great!

How can i activate only on forums/categories of my choice?

Logikos 10-24-2004 03:59 PM

Quote:

Originally Posted by pjgoncalves
This is great!

How can i activate only on forums/categories of my choice?

You will see an option when you edit or create a new forum.

Logikos 10-31-2004 06:08 PM

New update, no longer have to do seconds, now you can do it by days. Exitising User Please read the update.txt file for a simple update. All others download install.txt file.

NetRover 11-05-2004 12:05 AM

Hi there, nice one!

I downloaded the install hack as I have not used before and therefore avoided the update one.

I'm a total newbie and don't know what any of the code does but managed to solve a typo.

Code:

print_input_row($vbphrase['how_many_Days_till_expire'],forum[daysexpired]', $forum['daysexpired']);
after _expire'], I had to put a space and ' to get it to work. :)

redd 12-29-2004 04:35 AM

Does this hide the quick reply if a thread is expired? If not, is this possible? I'd hate for someone to write out a long post and submit it, only to get the error message.

thanks :)

Freezerator 12-29-2004 06:59 AM

Quote:

Originally Posted by redd
Does this hide the quick reply if a thread is expired? If not, is this possible? I'd hate for someone to write out a long post and submit it, only to get the error message.

thanks :)

Indeed, that would be even nicer. I am installing this one.


All times are GMT. The time now is 06:11 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.01761 seconds
  • Memory Usage 1,746KB
  • 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
  • (1)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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