Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > xBTiT
Reply
  #1  
Old 26th August 2009, 11:24
re4ux's Avatar
re4ux re4ux is offline
Senior Member
 
Join Date: May 2009
Posts: 17
Wink Need Ajax chat in PB.
I want to change SB chat to xBtit chat in "btit pb edition". Can anyone help me?
Reply With Quote
  #2  
Old 26th August 2009, 14:49
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default
AJAX Shoutbox
based on YShout 4 (YShout 5: A PHP + AJAX Shoutbox)
tested with BTIT 1.4.4

Added Features:
+ Usernames with Links to Users Details
+ Users Groups Colors
+ Words Censor (uses tracker's badwords.txt)
+ Clickable Smileys
+ BBCodes
like:Code:
bold italic underline blue #ff0000 size 4 Impact
+ Dynamic Online Counter (http://www.programming-designs.com/p...scripts/item/5)
+ Time Offset
+ Guest Access (option in YShout CP)

Upload (copy) the files from the attached archive to your web server.
You should have the following file structure:
Code:
addons/js/
addons/yshout/
blocks/
yshout_block.php

Set read-write permissions on the addons/yshout/logs/ directory and *.txt files inside it.

include/functions.php
find:
PHP Code:
setcookie("pass"$passhash$expires"/"); 
add below:
PHP Code:
setcookie("yNickname"""0x7fffffff"/"); 
find:
PHP Code:
setcookie("pass"""0x7fffffff"/"); 
add below:
PHP Code:
setcookie("yNickname"""0x7fffffff"/"); 
find:
PHP Code:
print("<link rel=\"stylesheet\" href=$style type=\"text/css\" />");add below
Code:
PHP Code:
$res = @mysql_query("SELECT * FROM blocks WHERE content = 'yshout' AND status = 1");
$num = @mysql_num_rows($res);
if (
$num == && eregi('index.php'$_SERVER['PHP_SELF']))
    echo 
'<script type="text/javascript" src="./addons/js/jquery.js"></script>
<script type="text/javascript" src="./addons/js/spy.js"></script>
<script type="text/javascript" src="./addons/yshout/js/yshout.js"></script>
<link rel="stylesheet" type="text/css" href="./addons/yshout/css/yshout.css" />'

language/english.php
find:
PHP Code:
?> 
add above:Code:
PHP Code:
define('_YSHOUT''YShout');
define('_YSHOUT_MESSAGE''Message Text');
define('_YSHOUT_SUBMIT''Shout!');
define('_YSHOUT_CONTROL_PANEL''YShout Control Panel');
define('_YSHOUT_ADMIN_CP''Admin CP');
define('_YSHOUT_HISTORY_VIEWER''YShout History Viewer');
define('_YSHOUT_HISTORY''History');
define('_YSHOUT_LOGIN''You must be logged in to use the shoutbox!');
define('_YSHOUT_LOG''Log');
define('_YSHOUT_VIEWING_LOG''Viewing Log #');
define('_YSHOUT_LOG_EMPTY''This log does not contain any shouts.');
define('_DOC_PEOPLE_ONLINE''People Online');
define('_LANGUAGE''english');//name of the current file (without extension) 
Run the following SQL query:
PHP Code:
INSERT INTO blocks VALUES (20'yshout''c'01); 
Attached Thumbnails
yshout_block.png  
Attached Files
File Type: zip yshout_block.zip (82.2 KB, 76 views)
Reply With Quote
  #3  
Old 26th August 2009, 21:28
re4ux's Avatar
re4ux re4ux is offline
Senior Member
 
Join Date: May 2009
Posts: 17
Default
Phogo, thanks.
But when i do everything like you say'd i dont see shoutbox. I see only

"YShout"
"Users Online: 0"

Maybe it doesnt work in PB edition ? :sorry::unknown:
Reply With Quote
Reply

Tags
ajax , chat , pb

Thread Tools

Posting Rules
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 On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax Chat bestmd Mods & Themes 23 26th September 2014 12:20
Ajax Chat kp380lv Mods & Themes 13 26th July 2011 02:38
private chat BEST Community Cafe 2 21st August 2009 19:17
AJAX Chat vertex Yuna Scatari Edition (YSE) 1 26th June 2008 10:50
New ratio with ajax - Ajax 5 star ratings kp380lv Yuna Scatari Edition (YSE) 0 23rd June 2008 01:11



All times are GMT +2. The time now is 21:03. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.