otomatik refresh

phpBB 2.0.x sürümleri için yapılmasını istediğiniz veya arayıpta bulamadığınız MODları buraya yazabilirsiniz.
Kilitli
maresalx
Kayıtlı Kullanıcı
Mesajlar: 12
Kayıt: 12.02.2007, 02:14
İletişim:

otomatik refresh

Mesaj gönderen maresalx »

selamlar, acaba ana sayfayi her 2 dakikada otomatik refreshliycek (yenilemek) bi mod var mi ?
Kullanıcı avatarı
Ares
Kayıtlı Kullanıcı
Mesajlar: 390
Kayıt: 22.06.2006, 23:05
Konum: Mars
İletişim:

Mesaj gönderen Ares »

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 

işini görebilir.
maresalx
Kayıtlı Kullanıcı
Mesajlar: 12
Kayıt: 12.02.2007, 02:14
İletişim:

Mesaj gönderen maresalx »

cok tesekkur ederim en kisa zamanda deniycem mod kurma konusunda bilgim yok, buradan sonucu bildiririm
Kilitli

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

Kimler çevrimiçi

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