Webmaster  Forumu

Geri git   Webmaster Forumu > Web Sistemleri > Forum Sistemleri > PhpBB

Cevapla
 
Seçenekler Stil
Alt 07-11-2008, 12:43 PM   #1
HaKaN
Webmaster
 
HaKaN - ait Kullanıcı Resmi (Avatar)
 
Üyelik tarihi: Jul 2008
Bulunduğu yer: Sessizlik
Mesajlar: 1,113
Tecrübe Puanı: 11
HaKaN is on a distinguished road
Standart Online Fake Users ( Sınırsız Sayıda )


Forumlarda İstediğiniz Kadar 50 100 5000 kaç tane üye online üye göstermek istiyorsanız o kadar gösterin

PHP- Kodu:
##############################################################
##
## MOD Title: Fake Online Users
##
## MOD Author: aUsTiN => austin_inc@hotmail.com
##
## MOD Description: This mod will allow you to keep users online so it always appears your board is active.
##
## MOD Version: 1.0.0
##
## MOD ÇEVİRİ : www.yenibirforum.com by andyou andyou[at]yenibirforum[dot]com
##
## KURULUM : çok kolay
##
## KAÇ DAKKA SÜRER Kİ : 3 DAKKA FALAN
##
## DÜZENLENECEK DOSYA : 4
##
## YÜKLENECEK DOSYA : 0
##
##############################################################
##############################################################
##
## Author Notes:
##
## Copyright © aUsTiN-Inc, 2003/5
##
##############################################################
##
## MOD History:
##
## Jul 19th 2005 - Version 1.0.0
## - Released
##
##############################################################
##
## This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##
##############################################################
##
## Definitions:
##
## Root: Folder your config.php is located
## templates/*/: Your template folder (All template folders are suggested)
## lang_*/: Your current language folder (All lang folders are suggested)
##
##############################################################

-----------------------------------
----[ 
SQL Sorgulatın ]------------------------
-----------------------------------

INSERT INTO phpbb_config (config_nameconfig_valueVALUES ('fake_online_users''');

-----------------------------------
----[ 
AÇIN ]-----------------------
-----------------------------------

templates/subsilver/admin/admin_board.php

-----------------------------------
----[ 
BULUN ]-----------------------
-----------------------------------

"L_YES" => $lang['Yes'],

-----------------------------------
----[ 
ÖNCESİNE EKLEYİN ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == Fake Online Users ====================================== |
#==== v1.0.0 =========================================================== |
#====
'L_FAKE_USERS' => $lang['fake_users_admin'],
'L_FAKE_USERS_EXP' => $lang['fake_users_admin_exp'],
'FAKE_USERS' => $board_config['fake_online_users'],

#==== End: ==== Fake Online Users ====================================== |
#======================================================================= |

-----------------------------------
----[ 
KAYDET KAPAT ]---------------
-----------------------------------

-----------------------------------
----[ 
AÇIN ]-----------------------
-----------------------------------

includes/page_header.php

-----------------------------------
----[ 
BULUN ]-----------------------
-----------------------------------

if ( empty(
$online_userlist) )
{
$online_userlist $lang['None'];

-----------------------------------
----[ 
ÖNCESİNE EKLEYİN ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == Fake Online Users ====================================== |
#==== v1.0.0 =========================================================== |
#====
if ($board_config['fake_online_users'])
{
$fake_online_userlist explode(','$board_config['fake_online_users']);
$fake_online_users = array();

for (
$x 0$x count($fake_online_userlist); $x++)
$fake_online_users[] = $fake_online_userlist[$x];

$sql_split explode('FROM'$sql);
$fake_sql $sql_split[0];
$fake_select explode(','str_replace('SELECT'''str_replace(" "''$fake_sql)));
$fake_field_count $fake_online_count 0;

for (
$x 0$x count($fake_select); $x++)
{
if (
strstr($fake_select[$x], 'u.'))
$fake_field_count++;
}

for (
$x 0$x count($fake_select); $x++)
{
if (
strstr($fake_select[$x], 'u.'))
$fake_fields .= ($x < ($fake_field_count 1)) ? str_replace('u.'''$fake_select[$x]) .', ' str_replace('u.'''$fake_select[$x]);
}

for (
$x 0$x count($fake_online_users); $x++)
$fake_sql_or .= (!$fake_sql_or) ? ' user_id = '$fake_online_users[$x] : ' OR user_id = '$fake_online_users[$x];

$q 'SELECT '$fake_fields
.' FROM 'USERS_TABLE .'
WHERE '
$fake_sql_or;
$r $db->sql_query($q);
$rows $db->sql_fetchrowset($r);

if (empty(
$online_userlist))
{
for (
$x 0$x count($rows); $x++)
{
if (!
strstr($online_userlist$rows[$x]['username']))
{
$style_color $user_link '';
if (
$rows[$x]['user_level'] == ADMIN)
{
$rows[$x]['username'] = '<b>'$rows[$x]['username'] .'</b>';
$style_color 'style="color:#'$theme['fontcolor3'] .'"';
}
elseif (
$rows[$x]['user_level'] == MOD)
{
$rows[$x]['username'] = '<b>'$rows[$x]['username'] .'</b>';
$style_color 'style="color:#'$theme['fontcolor2'] .'"';
}
$user_link '<a href="'append_sid("profile.$phpEx?mode=viewprofile&amp;"POST_USERS_URL .'='$rows[$x]['user_id']) .'"'$style_color .'>'$rows[$x]['username'] .'</a>';
$online_userlist .= ( ($x == count($rows)) || ($x == 0) ) ? $user_link ', '$user_link;
$fake_online_count++;
}
}
}
else
{
for (
$x 0$x count($rows); $x++)
{
if (!
strstr($online_userlist$rows[$x]['username']))
{
$style_color $user_link '';
if (
$rows[$x]['user_level'] == ADMIN)
{
$rows[$x]['username'] = '<b>'$rows[$x]['username'] .'</b>';
$style_color 'style="color:#'$theme['fontcolor3'] .'"';
}
elseif (
$rows[$x]['user_level'] == MOD)
{
$rows[$x]['username'] = '<b>'$rows[$x]['username'] .'</b>';
$style_color 'style="color:#'$theme['fontcolor2'] .'"';
}
$user_link '<a href="'append_sid("profile.$phpEx?mode=viewprofile&amp;"POST_USERS_URL .'='$rows[$x]['user_id']) .'"'$style_color .'>'$rows[$x]['username'] .'</a>';
$online_userlist .= ($x == count($rows)) ? $user_link ', '$user_link;
$fake_online_count++;
}
}
}
$logged_visible_online += $fake_online_count;
}
#====
#==== End: ==== Fake Online Users ====================================== |
#======================================================================= |

-----------------------------------
----[ 
KAYDET KAPAT ]---------------
-----------------------------------

-----------------------------------
----[ 
AÇIN ]-----------------------
-----------------------------------

language/lang_turkish/lang_admin.php

-----------------------------------
----[ 
BULUN ]-----------------------
-----------------------------------

?>

-----------------------------------
----[ ÖNCESİNE EKLEYİN ]----------------
-----------------------------------

#======================================================================= |
#==== Start: == Fake Online Users ====================================== |
#==== v1.0.0 =========================================================== |
#====
$lang['fake_users_admin'] = 'Fake Online üye listesi';
$lang['fake_users_admin_exp'] = 'Online Göstermek istediğiniz üyelerin id lerini aralarda , koyarak yazın Örn: 225,3, gibi.';
#====
#==== End: ==== Fake Online Users ====================================== |
#======================================================================= |

-----------------------------------
----[ KAYDET KAPAT ]---------------
-----------------------------------

-----------------------------------
----[ AÇIN ]-----------------------
-----------------------------------

templates/subsilver/admin/board_config_body.tpl

-----------------------------------
----[ BULUN ]-----------------------
-----------------------------------

<tr>
<td class="row1">{L_ENABLE_PRUNE}</td>
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES} <input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
</tr>

-----------------------------------
----[ SONRASINA EKLEYİN ]-----------------
-----------------------------------

<!-- Start: Fake Online Users -->
<tr>
<td class="row1">{L_FAKE_USERS}<br /><span class="gensmall">{L_FAKE_USERS_EXP}</span></td>
<td class="row2"><input type="text" class="post" value="{FAKE_USERS}" name="fake_online_users"></td>
</tr>
<!-- End: Fake Online Users -->

-----------------------------------
----[ KAYDEDİN KAPATIN ]---------------
----------------------------------- 
HaKaN isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Cevapla


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler
Stil

Yetkileriniz
Konu Acma Yetkiniz Yok
Cevap Yazma Yetkiniz Yok
Eklenti Yükleme Yetkiniz Yok
Mesajınızı Değiştirme Yetkiniz Yok

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-Kodu Kapalı

Hizli Erisim


WEZ Format +3. Şuan Saat: 12:26 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
webmaster