Baktabul.CoM, Msn messenger ifadeleri, Avatar, gif, smiley, Resimli Siirler, izle, indir, Komik Resimler, programlar, Resimleri, Haberler  

Geri Dön   Baktabul.CoM, Msn messenger ifadeleri, Avatar, gif, smiley, Resimli Siirler, izle, indir, Komik Resimler, programlar, Resimleri, Haberler > BİLGİSAYAR VE MSN DÜNYASI > Webmaster

Webmaster Hosting, domain, web dizayn, scriptler, php, html, asp, programlama dilleri, forum ve portallar, web grafik ve google adsense & adwords

   

Cevapla
 
Konu Seçenekleri Modları Göster
Eski 09-10-2007, 17:44   #1
Süper Üye
 
Mesajlar: 367
Teşekkür Etme: 31
184 Mesajina 469 Defa Tesekkur edildi
Tecrübe Puanı: 3621144
T@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un ÇılgınıT@yfuN Baktabul'un Çılgını
;;) PhpBB [MOD] Who is active in which forum / Kim Hangi Forumda ?


################################################## #################################
##
## Hack Title: Who is active in which forum - Index
## Hack Version: 1.0.3
## Author: Acid
## Support: phpBBHacks.com - phpBB Support Forums
##
## Description: You can see which user is active in which forum.. on index.
##
## Files To Edit: 3
## index.php
## language/lang_english/lang_main.php
## templates/xxx/index_body.tpl
##
################################################## #################################
##
## Note:
## First always make a back-up from the files that you're going to edit.
##
## I used the code from page_header.php.
##
## See optional part at bottom of this file.
##
################################################## #################################
##
## Revision History:
##
## v1.0.3 - Junior Admins/Supermoderators will be displayed in their own color now
## - forgot to delete some code
## v1.0.2 - fixed a typo
## v1.0.1 - just cleaned the code and added optional part
## v1.0.0 - Release
##
################################################## ########################################
#
#-----[ ACTION: OPEN ]------------------------------------------
# index.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('catrow.forumrow', array(
'ROW_COLOR' => '#' . $row_color,

#
#-----[ REPLACE WITH ]------------------------------------------
#
// start: forum active
$sql = "SELECT u.username, u.user_id, u.user_allow_viewonline, u.user_level, s.session_logged_in, s.session_ip, s.session_page
FROM ".USERS_TABLE." u, ".SESSIONS_TABLE." s
WHERE u.user_id = s.session_user_id
AND s.session_time >= ".( time() - 300 ) . " AND s.session_page = $forum_id
ORDER BY u.username ASC, s.session_ip ASC";
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not obtain activities in forums.', '', __LINE__, __FILE__, $sql);
}

$userlist_ary = array();
$userlist_visible = array();

$logged_visible_active = 0;
$logged_hidden_active = 0;
$guests_active = 0;
$active_userlist = '';

$prev_user_id = 0;
$prev_user_ip = '';

while( $row = $db->sql_fetchrow($result) )
{
if ( $row['session_logged_in'] )
{
if ( $row['user_id'] != $prev_user_id )
{
$style_color = '';
if ( $row['user_level'] == ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
}
else if ( $row['user_level'] == JUNIOR_ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#00B0FF"'; // color can be changed of course
}
else if ( $row['user_level'] == LESS_ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#00B0FF"'; // color can be changed of course
}
else if ( $row['user_level'] == MOD )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
}

if ( $row['user_allow_viewonline'] )
{
$user_active_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a>';
$logged_visible_active++;
}
else
{
$user_active_link = '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&amp;" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'><i>' . $row['username'] . '</i></a>';
$logged_hidden_active++;
}

if ( $row['user_allow_viewonline'] || $userdata['user_level'] == ADMIN )
{
$active_userlist .= ( $active_userlist != '' ) ? ', ' . $user_active_link : $user_active_link;
}
}
$prev_user_id = $row['user_id'];
}
else
{
if ( $row['session_ip'] != $prev_session_ip )
{
$guests_active++;
}
}
$prev_session_ip = $row['session_ip'];
}

$total_active_users = $logged_visible_active + $logged_hidden_active + $guests_active;

$l_t_user_s = ( $total_active_users == 0 ) ? $lang['Forum_no_active'] : ( ( $total_active_users == 1 ) ? $lang['Forum_one_active'] : $lang['Forum_more_active'] );
$l_h_user_s = ( $logged_hidden_active == 0 || $userdata['user_level'] == ADMIN ) ? '' : ( ( $logged_hidden_active == 1 ) ? $lang['Forum_one_hidden_active'] : $lang['Forum_more_hidden_active'] );
$l_g_user_s = ( $guests_active == 0 ) ? '' : ( ( $guests_active == 1 ) ? $lang['Forum_one_guest_active'] : $lang['Forum_more_guest_active'] );

$l_active_users = sprintf($l_t_user_s, $total_active_users);
$l_active_users_info = sprintf($l_h_user_s, $logged_hidden_active);
$l_active_users_info .= sprintf($l_g_user_s, $guests_active);

$active_total = $l_active_users;
$active_info = $l_active_users_info;
$active = $active_userlist;
// end: forum active

$template->assign_block_vars('catrow.forumrow', array(
'ACTIVE' => $active,
'ACTIVE_TOTAL' => $active_total,
'ACTIVE_INFO' => $active_info,
'ROW_COLOR' => '#' . $row_color,



#
#-----[ ACTION: OPEM ]------------------------------------------
# language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Moderators'] = 'Moderators';

#
#-----[ BELOW ADD ]------------------------------------------
#
// if you don´t want to display "0 users" uncomment the following
// and put the slashes before the other "0 users" line
// $lang['Forum_no_active'] = '';
$lang['Forum_no_active'] = '<b>0</b> Users active'; // <-- this one
$lang['Forum_one_active'] = '<b>%d</b> User active: ';
$lang['Forum_more_active'] = '<b>%d</b> Users active: ';
$lang['Forum_one_hidden_active'] = '<b>%d</b> Hidden';
$lang['Forum_more_hidden_active'] = '<b>%d</b> Hidden';
$lang['Forum_one_guest_active'] = '<b>%d</b> Guest';
$lang['Forum_more_guests_active'] = '<b>%d</b> Guests';



#
#-----[ ACTION: OPEN ]------------------------------------------
# templates/xxx/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>

#
#-----[ REPLACE WITH ]------------------------------------------
# if you can´t find the mentioned line (maybe you´re using a different template) just
# search for a part of it

</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span><br />
<span class="gensmall">{catrow.forumrow.ACTIVE_TOTAL} {catrow.forumrow.ACTIVE} {catrow.forumrow.ACTIVE_INFO}</span></td>

################################################## #################################
#
#-----[ OPTIONAL PART ]---------------------------------------------
#
# if you have the "junior admin" or "super mod" hack installed and want to
# change the displayed color
#
#-----[ FIND (index.php) ]------------------------------------------
#
# replace #00B0FF with your color

else if ( $row['user_level'] == JUNIOR_ADMIN || $row['user_level'] == LESS_ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#00B0FF"';
}



#-------------------------------------------------------------------
# if you want to enable this activities information only for admins
#
#-----[ FIND (index.php) ]------------------------------------------
#
$active_total = $l_active_users;
$active_info = $l_active_users_info;
$active = $active_userlist;

#
#-----[ REPLACE WITH ]----------------------------------------------
#
if( $userdata['user_level'] == ADMIN )
{
$active_total = $l_active_users;
$active_info = $l_active_users_info;
$active = $active_userlist;
}


#-------------------------------------------------------------------
# if you want to enable the current activities information only
# for the moderators of the current forums
#
#-----[ FIND (index.php) ]------------------------------------------
#
$active_total = $l_active_users;
$active_info = $l_active_users_info;
$active = $active_userlist;

#
#-----[ REPLACE WITH ]----------------------------------------------
#
$is_auth = array();
$is_auth = auth(AUTH_ALL, $forum_id, $userdata, $forum_topic_data);
if( $is_auth['auth_mod'] )
{
$active_total = $l_active_users;
$active_info = $l_active_users_info;
$active = $active_userlist;
}

################################################## #################################
################################################## #################################
T@yfuN Çevrimdışı  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!
Alıntı ile Cevapla
Cevapla

Bookmarks

Konu Seçenekleri
Modları Göster

Yetkileriniz
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodları Kapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı

Okuduğunuz Konuya Benzer Konular
Konu Konuyu Açan Forum Cevaplar Son Mesaj
Forum Paylaşmaktır-Forum Kuralları-Forum Bilgileri Komik Resimler ebrulim88 Komik Resimler 12 08-21-2008 13:24
Active WebTraffic 7.0.8, Active WebTraffic 7.0.8 İndir, Download Download Webmaster 0 05-24-2008 19:26
Forum nedir?Forum hakkında,forumun tanımı XxCANISIxX Nedir 0 12-12-2007 20:44
PhpBB [MOD]Forum Information / Forum Bilgisi T@yfuN Webmaster 1 12-12-2007 20:19
PhpBB [MOD]External Forum Redirect 2.0.0 T@yfuN Webmaster 0 09-10-2007 17:39


Forumumuzda yazılardan dolayı doğabilecek her türlü sorumluluk yazan kullanıcılara aittir,sitemizde yasalara aykırı unsurlar bulursanız İletisimden bildirebilirsiniz, şikayetiniz incelendikten sonra en kısa sürede gereken yapılacaktır.
Report Abuse, Harassment, Scamming, Hacking, Warez, Crack, Divx, Mp3 or any Illegal Activity to Contact- İletişim Gizlilik Bildirimi Forum Kurallarımız

Bütün Zaman Ayarları WEZ +3 olarak düzenlenmiştir. Şu Anki Saat: 13:46 .


Telif Hakları vBulletin v3.7.3 © 2000-2008, ve
Jelsoft Enterprises Ltd.'e Aittir.
Tercüme Eden : Msn ifadeleri
site ekle Hosting Hizmetleri

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253