Tarih: 2008-08-28, 15:49:38 Mesaj konusu: son 48 saat içinde çevrim içi olanlar..
Kod:
########################################################
## MOD Başlığı: Son 48 saat içinde çevrimiçi olanlar
## MOD Versiyonu: 2.0
## Yazar: ZoZo
## Türkçeleştirme: Boureaque
##
## Açıklama:
## Forum anasayfasındaki online kişiler bölümünün altında gözüken
## son xx saatte siteye kaç kişinin girdiğini ve/veya kaç kişinin
## girmediğini gösteren istatistik...
##
## Kurulum Seviyesi: kolay
## Kurulum Süresi: 2-3 dakika
##
## Düzeltilecek dosyalar: 4
## - /templates/subSilver/index_body.tpl
## - /language/lang_english/lang_main.php
## - /language/lang_turkish/lang_main.php
## - /includes/page_header.php
##
## Yeni eklenecek dosyalar: -yok-
##
##############################################################
## Bu eklentiyi forumunuza kurmadan önce lütfen güvenlik için tüm dosyalarınızı yedekleyin !
##############################################################
#-----[ AÇIN ]---------------------------------
#
/templates/subSilver/index_body.tpl
#
#-----[ BİR ÜST SATIRINA EKLEYİN ]--------------------------
#
$lang['Day_users'] = '%d adet üye forumlarımızı son %d saat içinde ziyaret etti:';
$lang['Not_day_users'] = '%d adet üye forumlarımızı son %d içinde ziyaret <span> etmedi</span> :';
#
#-----[ AÇIN ]--------------------------------
#
/language/lang_turkish/lang_main.php
#
#-----[ BİR ÜST SATIRINA EKLEYİN ]--------------------------
#
$lang['Day_users'] = '%d adet üye forumlarımızı son %d saat içinde ziyaret etti:';
$lang['Not_day_users'] = '%d adet üye forumlarımızı son %d içinde ziyaret <span> etmedi</span> :';
#
#-----[ AÇIN ]--------------------------------
#
/includes/page_header.php
#
#-----[ BİR ALT SATIRA EKLEYİN ]---------------------------
#
'USERS_OF_THE_DAY_LIST' => $day_userlist,
#
#-----[ BULUN ]--------------------------------
#
//
// Obtain number of new private messages
// if user is logged in
//
#
#-----[ BİR ÜST SATIRA EKLEYİN ]--------------------------
#
//
// Users of the day MOD
//
// ############ AYARLAR ############
// #
$display_not_day_userlist = 0; // eğer siteyi ziyaret etmeyen kişilerin gözükmesini istiyorsanız bu seçeneği 1 yapın
$users_list_delay = 24; // Sayılacak ziyaret eden kişilerin kaç saat içinde gözükeceği zaman
// #
// ############ AYARLAR BİTTİ ############
$sql = "SELECT user_id, username, user_allow_viewonline, user_level, user_session_time
FROM ".USERS_TABLE."
WHERE user_id > 0
ORDER BY user_level DESC, username ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/day information', '', __LINE__, __FILE__, $sql);
}
// ############ AYARLAR ############
// #
$display_not_day_userlist = 0; // eğer siteyi ziyaret etmeyen kişilerin gözükmesini istiyorsanız bu seçeneği 1 yapın
$users_list_delay = 24; // Sayılacak ziyaret eden kişilerin kaç saat içinde gözükeceği zaman
bu kodlar hangi dosyada bulamadım aşağıdaki 5 linin içinde
#
#-----[ BUNUNLA DEĞİŞTİRİN ]---------------------------
#
<td><img src="templates/subSilver/images/whosonline.gif" alt="{L_WHO_IS_ONLINE}" /></td>
bu olayı ok
holywars cevap ve ilgin için teşekkürler eline sağlık.
Yukarıda değiştirdiğim dosyaların ismini yazmıştım gözünden kaçtı demekki
temadaki index_body.tpl yide değiştirdim.
birde burada bulun ve değiştirin denen kodlar aynı, aynı kalacak mı değişecek mi?
########################################################
##
## MOD Title: Users of the day
## MOD Version: 2.1
## Author: ZoZo <zozo@etoiles.net>
##
## Description:
## Displays, under the online users list, a list of the registered users
## who have visited during the last XX hours. Can also display the list
## of the users who didn't come. (see "Edit below")
##
## Installation Level: easy
## Installation Time: 2-3 minutes
##
## Files To Edit: 3
## - /templates/subSilver/index_body.tpl
## - /language/lang_english/lang_main.php
## - /includes/page_header.php
##
## Included Files: None
##
########################################################
## VERSION HISTORY:
##
## October 22th 2004: v2.1
## 1. Now admins are displayed first, then mods then users.
## 2. Corrected a problem in the text file with Easy Mod Installer.
##
## June 20th 2003: v2.0
## 1. The list's delay is customizable, but you must give a number in hours, 24 by default.
## 2. There's now a counter for each list.
## 3. The MOD doesn't display the list of the users who didn't visit by default.
##
## October 28th 2002: v1.1
## 1. The MOD uses the database variable "user_session_time" instead of "user_lastvisit", which is updated only when the user logs out.
##
## October 15th 2002: v1.0
## 1. Created main features.
##
########################################################
## TODO LIST:
##
## 1. Don't restrict the time unit to hours.
##
########################################################
## PLEASE REPORT ANY BUGS OR SUGGESTIONS ##
########################################################
#
#-----[ ACTION: AÇIN ]--------------------------------
#
/language/lang_turkish/lang_main.php
#
#-----[ ACTION: BULUN ]--------------------------------
#
$lang['Registered_users'] = 'Registered Users:';
#
#-----[ ACTION: add before ]--------------------------
#
$lang['Day_users'] = '%d kayıtlı kullanıcımız visit forumumuzu %d içinde ziyaret etti:';
$lang['Not_day_users'] = '%d kayıtlı kullanıcımız <span style="color:red">DIDN\'T</span> forumumuzu %d içinde ziyaret etti:';
#
#-----[ ACTION: repeat for all languages ]------------
#
#
#-----[ ACTION: AÇIN ]--------------------------------
#
/includes/page_header.php
#
#-----[ ACTION: BULUN ]--------------------------------
#
'LOGGED_IN_USER_LIST' => $online_userlist,
#
#-----[ ACTION: SONRASINA EKLEYİN ]---------------------------
#
'USERS_OF_THE_DAY_LIST' => $day_userlist,
#
#-----[ ACTION: BULUN ]--------------------------------
#
//
// Obtain number of new private messages
// if user is logged in
//
#
#-----[ ACTION: add before ]--------------------------
#
//
// Users of the day MOD
//
// ############ Edit below ############
// #
$display_not_day_userlist = 0; // change to 1 here if you also want the list of the users who didn't visit to be displayed
$users_list_delay = 24; // change here to the number of hours wanted for the list
// #
// ############ Edit above ############
$sql = "s*elect user_id, username, user_allow_viewonline, user_level, user_session_time
FROM ".USERS_TABLE."
WHERE user_id > 0
ORDER BY IF(user_level=1,3,user_level) DESC, username ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/day information', '', __LINE__, __FILE__, $sql);
}
mersoy eline sağlık, benim merak ettiğim konulardan birisi
// ############ Edit below ############
// #
$display_not_day_userlist = 0; // change to 1 here if you also want the list of the users who didn't visit to be displayed
$users_list_delay = 24; // change here to the number of hours wanted for the list
// #
// ############ Edit below ############
// #
$display_not_day_userlist = 0; // change to 1 here if you also want the list of the users who didn't visit to be displayed
$users_list_delay = 24; // change here to the number of hours wanted for the list
// #
// ############ Edit above ############
ve altına ekle
Kod:
$sql = "s*elect user_id, username, user_allow_viewonline, user_level, user_session_time
FROM ".USERS_TABLE."
WHERE user_id > 0
ORDER BY IF(user_level=1,3,user_level) DESC, username ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain user/day information', '', __LINE__, __FILE__, $sql);
}
// ############ Edit below ############
// #
$display_not_day_userlist = 0; // change to 1 here if you also want the list of the users who didn't visit to be displayed
$users_list_delay = 24; // change here to the number of hours wanted for the list
// #
// ############ Edit above ############
ve altına ekle
Mersoy malesef o kodlar /includes/page_header.php içinde yok.
Bu forumda yeni başlıklar açamazsınız Bu forumdaki başlıklara cevap veremezsiniz Bu forumdaki mesajlarınızı değiştiremezsiniz Bu forumdaki mesajlarınızı silemezsiniz Bu forumdaki anketlerde oy kullanamazsınız