CometChat v1.1 (Facebook)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    CometChat v1.1 (Facebook)

    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:



    Download :

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

    Code:
    paradox-w.org
    Demo :

    Code:
    cometchat.com/demo

    #2
    file has being removed
    ________________
    Jacques
    jacques@gw-designs.co.za
    http://coding.biz.tm
    Come join and lets make it a place to learn all the noobies how to code
    __________________

    NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

    Comment


      #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.

      Comment


        #4
        any mirror please
        mysterio.al - programming is a functional art

        Comment


          #5
          Mirror
          Code:
          http://rapidshare.com/files/271084438/cometchat_ZW.rar

          Comment


            #6
            Nice! Do u have the Joomla version?

            Comment


              #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.'module s/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',
              '' => '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_USERI D." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME. " username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTA CTIVITY." lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERI D." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERI D." 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_USERI D." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERI D." = 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_USERI D." userid, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME. " username, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTA CTIVITY." lastactivity, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERI D." link, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERI D." avatar, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX.DB_USERTABLE." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERI D." = cometchat_status.userid where ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERI D." = '".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..
              Last edited by srecnica; 16.09.10, 20:49.
              sigpichttp://happy.srecnica.com/web

              Comment


                #8
                Free File Hosting with Shrta - Download - chat.zip
                cramit.in - web based file storage and transfer client
                Deposit Files

                or

                Hotfile.com: One click file hosting: chat.zip


                ....................................
                http://photomag.lk/
                ....................................

                Comment


                  #9
                  Yes, that is the script .... and how to connect the user, frend list and a session from lavalair script?
                  sigpichttp://happy.srecnica.com/web

                  Comment


                    #10
                    anyone....?
                    sigpichttp://happy.srecnica.com/web

                    Comment


                      #11
                      config.php missed

                      Comment

                      Working...
                      X