Sürüm: 0.8.1.2 phpBB3
Yazar: Eric Martindale (remaeus) - Will Anderson (javayahtzee)
Phil (frug) - Sebastian Tschan (madblueimp)
Açıklama: Sitenize sohbet eklemeye yarayan mod
Uyumlu olduğu phpBB3 sürümleri:
- phpBB3
Özellikleri:
- Çeşitli Kanallar
- Özel Mesaj ve Kanal
- Davet Sistemi
- Kullanıcı Kickleme veya Banlama
- Çevrimiçi Listesi
- İfade Kullanımı (smiles)
- BBCode Kullanımı (Kapanıp - Açılabilir)
- Flood Kontrol
- Çeşitli Arayüz Seçimi
- İRC Usulü Komut Kullanımı
- İsteğe Bağlı Olarak Sadece Kayıtlı Kullanıcı Girişi Yapılabilir
- Belli Bir Süre Mesaj Yazmayan Kullanıcıları Sohbetten Bağlantısını Koparır
Dil dosyaları/eklemeleri:
- Türkçe
- İngilizce
- ve 20 çeşit dil desteği
Kurulum süresi: 5 Dakika
Dosya formatı: .zip
Dosya indirme: Ajax Chat Download
Kurulum :
AÇ : includes/functions.php
BUL :
Kod: Tümünü seç
?>
Kod: Tümünü seç
function getChatInterface() {
static $ajaxChat;
if(!$ajaxChat) {
// URL to the chat directory:
if(!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL', './chat/');
}
// Path to the chat directory:
if(!defined('AJAX_CHAT_PATH')) {
define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
}
// Validate the path to the chat:
if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {
// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');
// Initialize the chat interface:
$ajaxChat = new CustomAJAXChatInterface();
}
}
return $ajaxChat;
}
function getChatOnlineUsers() {
return ($chatInterface = getChatInterface()) ? $chatInterface->getOnlineUsers() : array();
}
function getChatOnlineUserIDs() {
return ($chatInterface = getChatInterface()) ? $chatInterface->getOnlineUserIDs() : array();
}
Kod: Tümünü seç
$online_userlist .= ($online_userlist != '') ? ', ' . $user_online_link : $user_online_link;
Kod: Tümünü seç
if(in_array($row['user_id'], getChatOnlineUserIDs()))
{
$user_online_link = '<span title="* = '.strip_tags($row['username']).' is logged into the Chat">'.$user_online_link.'*</span>';
}
Kod: Tümünü seç
// The following assigns all _common_ variables that may be used at any point in a template.
$template->assign_vars(array(
SONRASINA EKLE :
Kod: Tümünü seç
'CHAT_LINK' => 'chat/',
'CHAT_LABEL' => 'Chat ['.count(getChatOnlineUserIDs()).']',
'CHAT_TITLE' => 'Online: '.htmlentities(implode(', ', getChatOnlineUsers()), ENT_QUOTES, 'UTF-8'),
AÇ : styles/[STYLE_NAME]/template/overall_header.html
BUL :
Kod: Tümünü seç
<li class="icon-faq"><a href="{U_FAQ}" title="{L_FAQ_EXPLAIN}">{L_FAQ}</a></li>
Kod: Tümünü seç
<li class="icon-chat"><a href="{CHAT_LINK}" title="{CHAT_TITLE}">{CHAT_LABEL}</a></li>