PDA

View Full Version : Chat Modifications - vb4-Footer Chat Bar


JAFRI
05-12-2010, 10:00 PM
vb4-Footer Chat Bar

<Removed>

JAFRI
05-13-2010, 08:08 AM
Edit config.php

1. /* BASE URL */

define('BASE_URL','http://www.your-forum.com/cometchat/');;


2. "http://www.your-forum.com/login.php"; // Login link when user clicks on yellow triangle (specify only link i.e. http://yoursite.com/login.php)


3. define('ADMIN_USER','admin');
define('ADMIN_PASS','admin');

4. /* COOKIE */
// Modify only if you have multiple CometChat instances on the same site

$cookiePrefix = 'vb4.0.2';

Kolbi
05-13-2010, 08:15 AM
cool, tagged!

Kolbi
05-13-2010, 08:18 AM
There´s the difference between full and fix version?

JAFRI
05-13-2010, 08:18 AM
cool, tagged!

Tagged for later, thanks, looks nice.

Click to Mark as Installed (javascript:%20vborg_doinstall(242416,true)). :D

nextslit
05-13-2010, 08:21 AM
its not free !?
http://www.cometchat.com/buy

JAFRI
05-13-2010, 08:23 AM
if u Want Chat with all Online Users
--------------------------------------
Edit config.php and replace the getFriendsList() function with the following:

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.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)."' and ('".$time."'-lastactivity < '".ONLINE_TIMEOUT."') and (cometchat_status.status IS NULL OR cometchat_status.status <> 'invisible') order by username asc");

return $sql;

}

JAFRI
05-13-2010, 08:24 AM
its not free !?
http://www.cometchat.com/buy


yes , but now , Freeeee :D

----------------------------------
Enjoy
Jafri,

Kolbi
05-13-2010, 08:28 AM
yes , but now , Freeeee :D

----------------------------------
Enjoy
Jafri,

Are you the developer?

Datenpapst
05-13-2010, 08:28 AM
its not free !?
http://www.cometchat.com/buy
so is it legal to us it?

JAFRI
05-13-2010, 08:29 AM
Allow administrator to see all online users including invisible
-------------------------------------------------------------
Add the following before return $sql;

if ($userid == ADMINUSERIDHERE) {

$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.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)."' and ('".$time."'-lastactivity < '".ONLINE_TIMEOUT."') order by username asc");

}

return $sql; // ALREADY PART OF php

JAFRI
05-13-2010, 08:42 AM
Update the USERGROUPID above. For multiple usergroups, use the following:

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)."' and ('".$time."'-lastactivity < '".ONLINE_TIMEOUT."') and (cometchat_status.status IS NULL OR cometchat_status.status <> 'invisible')

and (

".TABLE_PREFIX.DB_USERTABLE.".usergroupid = 'USERGROUPID1' OR
".TABLE_PREFIX.DB_USERTABLE.".usergroupid = 'USERGROUPID2' OR
".TABLE_PREFIX.DB_USERTABLE.".usergroupid = 'USERGROUPI3'

)
order by username asc");
return $sql;
}

Kolbi
05-13-2010, 08:44 AM
Look into:
/cometchat/license.php
/*
* CometChat v1.6 - Nulled by pdtan
* http://www.+++++++.vn - http://tan.1minh.vn
*/

JAFRI
05-13-2010, 08:50 AM
Look into:
/cometchat/license.php
/*
* CometChat v1.6 - Nulled by pdtan
* http://www.+++++++.vn - http://tan.1minh.vn
*/

if u like tht change it ,

nextslit
05-13-2010, 08:51 AM
yes , but now , Freeeee :D

----------------------------------
Enjoy
Jafri,

I don't think so !

MARCO1
05-13-2010, 08:53 AM
This is pirated version, Posting Copyright Material is against vb.org rules, Reported.

Kolbi
05-13-2010, 08:56 AM
Changing this doesn´t change anything, that this is a illegal nulled version.

JAFRI
05-13-2010, 09:11 AM
upload again the config.php in root/forum/cometchat work avatar.

TimberFloorAu
05-13-2010, 09:16 AM
Aamir... I suggest you pull this pretty damn quick.

A its illegal.
B I would SUE your arse off mate !

Pakistan or Uzbekistahn... makes no difference, PLAGUERISM stinks !

anantgarg
05-13-2010, 09:23 AM
CometChat is a paid software. It is not available for free. Please do not support piracy. If you want to purchase CometChat, please visit our site (link in the footer).

@Aamir Durrani- If this is not removed immediately, we will be taking legal action against you.

legacy123
05-13-2010, 10:02 AM
lol seeing this and then it illegal but after seeing it up for a while(b4 taking it down) now I may go buy this lolz