vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   question | scheduled open\close forum (https://vborg.vbsupport.ru/showthread.php?t=195746)

politin 11-08-2008 12:50 PM

question | scheduled open\close forum
 
hello everyone,
im looking for mod that will let me open\close one forum in a schedule pre-set time.
for example, i have 10 forums, and i want only on of them will be open everyday since 22:00 until 08:00.
is there something like that?

thanks.

Lynne 11-08-2008 02:03 PM

I have never seen a modification posted that does that. It's just two pages - one with a query to close the forums and another with the query to open the forums. Then set one to run at 22:00 and the other to run at 08:00.

politin 11-08-2008 03:05 PM

can you explain how do i do it please?

Lynne 11-08-2008 03:16 PM

When I write Scheduled Task, I start by copying one of the ones that exist and removing all the stuff in between. See this post for a good starting point - https://vborg.vbsupport.ru/showpost....30&postcount=5 Then you just need to fill in the query you will be performing. (I do not know the query off the top of my head. Take a look at the script in the forum manager that does it.)

mikewastaken 11-08-2008 07:50 PM

You could use a cron job to change the database table table 'forumpermissions'.

cron job to open it
cron job to close it

The lazy man's way would be to alter 'forum' and add a password, and than remove it


All times are GMT. The time now is 05:59 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.00922 seconds
  • Memory Usage 1,713KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete