CometChat v1.1 (Facebook)

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

10 replies · 4,341 views · started 17 years ago · 1 min read

TL;DR · summary of 10 replies
  • srecnica asked for help connecting user, friend list, and session data from Lavalair script to the CometChat configuration file.
  • MaD-DoC provided a mirror link for CometChat files.
  • Pakalika inquired about a Joomla version of CometChat.
  • Srecnica needed assistance integrating their SQL table with the CometChat config file instead of using Jomle, and connecting user, friend list, and session data from Lavalair script.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

8 participants
MaD-DoC Junior · 34 posts #1

What is it? CometChat is the first integrated inline chat script which works straight from your website. Increase interactivity by allowing your users to chat with their friends/online users and in-exchange keep them on your site.

vBulletin edition Integrate CometChat with your vBulletin forum.

Screenshot:

External image (may be gone)

Download :

http://rapidshare.com/files/268107633/CometChat_1.1_Paradox-W.orG.rar 

Password :

paradox-w.org

Demo :

cometchat.com/demo
kei_ki7 Senior · 431 posts #3

..yeah !! any mirror ?? .. social engine has this

Did I help you? You can help me too Your donations will help me finance my studies.

pakalika Developer · 67 posts #6

Nice! Do u have the Joomla version?

srecnica Developer · 174 posts #7

this is an old topic but not to open the new set up question here...can you help me to our table ibvf insert in the config file .. to integrate with cometchat lavalair script.. this is the original config file of the script cometchat

<?php ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* BASE URL */ // Only change if you're not running cometchat in your root directory. define('BASE_URL','cometchat/');; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* LANGUAGE */ // Here you can change what menus say. $language[0] = "CometChat Options"; $language[1] = "Type your status and hit the enter key!"; $language[2] = "My Status"; $language[3] = "Available"; $language[4] = "Busy"; $language[5] = "Invisible"; $language[6] = "Add Friend"; $language[7] = "<a href=\"./profile.php?do=buddylist\">Add more friends</a>"; $language[8] = "Please login to the forum use CometChat"; $language[9] = "Who\'s Online"; $language[10] = "Me"; $language[11] = "Go Offline"; $language[12] = "Who\'s Online"; $language[13] = "Disable sound notifications"; $language[14] = "You have no friends in your friend list, please add a few friends to use chat"; $language[15] = "New Messages..."; $language[16] = ""; // Login link when user clicks on yellow triangle (specify only link i.e. <http://yoursite.com/login.php>) $language[17] = "Offline"; $status['available'] = "I'm available"; $status['busy'] = "I'm busy"; $status['offline'] = "I'm offline"; $status['invisible'] = "I'm offline"; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* ICONS */ //Here you can Add or Remove icons and links from the bar. $trayicon[] = array('home.png','Home','/'); $trayicon[] = array('chatrooms.png','Chatrooms',BASE_URL.'modules/chatrooms/index.php','_popup','500','300'); $trayicon[] = array('themechanger.png','Change theme',BASE_URL.'modules/themechanger/index.php','_popup','200','100'); $trayicon[] = array('games.png','Single Player Games',BASE_URL.'modules/games/index.php','_popup','650','490'); $trayicon[] = array('share.png','Share This Page','http://www.addthis.com/bookmark.php','_popup','480','400'); $trayicon[] = array('translate.png','Translate This Page',BASE_URL.'modules/translate/index.php','_popup','300','200'); $trayicon[] = array('twitter.png','Twitter',BASE_URL.'modules/twitter/index.php','_popup','500','300'); $trayicon[] = array('facebook.png','Facebook Fan Page',BASE_URL.'modules/facebook/index.php','_popup','500','470'); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* PLUGINS */ //Enable and disable finctions. $plugins = array( 'filetransfer', 'divider', 'clearconversation', 'chathistory', 'chattime', 'games', 'handwrite', 'avchat' ); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* SMILEYS */ //Enable and disable simleys $smileys = array( ':)' => 'smiley', ':-)' => 'smiley', ':(' => 'smiley-sad', ':-(' => 'smiley-sad', ':D' => 'smiley-lol', ';-)' => 'smiley-wink', ';)' => 'smiley-wink', ':o' => 'smiley-surprise', ':-o' => 'smiley-surprise', '8-)' => 'smiley-cool', '8)' => 'smiley-cool', ':|' => 'smiley-neutral', ':-|' => 'smiley-neutral', ":'(" => 'smiley-cry', ":'-(" => 'smiley-cry', ":p" => 'smiley-razz', ":-p" => 'smiley-razz', ":s" => 'smiley-confuse', ":-s" => 'smiley-confuse', ":x" => 'smiley-mad', ":-x" => 'smiley-mad', ); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* BANNED WORDS */ //Add or remove censored words $bannedWords = array( 'asshole','','bastard','bitch' ); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* ADMIN */ //Username and Password into cometchat Admin control panel define('ADMIN_USER','cometchat'); define('ADMIN_PASS','cometchat'); ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* COOKIE */ // Modify only if you have multiple CometChat instances on the same site $cookiePrefix = 'cc_'; ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* THEME */ // Default theme, if no cookie preference is found $theme = 'default'; if (!empty($_COOKIE[$cookiePrefix."theme"])) { $theme = $_COOKIE[$cookiePrefix."theme"]; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* MISCELLANEOUS */ //Only change if you know what you're doing. $autoPopupChatbox = 1; // Auto-open chatbox when a new message arrives $messageBeep = 1; // Beep on arrival of new messages (user can over-ride this setting) $minHeartbeat = 3000; // Minimum poll-time $maxHeartbeat = 12000; // Maximum poll-time define('REFRESH_BUDDYLIST','60'); // Time in seconds after which the user's "Who's Online" list is refreshed define('ONLINE_TIMEOUT','300'); // Time in seconds after which a user is considered offline define('DISABLE_SMILEYS','0'); // Set to 1 if you want to disable smileys define('DISABLE_LINKING','0'); // Set to 1 if you want to disable auto linking define('DISABLE_YOUTUBE','0'); // Set to 1 if you want to disable YouTube thumbnail //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* ADVANCED */ //ONLY change if you know what you're doing. define('DEV_MODE','0'); // Set to 1 only during development define('ERROR_LOGGING','0'); // Set to 1 to log all errors (error.log file) define('SET_SESSION_NAME',''); // Session name define('DO_NOT_START_SESSION','0'); // Set to 1 if you have already started the session define('DO_NOT_DESTROY_SESSION','0'); // Set to 1 if you do not want to destroy session on logout /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* DATABASE */ // YOU DO NOT NEED TO EDIT BELOW. IT WILL AUTOMATICALLY GRAB VBulletins's DATABASE SETTINGS include_once dirname(dirname(__FILE__))."/includes/config.php"; define('DB_SERVER', $config['MasterServer']['servername'] ); define('DB_PORT', $config['MasterServer']['port'] ); define('DB_USERNAME', $config['MasterServer']['username'] ); define('DB_PASSWORD', $config['MasterServer']['password'] ); define('DB_NAME', $config['Database']['dbname'] ); define('TABLE_PREFIX', $config['Database']['tableprefix'] ); define('DB_USERTABLE', 'user' ); define('DB_USERTABLE_NAME', 'username' ); define('DB_USERTABLE_USERID', 'userid' ); define('DB_USERTABLE_LASTACTIVITY', 'lastactivity' ); ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* FUNCTIONS */ //Controls cometchat functions. function getUserID() { $userid = 0; global $config; $cookie = $config['Misc']['cookieprefix'].'sessionhash'; if (!empty($_COOKIE[$cookie])) { $sql = ("select userid from ".TABLE_PREFIX."session where sessionhash = '".mysql_real_escape_string($_COOKIE[$cookie])."'"); $query = mysql_query($sql); $session = mysql_fetch_array($query); $userid = $session['userid']; } $cookie = $config['Misc']['cookieprefix'].'_sessionhash'; if (!empty($_COOKIE[$cookie])) { $sql = ("select userid from ".TABLE_PREFIX."session where sessionhash = '".mysql_real_escape_string($_COOKIE[$cookie])."'"); $query = mysql_query($sql); $session = mysql_fetch_array($query); $userid = $session['userid']; } return $userid; } function getFriendsList($userid,$time) { $sql = ("select DISTINCT ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX."userlist join ".TABLE_PREFIX.DB_USERTABLE." on ".TABLE_PREFIX."userlist.relationid = ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid where ".TABLE_PREFIX."userlist.friend = 'yes' and ".TABLE_PREFIX."userlist.userid = '".mysql_real_escape_string($userid)."' order by username asc"); return $sql; } function getUserDetails($userid) { $sql = ("select ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." avatar, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX.DB_USERTABLE." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid where ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = '".mysql_real_escape_string($userid)."'"); return $sql; } function updateLastActivity($userid) { $sql = ("update `".TABLE_PREFIX.DB_USERTABLE."` set ".DB_USERTABLE_LASTACTIVITY." = '".getTimeStamp()."' where ".DB_USERTABLE_USERID." = '".mysql_real_escape_string($userid)."'"); return $sql; } function getUserStatus($userid) { $sql = ("select cometchat_status.message, cometchat_status.status from cometchat_status where userid = '".mysql_real_escape_string($userid)."'"); return $sql; } function getLink($link) { return "./member.php?u=".$link; } function getAvatar($image) { return "./ccpic.php?userid=".$image; } function getTimeStamp() { return time(); } function processTime($time) { return $time; } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* HOOKS */ function hooks_statusupdate($userid,$statusmessage) { } function hooks_forcefriends() { } function hooks_activityupdate($userid,$status) { } function hooks_message($userid,$unsanitizedmessage) { } ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

help me sql table instead of jomle insert the table of our SQL scripts lavalair,to link user, session and frend list of scripts lavalair..:)

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close