, . . ;)


#
#-----[ SQL ]------------------------------------------------
#
INSERT INTO `phpbb_config` VALUES ('refresh_time', '60');

#
#-----[ ]------------------------------------------------
#
index.php

#
#-----[ ]------------------------------------------------
#
// End session management
//

#
#-----[ , ]-----------------------------------------
#
$refresh_time_enable = TRUE;

#
#-----[ ]------------------------------------------------
#
viewforum.php

#
#-----[ ]------------------------------------------------
#
// End session management
//

#
#-----[ , ]-----------------------------------------
#
$refresh_time_enable = TRUE;

#
#-----[ ]------------------------------------------------
#
admin/admin_board.php

#
#-----[ ]------------------------------------------------
#
"L_ENABLE_PRUNE" => $lang['Enable_prune'],

#
#-----[ , ]-----------------------------------------
#
"L_REFRESH_TIME" => $lang['Refresh_time'],
"L_REFRESH_TIME_EXPLAIN" => $lang['Refresh_time_explain'],

#
#-----[ ]------------------------------------------------
#
"PRUNE_NO" => $prune_no,

#
#-----[ , ]-----------------------------------------
#

"REFRESH_TIME" => $new['refresh_time'],

#
#-----[ ]------------------------------------------------
#
includes/page_header.php

#
#-----[ ]------------------------------------------------
#
//
// Get basic (usernames + totals) online

#
#-----[ , ]-----------------------------------------
#

if ($refresh_time_enable)
{
$refresh_time = $board_config['refresh_time'];
} else {
$refresh_time = -1;
}

if ( $refresh_time > 1 )
{
$template->assign_block_vars('switch_auto_refresh_on',array() );
}

#
#-----[ ]------------------------------------------------
#
'PRIVMSG_IMG' => $icon_pm,

#
#-----[ , ]-----------------------------------------
#

'REFRESH_TIME' => $refresh_time,

#
#-----[ ]------------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ ]------------------------------------------------
#
$lang['Enable_prune'] = 'Enable Forum Pruning';

#
#-----[ , ]-----------------------------------------
#
$lang['Refresh_time'] = 'Auto-Refresh Time (seconds)';
$lang['Refresh_time_explain'] = 'This will cause the page to automatically refresh so users can see new posts/information. If anything smaller than 1 is entered, the MOD will be disabled.';

#
#-----[ ]------------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ ]------------------------------------------------
#
</head>

#
#-----[ , ]-----------------------------------------
#
<!-- BEGIN switch_auto_refresh_on -->
<noscript>
<meta http-equiv="refresh" content="{REFRESH_TIME}">
</noscript>

<script language="JavaScript">
<!--
setTimeout('location.href = location.href',1000*{REFRESH_TIME});
//-->
</script>
<!-- END switch_auto_refresh_on -->

#
#-----[ ]-----------------------------------------
#
templates/subSilver/admin/board_config_body.tpl

#
#-----[ ]------------------------------------------------
#
<tr>
<td class="row1">{L_ENABLE_PRUNE}</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES}  <input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
</tr>

#
#-----[ , ]-----------------------------------------
#
<tr>
<td class="row1">{L_REFRESH_TIME}<br /><span class="gensmall">{L_REFRESH_TIME_EXPLAIN}</span></td>
<td class="row2"><input class="post" type="text" name="refresh_time" size="4" maxlength="4" value="{REFRESH_TIME}" /></td>
</tr>

#
#-----[ SAVE ]--------------------------------
#


Demo ;)

!

/ /