67.gif

Search (advanced search)
Use this Search form before posting, asking or make a new thread.
Tips: Use Quotation mark to search words (eg. "How To Make Money Online")

08-04-2013, 03:47 AM
Post: #21
RE:
I have error:
Please check if cometchat is installed in the correct directory
Generally cometchat should be installed in /cometchat

I have,
cometchat in the main root
replace the default integration.php with the Skadate integration file
Skadate Version: 9.2.2960
Someone knows how the solution
08-04-2013, 11:07 AM
Post: #22
RE:
Hi,
I think something is wrong with your cometchat folder base (should be uploaded in the root folder + keep the name of your script as 'cometchat')
Verify again that you have inserted correctly your database.
Run the installer file through your web browser 'http://www.domain.com/cometchat/install.php' then copy the code in your skadate theme at /layout/Layout.tpl.
Pm if this issue still persist' i will install it for you ;)
08-06-2013, 03:18 PM (This post was last modified: 08-06-2013 09:40 PM by skadate.)
Post: #23
RE:
@hamid thanks but i have solved the problem
have placed in cometchat/integration.php
define('BASE_URL','/cometchat/');
// MySQL Connection
define('DB_HOST', 'localhost');
define('DB_USER', 'your_DB_user');
define('DB_PASS', 'your_DB_pass');
define('DB_NAME', 'your_DB_name');
define('DB_TBL_PREFIX', 'your_DB_TBL_PREFIX');
and change "....DIRECTORY_SEPARATOR.'$config.php'))" to "....DIRECTORY_SEPARATOR.'config.php'))"
08-13-2013, 05:32 AM
Post: #24
RE:
can anyone create the integration file for phpdolphin please ?
08-13-2013, 05:51 AM
Post: #25
RE:
same aid for phpdolphin
7.gif
08-22-2013, 09:34 PM
Post: #26
RE:
please anyone create integration for cometchat
09-30-2013, 08:40 PM
Post: #27
CometChat 5 - Skadate 2960 Integration
CometChat 5 - Skadate 9.2.2960 Integration

Hi guys! could anyone advise why cometchat does not display skadate member avatars?

Thank you in advance for your time and help!
09-30-2013, 08:42 PM
Post: #28
CometChat 5 - Skadate 9.2.2960 Integration
CometChat 5 - Skadate 9.2.2960 Integration

Hi guys! could anyone advise why cometchat does not display skadate member avatars?

Thank you in advance for your time and help!
10-03-2013, 05:15 PM
Post: #29
Skadate profile photo BROKEN in Cometchat
The integration file of cometchat/skadate is posted below, but for some reason the skadate profile photos are not displayed in cometchat. Skadate profile images are broken in cometchat. Possibly the image paths or some definition configuration within the php file?????. I am sorry but i am not a php developer so please advise if anyone knows...

Your time is greatly appreciated!

SKADATE/COMETCHAT integration.php

<?php

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/* ADVANCED */

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','1'); // Set to 1 if you do not want to destroy session on logout
define('SWITCH_ENABLED','0');
define('INCLUDE_JQUERY','1');
define('FORCE_MAGIC_QUOTES','0');
define('BASE_URL','/cometchat/');

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/* DATABASE */

if(!file_exists(dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'internals'.DIREC​TORY_SEPARATOR.'config.php'))
{
echo "Please check if cometchat is installed in the correct directory <br> Generally cometchat should be installed in <SKADATE_HOME_DIRECTORY>/cometchat";
exit;
}

include_once(dirname(dirname(__FILE__))).DIRECTORY_SEPARATOR.'internals'.DIRECTO​RY_SEPARATOR.'$config.php';

// MySQL Connection
define('DB_HOST', 'localhost');
define('DB_USER', 'custom_test');
define('DB_PASS', 'test');
define('DB_NAME', 'custom_test');
define('DB_TBL_PREFIX', 'custom_');

define('DB_SERVER', DB_HOST );
define('DB_PORT', "3306" );
define('DB_USERNAME', DB_USER );
define('DB_PASSWORD', DB_PASS );
define('TABLE_PREFIX', DB_TBL_PREFIX );
define('DB_USERTABLE', "profile" );
define('DB_USERTABLE_USERID', "profile_id" );
define('DB_USERTABLE_NAME', "username" );
define('DB_AVATARTABLE', " left join (select * from ".TABLE_PREFIX."profile_photo where ".TABLE_PREFIX."profile_photo.status = 'active' and number=0)a on a.profile_id=".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." ");
define('DB_AVATARFIELD', " concat(COALESCE((concat(a.profile_id,'',a.photo_id,'',a.index)),''),'^', ".TABLE_PREFIX.DB_USERTABLE.".sex) ");
define('DB_USERTABLE_LASTACTIVITY', "activity_stamp" );

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

/* FUNCTIONS */

function getUserID() {
$userid = 0;

if (!empty($_SESSION['basedata']) and& $_SESSION['basedata'] != 'null') {
$_REQUEST['basedata'] = $_SESSION['basedata'];
}

if (!empty($_REQUEST['basedata'])) {
$userid = $_REQUEST['basedata'];
}

if(!empty($_SESSION['%http_user%']['profile_id']))
$userid = $_SESSION['%http_user%']['profile_id'];
return $userid;
}

function chatLogin($userName,$userPass){
$userid = 0;
if (filter_var($userName, FILTER_VALIDATE_EMAIL)) {
$sql ="SELECT * FROM ".TABLE_PREFIX.DB_USERTABLE." WHERE email ='".$userName."'";
} else {
$sql ="SELECT * FROM ".TABLE_PREFIX.DB_USERTABLE." WHERE username ='".$userName."'";
}
$result=mysql_query($sql);
$row = mysql_fetch_array($result);

if($row['password']== $userPass){
$userid = $row['profile_id'];
}
return $userid;
}

function getFriendsList($userid,$time) {
if (defined('DISPLAY_ALL_USERS') and& DISPLAY_ALL_USERS == 1)
{
$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, ".DB_AVATARFIELD." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." link, 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 ".DB_AVATARTABLE." where ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." <> '".mysql_real_escape_string($userid)."' and ('".mysql_real_escape_string($time)."'-".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_LASTACTIVITY." < '".((ONLINE_TIMEOUT)*2)."') and (cometchat_status.status IS NULL OR cometchat_status.status <> 'invisible' OR cometchat_status.status <> 'offline') and ".TABLE_PREFIX."profile_photostatus = 'active' order by username asc");
}
else
{
$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, ".DB_AVATARFIELD." avatar, ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_NAME." link, cometchat_status.message, cometchat_status.status from ".TABLE_PREFIX."profile_friend_list join ".TABLE_PREFIX.DB_USERTABLE." on ".TABLE_PREFIX."profile_friend_list.profile_id = ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." left join cometchat_status on ".TABLE_PREFIX.DB_USERTABLE.".".DB_USERTABLE_USERID." = cometchat_status.userid ".DB_AVATARTABLE." where ".TABLE_PREFIX."profile_friend_list.friend_id = '".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, ".DB_AVATARFIELD." 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 ".DB_AVATARTABLE." 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) {
$path = dirname(dirname(__FILE__));
$array = explode("/",$path);
return '/'.array_pop($array).'/../member/profile_'.$link.'.html';
}

function getAvatar($image) {
$img=explode('^',$image);
if($img[0])
return BASE_URL.'../$userfiles/thumb_'.$img[0].'.jpg';
else
return BASE_URL.'../layout/themes/fb/img/sex_'.$img[1].'_no_photo_thumb.gif';
}


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) {

}

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////



$p_ = 4;

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
10-04-2013, 01:08 AM (This post was last modified: 10-04-2013 01:37 AM by shpica.)
Post: #30
RE:
nice looking chat, thanks for sharing, +rep added

http://www.cometchat.com/demo <- demo


Mirrors (had to download on other site, cuz here is no working links), there is version 4.4 nulled too

Gett

ZippyShare

SendSpace

UploadSeeds

FlashMirrors

MirrorCreator

Analyze:

VirusTotal
80.gif




10.gif