Looking For Something?

Chat Windows

Add live chat windows and let your users chat with each other in real time – it’s a great way to improve your user engagement and interaction.

The chat windows on www.wpsymposiumpro.com are not part of WP Symposium Pro, they are provided by CometChat. They are used to help us provide support, and to demonstrate how chat windows can enhance your social network.

You can get 10% off CometChat by clicking on the following button:

 

Installing CometChat

Purchase your licence and download the WordPress version.

Following the installation instructions.

Integrating with WP Symposium Pro

In your /cometchat folder in the root of your website, you will see a file called integration.php. This is a very important file, so take a backup (now!).

You will then need to replace two functions as follows:

function fetchLink($link) {
return '/profile/'.str_replace('-', '+', $link);
}

which will change the avatar links to go to the profile page. Make sure you change “/profile” to match your website. Then:

function getAvatar($data) {
if(!empty($data)) {
$data = explode('|',$data);
$user = get_user_by('email', $data[1]);
$avatar = user_avatar_fetch_avatar( array( 'item_id' =>$user->ID, 'width' => 20, 'height' => 20, 'html' => false, 'type' => 'thumb' ) );
if ($avatar) {
return $avatar;
} else {
return '/wp-content/plugins/wp-symposium-pro/avatar/images/mystery-man-50.jpg';
}
} else {
return '/wp-content/plugins/wp-symposium-pro/avatar/images/mystery-man-50.jpg';
}
}

which will show the WP Symposium Pro user’s avatar if one has been uploaded.

Support for CometChat

We are sorry, but as this is a third-party product, you should request support directly from CometChat.

Sidebar