Go to Post Although it is tempting, try not to toot your own horn in this thread. While you may have an awesome bot, the real compliment should come from other teams. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > IT / Communications > Website Design/Showcase
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-05-2004, 22:33
team384_pat team384_pat is offline
Registered User
no team
 
Join Date: Oct 2002
Rookie Year: 2005
Location: United States
Posts: 29
team384_pat is on a distinguished road
A question to all you Forum Gurus

Do you guys know how to make phpBB or vBulletin turn inactive or closed during specific times of the day.. I'm sure there is a hack to do it.. or if someone could write one.. that would be awesome.. Our school system does not allow us to view forums during specific times of the day during the school year. We would like to use a forum system to post messages rather than mass-email everyone..

So i'm wonding if it can be done or not..

Thanks
  #2   Spotlight this post!  
Unread 04-05-2004, 23:39
Elgin Clock's Avatar
Elgin Clock Elgin Clock is offline
updates this status less than FB!
AKA: the one who "will break into your thoughts..."
FRC #0237 (Black Magic)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2001
Location: H20-Town, Connecticut
Posts: 7,773
Elgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond reputeElgin Clock has a reputation beyond repute
Send a message via AIM to Elgin Clock
Re: A question to all you Forum Gurus

Not that I am familiar with.. But wouldn't the easiest way to follow the school policies be to just not look at it during those times??

For example, our team forum is just for messages.
I'm not sure as to what you mean "mass e-mail" people through team forums.

The basic use of a forum system is to act as a bulletin board, or post messages and reply to these messages.

I know that "mass e-mailing" is possible through certain forum systems, like this one for example, but if you just want post messages and also adhere to school policies, just do not visit the forums. Simple.
__________________
The influence of many leads to the individuality of one. - E.C.C. (That's me!!)

  #3   Spotlight this post!  
Unread 05-05-2004, 08:26
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: A question to all you Forum Gurus

If you use phpBB or vBulletin, they have the ability to be shut off. You can write a script that runs whenever you need to turn the site on & off. I use one for the backups. You'll notice, if you are on chiefdelphi at 5:47am EST, the forums are off. That is all automagic.
__________________
Brandon Martus
e-mail
  #4   Spotlight this post!  
Unread 05-05-2004, 15:23
Jack's Avatar
Jack Jack is offline
FIRST Scouting Network
AKA: Andrew Schenk
FRC #0201 (The FEDS)
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2002
Location: Rochester Hills
Posts: 643
Jack is a jewel in the roughJack is a jewel in the roughJack is a jewel in the rough
Send a message via AIM to Jack
Re: A question to all you Forum Gurus

in phpBB you'd need to run the MySQL query to disable your forums:
Code:
UPDATE `phpbb_config` SET `config_value` = '1' WHERE `config_name` = 'board_disable'
you'd need to then run another query to turn the forms back on:
Code:
UPDATE `phpbb_config` SET `config_value` = '0' WHERE `config_name` = 'board_disable'
A little script i just threw together that i *think* would work...
Make a file called formonoff.php Place this file in your main forums directory (That's the one with the files like index.php, posting.php, etc..)
Even though the script does use some simple security to prevent people from using their web browser to use the script, you might want to edit your .htaccess file, or set the permissions in such a way that your web server can't execute it. Place the following code in the file:

PHP Code:
<?php
define
('IN_PHPBB'true);
$phpbb_root_path './';
include(
$phpbb_root_path 'extension.inc');
include(
$phpbb_root_path 'common.'.$phpEx);
$userdata session_pagestart($user_ipPAGE_INDEX);
init_userprefs($userdata);

$action $argv['1'];
$key $argv['2'];

if (
$key != 'e7YMe8')
{
    die(
'Not allowed to run script!');
}

if(
$action == 'off')
{
    
$sql "UPDATE `phpbb_config` SET `config_value` = '1' WHERE `config_name` = 'board_disable'";
} else if (
$action == 'on')
{
    
$sql "UPDATE `phpbb_config` SET `config_value` = '0' WHERE `config_name` = 'board_disable'";
} else {
    die(
'No action given!');
}
if (!(
$db->sql_query($sql)))
{
    die(
'SQL Error!');
}
?>
You'll then need to make a cron tab to run the following command to turn off your forums:
Code:
php -f /PATH_TO_FORUMS_HOME/formonoff.php off e7YMe8
... and then this one to turn them back on:
Code:
php -f /PATH_TO_FORUMS_HOME/formonoff.php on e7YMe8
fyi.. you can change the key if you'd like.. just be sure to change it both in the cron tab thingie and in the script

hope this helps ya

(ps: I'm not really sure why you'd want them to turn off/on at times of the day.. but.. heh. whatever works for ya )

Jack
__________________
Team 201 - 2003 Great Lakes Semifinalists & 2003 Archimedes Division Finalists :|: Webmaster of www.feds201.com -> FBI Scouting
Winner of The 2003 ChiefDelphi Web Award for: User That Started The Most Non Chit Chat Threads
Winner of: 2003 FIRST Ventures with 5451.68 End Points

All about me: http://knehcsa.vze.com
**Check out the New FIRST Scouting Network**
  #5   Spotlight this post!  
Unread 05-05-2004, 18:44
Ryan M. Ryan M. is offline
Programming User
FRC #1317 (Digital Fusion)
Team Role: Programmer
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Ohio
Posts: 1,508
Ryan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud ofRyan M. has much to be proud of
Re: A question to all you Forum Gurus

Quote:
Originally Posted by Brandon Martus
If you use phpBB or vBulletin, they have the ability to be shut off. You can write a script that runs whenever you need to turn the site on & off. I use one for the backups. You'll notice, if you are on chiefdelphi at 5:47am EST, the forums are off. That is all automagic.
Yeah... I'm on then a lot... For a couple of seconds, then I leave and come back in a bit. (Sorry, slightly off topic.)

But yeah, if the forums are disabled by the school, doesn't that mean you aren't supposed to access them?
__________________

  #6   Spotlight this post!  
Unread 05-05-2004, 20:49
team384_pat team384_pat is offline
Registered User
no team
 
Join Date: Oct 2002
Rookie Year: 2005
Location: United States
Posts: 29
team384_pat is on a distinguished road
Re: A question to all you Forum Gurus

Well yes.. but they are ways around it.. but i'm not sure if we will actually use a forum system.. it was just brought up and I was thinking of a way to do it without getting in trouble.. but thanks guys.. that's some good scripts..

Thanks
  #7   Spotlight this post!  
Unread 05-05-2004, 21:06
Billfred's Avatar
Billfred Billfred is offline
...and you can't! teach! that!
FRC #5402 (Iron Kings); no team (AndyMark)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: The Land of the Kokomese, IN
Posts: 8,533
Billfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond reputeBillfred has a reputation beyond repute
Re: A question to all you Forum Gurus

Quote:
Originally Posted by Brandon Martus
If you use phpBB or vBulletin, they have the ability to be shut off. You can write a script that runs whenever you need to turn the site on & off. I use one for the backups. You'll notice, if you are on chiefdelphi at 5:47am EST, the forums are off. That is all automagic.
...does the fact that it's done at 5:47 have any significance, or am I just becoming one of my english teachers where everything is a symbol, regardless of the insignificance the author meant?
__________________
William "Billfred" Leverette - Gamecock/Jessica Boucher victim/Marketing & Sales Specialist at AndyMark

2004-2006: FRC 1293 (D5 Robotics) - Student, Mentor, Coach
2007-2009: FRC 1618 (Capital Robotics) - Mentor, Coach
2009-2013: FRC 2815 (Los Pollos Locos) - Mentor, Coach - Palmetto '09, Peachtree '11, Palmetto '11, Palmetto '12
2010: FRC 1398 (Keenan Robo-Raiders) - Mentor - Palmetto '10
2014-2016: FRC 4901 (Garnet Squadron) - Co-Founder and Head Bot Coach - Orlando '14, SCRIW '16
2017-: FRC 5402 (Iron Kings) - Mentor

94 events (more than will fit in a ChiefDelphi signature), 14 seasons, over 61,000 miles, and still on a mission from Bob.

Rule #1: Do not die. Rule #2: Be respectful. Rule #3: Be safe. Rule #4: Follow the handbook.
  #8   Spotlight this post!  
Unread 05-05-2004, 21:19
Brandon Martus's Avatar Unsung FIRST Hero
Brandon Martus Brandon Martus is offline
busy.
AKA: B. Slash Kamen
no team
 
Join Date: May 2001
Rookie Year: 1998
Location: Nevada, TX USA
Posts: 5,271
Brandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond reputeBrandon Martus has a reputation beyond repute
Send a message via ICQ to Brandon Martus Send a message via AIM to Brandon Martus Send a message via Yahoo to Brandon Martus
Re: A question to all you Forum Gurus

I don't know... does 47 have any special significance? Hmmmmm.
__________________
Brandon Martus
e-mail
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
moderators for Q&A forum Ken Leung CD Forum Support 25 03-01-2003 18:15
my idea of a question forum... Ken Leung General Forum 12 30-11-2002 12:17


All times are GMT -5. The time now is 23:52.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi