Alright so here is a tutorial on how to install cometchat v1.5 on to your SMF Site. This is compatible with both smf 1 and 2. This version of cometchat has been modified to show all online users rather than using a buddy system like the last release. Also I have a added a mod to show each user in a chat room and a mod to make the chat windows look more like facebook, including a msg stating that the users is offline and they will not receive the message till they log back in. All links have been converted to work with smf including the home button, and profile links. Avatars are still something that we are having trouble with so for now have just included a default avatar image that will be used for every user.
What you will need:
-An installation of SMF 1 or 2
-Access to database(PHPmyadmin)
-SMF Mod - Global Header and Footer(not needed but makes it easier to install header and footer code)
-A copy of cometchat which can be found Here(registration required)
Preparation:
- Install Global Header and Footer Mod(makes the install easier)
- In SMF go to your Admin Panel>Configuration>Server Settings>Core Configuration and get your SMF cookie name as it will be needed later
ow we move on to the install
Step 1 - Upload the cometchat folder for your version of smf to your forum directory, ex. /forum/cometchat
Step 2 - Open cometchat/config.php
Find:
define( 'DB_USERNAME', 'CHANGE_ME' );
define( 'DB_PASSWORD', 'CHANGE_ME');
define( 'DB_NAME', 'CHANGE_ME' );
define( 'TABLE_PREFIX', 'CHANGE_ME' );
Change the values on the right to match to your vbulletin database configuration.
Part 2 - Open cometchat/config.php
Find:
list ($ID_MEMBER, $password) = @unserialize(stripslashes($_COOKIE['SMFCookietdr']));
Change "SMFCookietdr" to the name of your smf cookie that you retrieved earlier.
Step 3 - add any buttons you may want within the config.php to link to pages such as facebook or myspace, the buttom images have been included in the images/icons folder
Step 4 - Using a browser navigate to hxxp://yoursitehere/cometchat/install.php
Step 5 - Delete install.php
Step 6 - Now go to your admin panel and then to your global header and footer section.
Put this in your header:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>jqcc=jQuery.noConflict(true);</script>
and put this in your footer:
<link type="text/css" rel="stylesheet" media="all" href="cometchat/cometchatcss.php" charset="utf-8" />
<script type="text/javascript" src="cometchat/cometchatjs.php" charset="utf-8"></script>
You should now have succesfully integrated cometchat(originally coded for vbul) into SMF
Thanks goes out to wdm2005 from Sleepy Arcade for doing the hard stuff :D
What you will need:
-An installation of SMF 1 or 2
-Access to database(PHPmyadmin)
-SMF Mod - Global Header and Footer(not needed but makes it easier to install header and footer code)
-A copy of cometchat which can be found Here(registration required)
Preparation:
- Install Global Header and Footer Mod(makes the install easier)
- In SMF go to your Admin Panel>Configuration>Server Settings>Core Configuration and get your SMF cookie name as it will be needed later
ow we move on to the install
Step 1 - Upload the cometchat folder for your version of smf to your forum directory, ex. /forum/cometchat
Step 2 - Open cometchat/config.php
Find:
define( 'DB_USERNAME', 'CHANGE_ME' );
define( 'DB_PASSWORD', 'CHANGE_ME');
define( 'DB_NAME', 'CHANGE_ME' );
define( 'TABLE_PREFIX', 'CHANGE_ME' );
Change the values on the right to match to your vbulletin database configuration.
Part 2 - Open cometchat/config.php
Find:
list ($ID_MEMBER, $password) = @unserialize(stripslashes($_COOKIE['SMFCookietdr']));
Change "SMFCookietdr" to the name of your smf cookie that you retrieved earlier.
Step 3 - add any buttons you may want within the config.php to link to pages such as facebook or myspace, the buttom images have been included in the images/icons folder
Step 4 - Using a browser navigate to hxxp://yoursitehere/cometchat/install.php
Step 5 - Delete install.php
Step 6 - Now go to your admin panel and then to your global header and footer section.
Put this in your header:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>jqcc=jQuery.noConflict(true);</script>
and put this in your footer:
<link type="text/css" rel="stylesheet" media="all" href="cometchat/cometchatcss.php" charset="utf-8" />
<script type="text/javascript" src="cometchat/cometchatjs.php" charset="utf-8"></script>
You should now have succesfully integrated cometchat(originally coded for vbul) into SMF
Thanks goes out to wdm2005 from Sleepy Arcade for doing the hard stuff :D




#1 vzakladkah.info