[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.
Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 »

For sure :)

My thinking was along the lines of

whoever is modding the forum should at least know what they're doing and therefore this user should always be able to view the forum in full without using the ACP, e.g. to appraise the effect of a MOD using a 'test' account, without risking their users being confused or losing posts, etc so it seemed natural to have a 'sitemaster' option

Plus of course the little codelet in common.php which prevents any downgrading of sitemaster's status (I tested this on myself, setting my user level back to 'user' resulted in an immediate update so that by the time the index page was loaded I could still see the ACP link) ;)

I'll have a deeper look at your code and see about using the $lang system - but what's there works for my site and I didn't really mean to imply that this was a 'catch-all' solution - every board is different according to the nature and ability of its users, I just thought you'd be interested in my take on it 8)

Once a tweaker, always a tweaker I guess :D
`
"It's not the things you do right that matter, it's the things you don't do wrong"

User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

Aye, I know this. I'll probably just leave it how it is. People who like to tweak it personally will still do so. Plus, nothing wrong with alternations in a /contrib/ folder.

Thanks for your feedback though :)

The basis of moving it out of the common.php was because all the functions are not called yet, so page_header.php was the best place I could put it where it would still be used on all the normal pages of the forum.

After a few final looks and maybe another day or two, I'll submit to the DB.
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 )

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 »

Ok :)

If you want to include my tweaks as a 'contrib' I'd be honoured - if you want to I'll write it up properly and post it here or send it to you, whichever you prefer ;)
`
"It's not the things you do right that matter, it's the things you don't do wrong"

User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

Wulf_9 wrote: Ok :)

If you want to include my tweaks as a 'contrib' I'd be honoured - if you want to I'll write it up properly and post it here or send it to you, whichever you prefer ;)


I probably will, but I'll be converting it to the page_header.php so it can still be used in other languages easily.
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 )

Wulf_9
Registered User
Posts: 130
Joined: Sun Mar 20, 2005 8:13 pm
Location: Norwich, UK

Post by Wulf_9 »

No prob, I have to admit I've not really looked at your latest version so do whatever you want to do with my 'update' and write-up/package as you see fit, at least then there won't be more than one cook in the kitchen :D
`
"It's not the things you do right that matter, it's the things you don't do wrong"

AngeDevil
Registered User
Posts: 35
Joined: Tue Jun 27, 2006 3:06 pm
Contact:

Post by AngeDevil »

I love it, great work!

alez
Registered User
Posts: 237
Joined: Tue Feb 22, 2005 11:21 pm

Post by alez »

useful! waiting for a RC! 8)

alez
Registered User
Posts: 237
Joined: Tue Feb 22, 2005 11:21 pm

Post by alez »

Are you still making modifications to this mod? thanxs!?

User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

Was mostly just giving it time for people to test out. There are currently no known bugs by me, and everything looks good to go. I'll be submitting it for approval to the MODDB within the week.
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 )

alez
Registered User
Posts: 237
Joined: Tue Feb 22, 2005 11:21 pm

Post by alez »

ok thanxs!

one more, since i have a different style (DAJ_glass) on my board, can u tell me:

:arrow: on mod:
#
#-----[ OPEN ]------------------------------------------
#
# Make sure to edit for any other templates you have.
#
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>

#
#-----[ REPLACE WITH ]------------------------------------------
#
<!-- Start: Advanced Disable Forum Mod -->
<!-- Moved further down in file
<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>
-->
<!-- End: Advanced Disable Forum Mod -->


Is the same to do this on my files?:
/board_config_body.tpl

#
#-----[ I HAVE FOUND ]------------------------------------------
#
<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>

#
#-----[ REPLACE WITH --> ? ]------------------------------------------
#
<!-- Start: Advanced Disable Forum Mod -->
<!-- Moved further down in file
<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>
-->
<!-- End: Advanced Disable Forum Mod -->


----------------

:arrow: on mod:
#
#-----[ OPEN ]------------------------------------------
#
# Make sure to edit for any other templates you have.
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------
#
<tr>
<td height="25" align="center" valign="top" nowrap="nowrap"><span class="mainmenu">&nbsp;<a href="{U_PROFILE}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_profile.gif" width="12" height="13" border="0" alt="{L_PROFILE}" hspace="3" />{L_PROFILE}</a>&nbsp; &nbsp;<a href="{U_PRIVATEMSGS}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_message.gif" width="12" height="13" border="0" alt="{PRIVATE_MESSAGE_INFO}" hspace="3" />{PRIVATE_MESSAGE_INFO}</a>&nbsp; &nbsp;<a href="{U_LOGIN_LOGOUT}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_login.gif" width="12" height="13" border="0" alt="{L_LOGIN_LOGOUT}" hspace="3" />{L_LOGIN_LOGOUT}</a>&nbsp;</span></td>
</tr>

#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN disable_forum_access -->
<tr>
<td align="center" valign="top" nowrap="nowrap"><span class="mainmenu">{L_DISABLE_BOARD_ACCESS}</span></td>
</tr>
<!-- END disable_forum_access -->


CANT FIND THIS ON MY OVERALL HEADER FILE (OR SOMETHING LIKE THAT)

my overall_header file:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="{S_CONTENT_DIRECTION}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={S_CONTENT_ENCODING}">
<meta http-equiv="Content-Style-Type" content="text/css">
{META}
{NAV_LINKS}
<title>{SITENAME} :: {PAGE_TITLE}</title>
<link rel="stylesheet" href="templates/DAJ_Glass/{T_HEAD_STYLESHEET}" type="text/css" />
<!-- BEGIN switch_enable_pm_popup -->
<script language="Javascript" type="text/javascript">
<!--
if ( {PRIVATE_MESSAGE_NEW_FLAG} )
{
window.open('{U_PRIVATEMSGS_POPUP}', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');;
}
//-->
</script>
<!-- END switch_enable_pm_popup -->
</head>
<body>

<a name="top"></a>

<br class="gensmall">

<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td height="14" width="25" nowrap="nowrap" class="ul"></td>
<td width="100%" class="uc"></td>
<td width="25" nowrap="nowrap" class="ur"></td>
</tr>
<tr>
<td class="headl"></td>

<td class="row3"><a href="{U_INDEX}"><img src="templates/DAJ_Glass/images/eq.gif" border="0" alt="{L_INDEX}" /></a> <a href="{U_INDEX}"><img src="templates/DAJ_Glass/images/logo_phpBB.gif" border="0" alt="{L_INDEX}" /></a>

</td>
<td class="headr"></td>
</tr>
<tr valign="bottom">
<td rowspan="3" class="tul"></td>
<td height="30" class="tuc">
<table width="100%" cellspacing="0" cellpadding="2">
<tr valign="bottom">
<td><a href="{U_INDEX}" class="mainmenu1">{SITENAME}</a></td>
<td align="right" nowrap="nowrap">
<table cellspacing="0" cellpadding="0" border="0">
<tr valign="bottom">
<td><a href="http://www.katupecu.com.ar"><img src="templates/DAJ_Glass/images/icon_newest_reply.gif" border="0" alt="http://www.katupecu.com.ar" /></a></td>
<td><span class="mainmenu1"> <a href="http://www.katupecu.com.ar" class="mainmenu1">Katupecu.com.ar</a> </span></td>
<td><a href="{U_FAQ}"><img src="templates/DAJ_Glass/images/icon_mini_faq.gif" border="0" alt="{L_FAQ}" /></a></td>
<td><span class="mainmenu1"> <a href="{U_FAQ}" class="mainmenu1">{L_FAQ}</a> </span></td>
<td><a href="{U_MEMBERLIST}"><img src="templates/DAJ_Glass/images/icon_mini_members.gif" border="0" alt="{L_MEMBERLIST}" /></a></td>
<td><span class="mainmenu1"> <a href="{U_MEMBERLIST}" class="mainmenu1">{L_MEMBERLIST}</a> </span></td>
<td><a href="{U_GROUP_CP}"><img src="templates/DAJ_Glass/images/icon_mini_groups.gif" border="0" alt="{L_USERGROUPS}" /></a></td>
<td><span class="mainmenu1"> <a href="{U_GROUP_CP}" class="mainmenu1">{L_USERGROUPS}</a></span></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td rowspan="3" class="tur"></td>
</tr>
<tr>
<td height="10" class="row5"><img src="templates/DAJ_Glass/images/spacer.gif" border="0" height="1" width="1"></td>
</tr>
<tr valign="top">
<td height="30" nowrap="nowrap" class="tlc">
<table width="100%" cellspacing="0" cellpadding="2" border="0">
<tr valign="top">
<td><span class="mainmenu1">
<!-- BEGIN switch_user_logged_out -->
<a href="{U_REGISTER}" class="mainmenu1">{L_REGISTER}</a> ::
<!-- END switch_user_logged_out -->
<a href="{U_LOGIN_LOGOUT}" class="mainmenu1">{L_LOGIN_LOGOUT}</a>
</span></td>
<td nowrap="nowrap" align="right"><span class="mainmenu1">
<!-- BEGIN switch_user_logged_in -->
<a href="{U_PROFILE}" class="mainmenu1">{L_PROFILE}</a> ::
<!-- END switch_user_logged_in -->
<a href="{U_PRIVATEMSGS}" class="mainmenu1">{PRIVATE_MESSAGE_INFO}</a>
</span></td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="left"></td>
<td class="row2"><br />


Thanxs! :oops:

User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

For the first part, you are correct.


For the 2nd part, place the code AFTER:

Code: Select all

<!-- END switch_user_logged_in -->
<a href="{U_PRIVATEMSGS}" class="mainmenu1">{PRIVATE_MESSAGE_INFO}</a>
</span></td>
</tr>
(near the bottom of the file)
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
wick3d
Registered User
Posts: 44
Joined: Wed Dec 21, 2005 11:01 am

Post by wick3d »

Can you make it CAtegory Hieracy Compaitable also ?

User avatar
drumstix42
Registered User
Posts: 1100
Joined: Tue Sep 24, 2002 11:01 pm
Location: NJ
Contact:

Post by drumstix42 »

wick3d wrote: Can you make it CAtegory Hieracy Compaitable also ?


It should already be compatible. Did you run into any problems? I run the older CH mod, but as far as I know it should work with 2.1.x as well.
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 )

alez
Registered User
Posts: 237
Joined: Tue Feb 22, 2005 11:21 pm

Post by alez »

Thanxs, im testing it;! good work!

Billy2423
Registered User
Posts: 88
Joined: Sun Sep 28, 2003 2:23 pm
Location: USA
Name: Bill Withers
Contact:

Post by Billy2423 »

I use the older CH mod also and this b4 works fine for me. np's.

Post Reply

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