Auto-Refresh Forum - otomatik forum tazeleme

[url=http://www.phpbbturkey.com/mods.html:34cnv4ga]phpBB 2.0.x MOD Veritabanımızda[/url:34cnv4ga] yayınlanan ve tarafınızca eklenen tüm yeni phpBB 2.0.x sürümleri için MODların duyuruları buradan yapılmaktadır. MODlar hakkında ihtiyacınız olan desteği lütfen [b:34cnv4ga]2.0.x MOD Destek[/b:34cnv4ga] forumuna başlık açarak sorunuz.
Kilitli
Kullanıcı avatarı
cupra
Kayıtlı Kullanıcı
Mesajlar: 2505
Kayıt: 01.04.2006, 02:33
Konum: smyrna
İletişim:

Auto-Refresh Forum - otomatik forum tazeleme

Mesaj gönderen cupra »

http://www.phpbb.com/phpBB/viewtopic.php?t=263463

Kod: Tümünü seç

############################################################## 
## MOD Title:          Auto-Refresh Forum
## MOD Author:         rossmcclymont < admin@xboxelite.co.uk > (Ross McClymont) http://www.xboxelite.co.uk 
## MOD Description:    This mod will automatically refresh the index and viewforum pages (more if you wish) so that
##			     users can see if there are any new posts/information.
## MOD Version:        1.0.1
## Compatibility:      2.0.11
## 
## Installation Level: Easy
## Installation Time:  ~ 3 Minutes
## Files To Edit:      7
##      index.php
##      viewforum.php
##      admin/admin_board.php
##      includes/page_header.php
##      language/lang_english/lang_admin.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:
##
## To disable this MOD, enter anything smaller than 1 in the configuration field.
##
## If you want to make the forum refresh on any other page, just repeat the step for
## index.php and viewforum.php on any other page that includes the full header.
## For example, it could be quite handy for the Who's Online section...
## If the 'End session management' line isn't there, just put it near the top somewhere.
##
## Should work fine with EasyMOD 0.1.13, including the SQL statement.
##
##############################################################
## MOD History: 
## 
##   2005/02/15 - Version 1.0.1
##      - Fixed installation mistake ('explain' text in admin config wasn't showing up)
## 
##   2005/02/12 - Version 1.0.0
##      - Submitted into the phpBB MOD-DB and to phpBBHacks
##      - Can't go into an infinite loop anymore, it's disabled instead
##
##   2005/02/12 - Version 0.2.0
##      - Fix Javascript error in IE when MOD was disabled
##
##   2005/02/09 - Version 0.1.0
##      - First BETA release
## 
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD 
##############################################################
# 
#-----[ SQL ]------------------------------------------------ 
#
INSERT INTO `phpbb_config` VALUES ('refresh_time', '60');

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

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

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

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

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

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

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

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

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

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

#
#-----[ AFTER, ADD ]-----------------------------------------
#

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

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

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

#
#-----[ BEFORE, ADD ]------------------------------------------
#

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() );
}

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

# 
#-----[ AFTER, ADD ]------------------------------------------ 
#

	'REFRESH_TIME' => $refresh_time,

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

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

#
#-----[ AFTER, ADD ]------------------------------------------
#
$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.';

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

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

#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- 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 -->

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

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

#
#-----[ AFTER, ADD ]----------------------------------------
#
	<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/CLOSE ALL FILES ]--------------------------------
#
# EoM
musetr
Kayıtlı Kullanıcı
Mesajlar: 104
Kayıt: 16.08.2006, 16:15
İletişim:

Mesaj gönderen musetr »

bu sayfa yenileyemyi meta tag ilede yapabiliriz ama admin panelden süresini ayarlama özelliği olduğu için güzel bir mod olmuş
gny_gny
Kayıtlı Kullanıcı
Mesajlar: 18
Kayıt: 31.03.2007, 17:43
İletişim:

Mesaj gönderen gny_gny »

güzel oldu cupra sagolasın beğendim bunu
Kilitli

“2.0.x MOD Duyuruları” sayfasına dön

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Hiç bir kayıtlı kullanıcı yok ve 3 misafir