Go Back   vb.org Archive > Community Discussions > Modification Requests/Questions (Unpaid)
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-01-2006, 06:25 PM
Follie Folli's Avatar
Follie Folli Follie Folli is offline
 
Join Date: Jul 2006
Location: Italia
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default forums open only in some hour of the day

I need a mod for my Vbullettin 3.6.0 forum to create a forum open only in some hours of the day.
For example: the forum automatically opens at 11.00PM and automatically closes at 5.00AM everyday.

Does this mod exists? If it doesn't, can you create this mod?
Reply With Quote
  #2  
Old 09-09-2006, 09:56 PM
Follie Folli's Avatar
Follie Folli Follie Folli is offline
 
Join Date: Jul 2006
Location: Italia
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you help me?
Reply With Quote
  #3  
Old 09-09-2006, 11:18 PM
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
Posts: 2,528
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something like this (in global_start plugin) would work:
PHP Code:
$hour date('G');

if (
$hour 23 or $hour >= 5)
{
    
standard_error('Some message to display when the board is closed.');

This is your server time, let me know if you want it user time instead (though, they could technically keep altering the time before their time is up...)


a big nevermind if you mean an actual forum and not your site, though the same method can be applied...
Reply With Quote
  #4  
Old 09-30-2006, 03:51 PM
Follie Folli's Avatar
Follie Folli Follie Folli is offline
 
Join Date: Jul 2006
Location: Italia
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,
You didn't understand what I want.
You didn't understand what i want. I don't need the entire board to open and close, but only one forum. I need that this forum automatically opens at 11.00PM and automatically closes at 5.00 AM, while all the other forums in my board have to stay open all the day.

Reply With Quote
  #5  
Old 10-03-2006, 06:02 AM
Bodwin Bodwin is offline
 
Join Date: Apr 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is anyone able to help with this? I've been trying to find a solution for a long time!
Reply With Quote
  #6  
Old 10-06-2006, 07:52 AM
Follie Folli's Avatar
Follie Folli Follie Folli is offline
 
Join Date: Jul 2006
Location: Italia
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a coder can help me and create this modification for my community ?
Reply With Quote
  #7  
Old 10-06-2006, 10:39 AM
Masiello's Avatar
Masiello Masiello is offline
 
Join Date: Jul 2005
Location: Italy
Posts: 426
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Post it here: https://vborg.vbsupport.ru/forumdisplay.php?f=30
and surely you have your mod's
Have Fun
Reply With Quote
  #8  
Old 10-06-2006, 02:18 PM
LLcoolMP LLcoolMP is offline
 
Join Date: Oct 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I need this modification too... anyone have got some ideas?
Reply With Quote
  #9  
Old 10-06-2006, 03:22 PM
Quarterbore Quarterbore is offline
 
Join Date: Mar 2005
Location: Valley Forge PA
Posts: 538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You do realize what you ask for is complicated if you want it so that the forum (forumdisplay) as well as any threads and posts inside that forum will give this error, right?

Or, do you only need this for the forum view itself (not impact threads or posts inside the forum)?

If you only care about the forum itself...

Just open the forumdisplay.php file and hardcode:

FIND:

PHP Code:
// ############################### start enter password ############################### 
ABOVE ADD

PHP Code:
if ($foruminfo['forumid'] == '1')
{
    
standard_error('Some message to display when the forum is closed.');

Now, I think this issue has potential to be an interesting hack...

It would not be too hard to add to the forum table rows for "OPEN" and "CLOSE" and then modify the Forum Options to allow for an OPEN and CLOSE time for each forum. Then use conditionals so that if ($foruminfo['open'] AND $foruminfo['close']) exist, then we know if ($foruminfo['open'] < NOW < $foruminfo['close']) that the forum is open (ASSUMING OPEN < CLOSE) if not then we would use ($foruminfo['close'] < NOW < $foruminfo['open']) to see the forum is open.

I have all the projects I can handle and I don't need this myself but it would be interesting especually if it could work with the pluggin system so no file edits!

Now, I tried to figure out how to do this with a pluggin but I couldn't get it to work...

Perhaps if nobody else codes this I may try...
Reply With Quote
  #10  
Old 10-11-2006, 03:12 PM
LLcoolMP LLcoolMP is offline
 
Join Date: Oct 2006
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for your interest
It would be a very interesting and useful hack to develop, i hope that you will realize it soon!

Let us know how the work goes on!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:16 PM.


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.04194 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete