Log in Register FAQ Memberlist Search Welcome to RCF - WHF Forum Index
alt : test.swf
Welcome to RCF - WHF
4fx3.gif 
calendar_open_closeCalendar 
[Solved] Birthday mod
Post new topic   Reply to topic View previous topic :: View next topic
Goto page: Previous  1, 2, 3
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support Add To Bookmarks
Re: [Solved] Birthday mod
PostPosted: 06/27/2007 4:39 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
greatbrE.gif
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  Brick wall
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Birthday mod
PostPosted: 06/28/2007 1:23 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:51 PM
Location: St Pete, FL
peace.gif
That sounds like a logical theory...

dontknow
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Birthday mod
PostPosted: 06/28/2007 1:50 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
greatbrE.gif
Ye, will give it a try 1
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Birthday mod
PostPosted: 06/28/2007 3:02 PM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
greatbrE.gif
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}&nbsp;&nbsp;<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  crybaby
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Birthday mod
PostPosted: 06/29/2007 1:43 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:51 PM
Location: St Pete, FL
peace.gif
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...

headbang
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Birthday mod
PostPosted: 06/29/2007 4:30 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
greatbrE.gif
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  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Birthday mod
PostPosted: 07/07/2007 2:07 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:51 PM
Location: St Pete, FL
peace.gif
That's good news.  That's exactly what I needed to read first after being away for over a week...

Applause
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
Re: [Solved] Birthday mod
PostPosted: 07/07/2007 2:53 AM Reply with quote
Citation
Chris Powell
Citation
Posts 1332
Word Cnt. 86,126
BDay Feb 11
Sign Aquarius
Sex Sex:Male
Joined: Mar 31, 2007
Local time: 6:51 PM
Location: Birmingham, UK.
greatbrE.gif
Sorted!  Applause
Back to Top
View user's profile Find all posts by Chris Powell Send private message   Visit poster's website
Re: [Solved] Birthday mod
PostPosted: 07/07/2007 4:35 AM Reply with quote
Site Admin
Nightrider
Site Admin
Posts 30757
Word Cnt. 2,628,690
BDay Jul 28
Sign Leo
Sex Sex:Male
Joined: Sep 25, 2004
Local time: 1:51 PM
Location: St Pete, FL
peace.gif
banana  blob8  banana  blob8  banana  blob8  banana
Back to Top
View all pictures posted by this userView user's profile Find all posts by Nightrider Send private message   AIM Address Yahoo Messenger Phoogle Map ICQ Number
 Post new topic  Reply to topic
Information
Welcome to RCF - WHF Forum Index -> Area 51 - phpBB & Easymod Tech Support

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
All times are GMT - 5 Hours
Goto page: Previous  1, 2, 3
Page 3 of 3


Add To Bookmarks

 
  
  


  Google

Powered by phpBB © 2001, 2005 phpBB Group

Page generation time: 0.0803s (PHP: 74% - SQL: 26%) - SQL queries: 54 - GZIP disabled - Debug on