[ADMIN PANEL KONTROLLÜ] Auto Refresh Forum

Eklentiler ile ilgili gelişmeler. Yeni modlar, güncellemeler.

[ADMIN PANEL KONTROLLÜ] Auto Refresh Forum

İleti CeNK 23.03.2006, 17:17

Admin panelde kontrollü olarak istediğiniz süre aralığında panoya otomatık REFRSH atar

[syntax="php"]##############################################################
## 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[/syntax]
Kullanıcı avatarı
CeNK
Üye
Üye
 
İleti: 584
Kayıt: 01.11.2005, 15:21
Konum: İstanbul

İleti nexterkan 23.03.2006, 17:31

CENK daha önce hiç duymadığım, çok güzel modlar paylaşıyosun, teşekkürler, eline sağlık ;)
Kullanıcı avatarı
nexterkan
Üye
Üye
 
İleti: 142
Kayıt: 26.11.2005, 05:46

İleti Pluton 23.03.2006, 17:31

biiy sorucam refresh atınca ne gibi bir fayda sağlıyo :D
No CommEnT
Pluton
Üye
Üye
 
İleti: 555
Kayıt: 09.10.2005, 18:51
Konum: Antalya

İleti nexterkan 23.03.2006, 17:33

istatistikler yenileniyor...
Kullanıcı avatarı
nexterkan
Üye
Üye
 
İleti: 142
Kayıt: 26.11.2005, 05:46

İleti Pluton 23.03.2006, 17:37

normalde ne kadar aralıklarla yenilenir ?
No CommEnT
Pluton
Üye
Üye
 
İleti: 555
Kayıt: 09.10.2005, 18:51
Konum: Antalya

İleti CeNK 23.03.2006, 17:38

Yalnız mesaj yazarken refresh attığını bir düşünsenize. :D
Kullanıcı avatarı
CeNK
Üye
Üye
 
İleti: 584
Kayıt: 01.11.2005, 15:21
Konum: İstanbul

İleti the_alorak 23.03.2006, 17:39

Orjinalinde index ve viewforum'da reflesh atıyor.İstersen düzenleyebiliryosun sanırım.
Kullanıcı avatarı
the_alorak
Üye
Üye
 
İleti: 212
Kayıt: 08.10.2005, 20:30
Konum: Zonguldak

Cvp: [ADMIN PANEL KONTROLLÜ] Auto Refresh Forum

İleti levo67 19.04.2006, 21:22

the_alorak'ın dediği gibi mesaj yazarken otomatik devredışı oluyor,sadece index ve viewforum açıksa refresh yapıyor.
levo67
Üye
Üye
 
İleti: 3
Kayıt: 26.12.2005, 00:59


Duyurular & Güncellemeler



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron