[MOD] Auto Refresh Forum / (Adm.Cp'den Kont. edilebiliyor)

[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
YESILEJDER
Kayıtlı Kullanıcı
Mesajlar: 411
Kayıt: 17.02.2006, 22:10
İletişim:

[MOD] Auto Refresh Forum / (Adm.Cp'den Kont. edilebiliyor)

Mesaj gönderen YESILEJDER »

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

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 
DİKKAT!

Sitene Aquamp Medya Player Kurmak Istıyorsan TIKLA
sodom
Kayıtlı Kullanıcı
Mesajlar: 52
Kayıt: 26.04.2007, 16:54
İletişim:

Re: [MOD] Auto Refresh Forum / (Adm.Cp'den Kont. edilebiliyor)

Mesaj gönderen sodom »

Ellerine sağlık arkadaşım yalnız bir sorum olacak. Otomatik refresh yapmasının ne gibi bir faydası var?
Kullanıcı avatarı
Black_America
Kayıtlı Kullanıcı
Mesajlar: 164
Kayıt: 11.02.2006, 18:45
Konum: İstanbul / Tuzla

Re: [MOD] Auto Refresh Forum / (Adm.Cp'den Kont. edilebiliyor)

Mesaj gönderen Black_America »

sodom yazdı:Ellerine sağlık arkadaşım yalnız bir sorum olacak. Otomatik refresh yapmasının ne gibi bir faydası var?
Güzel bi soru sordun.Ben cevaplıyım istersen: şimdi bu genel bi refresh sistemi yani hangi sayfada olursan ol yeniler.Bu sayede "Sistemde Bağlı Kal" demene gerek kalmadan(browser kapanmadığı taktirde) hiç oturum kapanmaz.Veya bi mesaja cevap gelmesini bekliyosan o yine kendi kendine refresh yapıyo. 'YESILEJDER' yanlış anlamasın ama bence gereksiz bir mod.Ama yine de çok teşekkür ederim çünkü başkalarının işine yarıyacak...

PreMod grubu oluşturuyorum.Katılmak isteyenler ÖM atsınlar.
Kullanıcı avatarı
Dn_35
Kayıtlı Kullanıcı
Mesajlar: 3400
Kayıt: 08.04.2006, 22:02
İletişim:

Re: [MOD] Auto Refresh Forum / (Adm.Cp'den Kont. edilebiliyor)

Mesaj gönderen Dn_35 »

az üyeli forumlar için sorun yaratmaz ama büyük forumlarda serveri yorar ve gereksiz yere Bant harcar.

Bencede gereksiz bir mod,
Site Kuralları | Mod Kurulum Makalesi | MODX Formatlı Modların Kurulumu

Lütfen özel mesaj ile yardım istemeyiniz, kurallarımız gereği özel mesajlara cevap vermiyoruz.
KarGoManiA
Kayıtlı Kullanıcı
Mesajlar: 80
Kayıt: 25.10.2006, 03:37
İletişim:

Re: [MOD] Auto Refresh Forum / (Adm.Cp'den Kont. edilebiliyor)

Mesaj gönderen KarGoManiA »

Evet forumunuz büyükse sakın kurmayın arkadaşlar serverı mahvedersiniz...
Kilitli

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

Kimler çevrimiçi

Bu forumu görüntüleyen kullanıcılar: Ahrefs [Bot], Google [Bot] ve 1 misafir