[BETA] Advanced Disable Forum

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

[BETA] Advanced Disable Forum

Post by drumstix42 »

MOD Title: Advanced Disable Forum
MOD Description: Allows more control and customization when you disable your forum.

MOD Version: BETA
EasyMOD Compatability: Unknown

MOD Download: Click here [4kb] (January 31st, 2007)

Features:
  • Allows more control and customization when you disable your forum.
  • Everything is controlled through the ACP.
  • Adds ability to define:
    • Custom Disable Message
      • If the Custom Disable Message is left blank, the default phpBB Disable Message will be used.
    • Estimated Downtime
    • Extra Notes
    • Admin/Moderator viewability of forum when disabled
  • The viewablity option allows 3 choices when the forum is disabled:
    • Admin: only Admins can view the board
    • Mod: both Admins and Moderators can view the board
    • None: no one can view the board
  • When the board is disabled, and a user has viewability, red text will be displayed in the over all header.
Screenshots:

Code: Select all

##############################################################
## MOD Title: Advanced Disable Forum
## MOD Author: Drumstix42 < Drumstix42@aol.com > (n/a) http://www.advancedmod.com/
## MOD Description: Allows more control and customization when you disable your forum.
##                  Adds ability to define:
##                  -Custom Disable Message
##                  -Estimated Downtime
##                  -Extra Notes
##                  -Admin/Moderator viewability of forum when disabled
##                  Everything is controlled through the ACP.
##
## MOD Version: 0.0.4
##
## Installation Level: (Easy)
## Installation Time: 15 Minutes
## Files To Edit: common.php
##                login.php
##                admin/admin_board.php
##                includes/constants.php
##                includes/page_header.php
##                language/lang_english/lang_admin.php
##                language/lang_english/lang_main.php
##                templates/subSilver/overall_header.tpl
##                templates/subSilver/admin/board_config_body.tpl
##
## Included Files: (n/a)
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##   -Tested on phpBB versions 2.0.13 through 2.0.22
##   -I have no knowledge of databases other than MySQL.
##   -This mod has NOT been tested with EasyMOD. However, it may work.
##
##############################################################
## MOD History:
##
##   2007-January-31 - Beta Version 0.0.4
##      - Now fully uses the $lang system of phpBB!
##      - Fixed up lots of code. Everything is much cleaner
##      - Added assign_block_vars to page_header.php and overall_header.tpl (idea by JRSweets)
##      - Lots of typ-o's fixed. Description and Author Notes changed a bit.
##
##   2005-April-07 - Beta Version 0.0.3
##      - Added extra check to login.php (thanks to Wulf_9 for the catch)
##
##   2005-March-21 - Beta Version 0.0.2
##      - Corrected a spelling error for filename
##
##   2005-March-20 - Beta Version 0.0.1
##      - Initial Development and Beta
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
Enjoy ;)
Last edited by drumstix42 on Thu Feb 01, 2007 12:55 am, edited 10 times in total.
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
User avatar
*=Matt=*
Registered User
Posts: 389
Joined: Mon Dec 20, 2004 11:56 pm
Location: Oakdale, Wisconsin

Post by *=Matt=* »

Love this mod i am installing it as we speak lol
User avatar
*=Matt=*
Registered User
Posts: 389
Joined: Mon Dec 20, 2004 11:56 pm
Location: Oakdale, Wisconsin

Post by *=Matt=* »

ok i found something you should change

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/contstants.php
it should be

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php
You put one too many t's kik just get remove that t and my forums have the mod goof job on making it :)
User avatar
onigumo
Registered User
Posts: 1755
Joined: Fri Oct 31, 2003 2:32 am
Contact:

Post by onigumo »

I seriously am considering installing this modification. I think it would be useful, and it's nifty. Keep up the good work!
I write articles on community building
@ The Infinity Program.
hojko
Registered User
Posts: 69
Joined: Wed Aug 11, 2004 2:20 am
Location: Slovakia

Post by hojko »

common.php:
Add Estimated Downtime and Notes to language file!!!
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

*=Matt=* wrote: ok i found something you should change

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/contstants.php
it should be

Code: Select all

#
#-----[ OPEN ]------------------------------------------
#
includes/constants.php

You put one too many t's kik just get remove that t and my forums have the mod goof job on making it :)


Thanx!
hojko wrote: common.php:
Add Estimated Downtime and Notes to language file!!!


I was trying that method for about 20 minutes until I realized the $lang sytsem isn't called upon yet while the code reads through the common.php. There was no other route then to put the text right in the file (that I knew of). A solution to this would be grand.


And thanks for the feedback. Been out of PHP modding for a little too long now.
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

Updated to Beta version 0.0.2

Notes: Corrected spelling error. That's all :)
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
User avatar
alsakrah
Registered User
Posts: 166
Joined: Wed Dec 04, 2002 7:54 pm
Contact:

Post by alsakrah »

It is realy very nice mod

keep up good work :wink:
User avatar
Kalipo
Registered User
Posts: 551
Joined: Mon Dec 08, 2003 1:47 pm

Post by Kalipo »

Good deal!!

One suggestion though, instead of displaying the guesstimated downtime, why not change that to guesstimated time back online? Back online at approx 1PM PST is a lot more informative than Offline for half an hour.
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

Kalipo wrote: One suggestion though, instead of displaying the guesstimated downtime, why not change that to guesstimated time back online? Back online at approx 1PM PST is a lot more informative than Offline for half an hour.


Morely a cosmetic change... and only have to change the text. You can easily modify the code in the common.php. The way I have it now is a little more simple and I think possibly more easy to understand for some ;)

*Edit* also you could leave it how it is and it could still work:

"Estimated Downtime: ~until 3:30pm"

something like that :)
Last edited by drumstix42 on Mon Mar 21, 2005 7:22 pm, edited 1 time in total.
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

Updated description a bit above

Specifically about the Custom Disable message part.
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
ekimN
Registered User
Posts: 13
Joined: Sun Mar 21, 2004 5:25 am

Post by ekimN »

One small suggestion would be to add an optional drop-down menu for the estimated downtime field with selections in increments of say, 30 minutes, or other selections like "Indefinitely" or "Unknown".

So basically you still have the field available to type in whatever you like, but you also have the option to use a drop-down menu with selections like, "Indefinitely, Unknown, 30 mins, 1 hour, 1 hour and 30 minutes, 2 hours, tommorow, next week, never, ;) ...etc..."

Otherwise excellent mod.. I've been waiting for an advanced version for a long time now. Great job drumstix42. :)
User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

Thanx.

I'll take into consideration what you said, but just seems like a little too much. I dunno, I'll see ;)
Need a phpBB update or mod installed? PM me for any questions and pricing!
HostMonster.com (Unlimited Space, Unlimited Transfer, Unlimited Domains, $6.95/month )
User avatar
mikel_man
Registered User
Posts: 184
Joined: Wed Oct 20, 2004 12:56 am
Location: Missouri
Name: Barry Smith
Contact:

Post by mikel_man »

I added your mod but my board keeps say it is disabled! http://specialhost4you.ath.cx
DKing
Registered User
Posts: 751
Joined: Sat Jul 03, 2004 8:38 pm

Post by DKing »

Go to your ACP, and make sure that it isn't disabled in there! If it is, go to phpMyAdmin (if you have access), and go to board_config. From there, find something about a board disabled and change it to 0.

Alternately, you can (if you have mysql), try the following in a php document and upload it onto your server and run it:
NOTE: Change "phpbb_" to your table prefix if you changed it at installation!

Code: Select all

<?
$sql = "UPDATE `phpbb_config` SET `config_value` = '1' WHERE `config_name` = 'board_disable'";
$result = mysql_query($sql);
if(!$result)
{
die("Could not query databse! Find DKing for help!<BR />Copy the below mysql error and show it to him!<BR />" . mysql_error());
}
else
{
echo "Query success! Please delete this file immediately!";
}
Last edited by DKing on Wed Apr 06, 2005 8:09 am, edited 1 time in total.
-DKing
Latest phpBB Version: 2.0.21
Search For a MOD: MOD Search
Post Reply

Return to “[2.0.x] MODs in Development”