 | Re: [Solved] Birthday mod |  |
Posted: 06/27/2007 4:39 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
The only thing I can think of that might be causing the problem is having the Advanced_Board_Disable mod installed on top of the default Board Disable function  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/28/2007 1:23 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:51 PM
Location: St Pete, FL
|

|
|
|
|
 |
That sounds like a logical theory...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/28/2007 1:50 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Ye, will give it a try  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/28/2007 3:02 PM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Ok, site is back up
do you think the advanced mod could be interfering with it
| Code:
|
#################################################################
## MOD Title: Advanced Disable Board
## MOD Author: Spinebuster < >
## MOD Description: This mod will allow you to use a custom Disable Message that you can configure from your admin panel.
## It also lets you as an admin to still be able to navigate your forum while your board is disabled, this is great
## for debugging or updating your forum. Your custom message will be displayed to you on your index page to remind
## you that your board is disabled.
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 7 Minutes
## Files To Edit: includes/page_header.php
## common.php
## login.php
## admin/admin_board.php
## language/lang_english/lang_admin.php
## templates/*/admin/board_config_body.tpl
## templates/*/index_body.tpl
## Included Files: n/a
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb-customs.com
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb-customs.com
##############################################################
## Author Notes: Please run the SQL command that I have provided in this file prior to installing this mod.
##
##############################################################
## MOD History:
##
## 2006-3-11 - Version 1.0.1
## - Bugfix update, if you logged out you couldnt log back in.
## 2006-2-3 - Version 1.0.0
## - Initial Release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ SQL ]---------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('board_disable_message','Sorry, but we are currently doing maintenance to the site, please check back later.');
#
#-----[ OPEN ]---------------------------------------------
#
common.php
#
#-----[ FIND AND DELETE ]---------------------------------------------
#
//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
#
#-----[ OPEN ]---------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]---------------------------------------------
#
"L_BOARD_EMAIL_FORM" => $lang['Board_email_form'],
"L_BOARD_EMAIL_FORM_EXPLAIN" => $lang['Board_email_form_explain'],
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
// Advanced Disable Board
'L_DISABLE_BOARD_MESSAGE' => $lang['Disable_board_message'],
'L_DISBABLE_BOARD_MESSAGE_EXPLAIN' => $lang['Disable_board_message_explain'],
'DISABLE_BOARD_MESSAGE' => $new['board_disable_message'],
#
#-----[ OPEN ]---------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]---------------------------------------------
#
'L_USERNAME' => $lang['Username'],
'L_PASSWORD' => $lang['Password'],
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
// Advanced Board Disable
'BOARD_DISABLE_MESSAGE' => $board_config['board_disable_message'],
#
#-----[ FIND ]---------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
// Advanced Board Disable
$board_disable_message = $board_config['board_disable_message'];
if ( $board_config['board_disable'] && $userdata['user_level'] == ADMIN )
{
$template->assign_block_vars('admin_board_disable_message', array());
}
else if ( $board_config['board_disable'] && $userdata['user_level'] != ADMIN && $userdata['session_logged_in'] )
{
message_die(GENERAL_MESSAGE, $board_disable_message, 'Information');
}
else if ( $board_config['board_disable'] && !$userdata['session_logged_in'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, $board_disable_message, 'Information');
}
#
#-----[ OPEN ]---------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]---------------------------------------------
#
//
// That's all Folks!
#
#-----[ BEFORE, ADD ]---------------------------------------------
#
// Advanced Disable Board
$lang['Disable_board_message'] = 'Disable Board Message';
$lang['Disable_board_message_explain'] = 'This is the custom message for when you disable your forum.';
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]---------------------------------------------
#
<tr>
<td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
</tr>
#
#-----[ AFTER, ADD ]---------------------------------------------
#
<tr>
<td class="row1">{L_DISABLE_BOARD_MESSAGE}<br /><span class="gensmall">{L_DISABLE_BOARD_MESSAGE_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" size="40" maxlength="255" name="board_disable_message" value="{DISABLE_BOARD_MESSAGE}" /></td>
</tr>
#
#-----[ OPEN ]---------------------------------------------
#
templates/subSilver/index_body.tpl
#
#-----[ ADD To Top of File - Line 1 ]---------------------------------------------
#
<!-- BEGIN admin_board_disable_message -->
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<td class="row1" align="center" valign="middle" width="100%"><span class="gen"><b>{BOARD_DISABLE_MESSAGE}</b></span></td>
</tr>
</table>
<!-- END admin_board_disable_message -->
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
|
I remeber when I first installed this mod though and when I checked it no errors appeared. not sure why the error is showing all of a sudden
I'm not really up to uninstalling this mod to test it. Going by the first command i'd proberly mess up the board  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/29/2007 1:43 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:51 PM
Location: St Pete, FL
|

|
|
|
|
 |
Yes, that was definitely the cause of this problem. The following was not a valid command, so EM would have listed it in the Unrecognized Commands section when you were installing the MOD, which would mean that the following was never removed from the common.php file:
| Code:
|
#
#-----[ FIND AND DELETE ]---------------------------------------------
#
//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
|
I removed that section from the common.php file, then disabled the board. To Admins, the board continues to work normally, but to everyone else, they get the message that the board is down for maintenance and to check back later...
There were no wierd error messages when I disabled the board...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 06/29/2007 4:30 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
I'm sure I did that manually. Maybe when I restored a mod it replaced the original common.php file. only thing i can think of
Thanks for finding the problem though Nightrider.
I was wondering why I couldn't view the board even when it was disabled. I thought the author just got the description wrong or something.
But it does worked as mentioned (like vBulletin) afterall!
Cheers Nightrider  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 07/07/2007 2:07 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:51 PM
Location: St Pete, FL
|

|
|
|
|
 |
That's good news. That's exactly what I needed to read first after being away for over a week...
 |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 07/07/2007 2:53 AM |
|
|
|
|
|
| Citation |
| Posts |
1332 |
| Word Cnt. |
86,126 |
| BDay |
Feb 11 |
| Sign |
Aquarius |
| Sex |
 |
|
|
|
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
|

|
|
|
|
 |
Sorted!  |
|
|
 |
 |
| Back to Top |
|
|
 | Re: [Solved] Birthday mod |  |
Posted: 07/07/2007 4:35 AM |
|
|
|
|
|
| Site Admin |
| Posts |
30757 |
| Word Cnt. |
2,628,690 |
| BDay |
Jul 28 |
| Sign |
Leo |
| Sex |
 |
|
|
|
Joined: Sep 25, 2004
Local time: 1:51 PM
Location: St Pete, FL
|

|
|
|
|
 |
|
|
 |
 |
| Back to Top |
|
|
 | Information |  |
|