Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > 123 Web Messenger Software > 123 Web Messenger Support

Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-12-2010, 03:00 AM
Administrator
 
Join Date: Dec 2008
Posts: 577
Default How to add IM to website?

123 Web Messenger provide FREE seamless database integration for you. Your users could keep away the bother with extra register or login to enjoy chatting then.
Maybe you will ask how to add 123 Web Messenger to website. Please refer to the following for detailed information of Web messenger integration.
Web messenger integration with website includes 3 parts (you can see the demo on yourself server).
Firstly, you should have a server and running 123webmessenger, it can be hosting on your server or hosting on 123flashchat.com.
If it is hosted on your server please copy the client folder to web server directory.
Secondly, you should configure your config.js in <web server directory>/client/js/config.js
Find var webpath = "";
Change to var webpath = "http://yourClientFolerURL/client/";




to be continued...




Reply With Quote
  #2 (permalink)  
Old 10-12-2010, 03:03 AM
Administrator
 
Join Date: Dec 2008
Posts: 577
Default

Thirdly, separate for the different style to introduce.

1. Facebook bar part

Facebook Messenger Style Web Chat Bar

It adds a bottom web toolbar on your browser with the friend list button, empowering your website with a Facebook style Web Messenger!



If you use the popular CMS system (for example, phpBB, Joomla!, vBulletin, etc), please directly download the 123 Web Messenger modules from:Integration with 123 Web Messenger -- Instant Messaging Software, Facebook Messenger, IM Software, Website Messenger, 1 to 1 Chat

And there is an example: how to add 123 Web Messenger to your vBulletin?

Step1, please download vBulletin Instant Messenger module, and uncompress the package.



Step2, copy files.
1. Copy: wm_get_userinfo.php
To: <vBulletin installed directory>/wm_get_userinfo.php
2. Copy: wm_config.php
To: <vBulletin installed directory>/wm_config.php
3. Copy: login_chat.php
To: <vBulletin installed directory>/login_chat.php
Step3, configure wm_config.php.
Step4, install the module in the vBulletin admin panel.
Please login vBulletin admin panel-> Styles & Templates -> Click on: Style Manager -> Edit Templates (in All Style Options) -> Find: "footer" (double click).



Then add the following code into the last.
<script language="javascript" src="<vBulletin installed directory>/wm_get_userinfo.php"></script>
<script language="javascript" src="<123webmessenger client directory>/js/123webmessenger_fb.js"></script>
Note: Replace <vBulletin installed directory> and <123webmessenger client directory> with the real URL.
Step5, integrate your 123 Web Messenger Chat with vBulletin user database, after doing that, users logged in the vBulletin website don’t have to re-enter username or password to access 123 Web Messenger Chat.
1. Log in 123 Web Messenger Admin Panel.
2. System Settings -> Integrate Panel ->DataBase -> SELECT: URL -> edit
3. Change URL to
http://<vBulletin installed directory>/login_chat.php?username=%username%&password=%passw ord%.
4. Press OK to save your setting.
5. Restart chat server at System Management -> Restart



Integration done, enjoy your 123 Web Messenger chat.




Reply With Quote
  #3 (permalink)  
Old 10-12-2010, 03:07 AM
Administrator
 
Join Date: Dec 2008
Posts: 577
Default

If you don’t use the popular CMS system (for example, phpBB, Joomla!, vBulletin, etc), you also can integrate 123 Web Messenger with your website successful, please refer to the following instructions.



1.1 Please add the following script into your website head or food part. You should make sure all pages on your server can load it.
e.g:
<?php
$dir = "http://yourClientFolerURL/client/"
$user = $_SESSION[username];
//you should give the log in member's username to the variable when the guy log into your website. How to get the name, you should write a function, $_SESSION[username] is just a simple code
$password = $_SESSION[password];
//you should give the log in member's password to the variable when the guy log into your website. How to get the password, you should write a function, $_SESSION[password] is just a simple code
?>
<script language="javascript" src="<?php echo $dir ?>js/config.js"></script>
<script language="javascript">
var username_123webmessenger = "<?php echo $user ?>";
var password_123webmessenger = "<?php echo $password ?>"
</script>
<script language="javascript" src="<?php echo $dir ?>js/123webmessenger_fb.js"></script>
1.2 About the validate page.
For example: login_chat.php
1.2.1 Get two variable transport from 123flashchat server GET method),
A (GET variable username)
B (GET variable password)
1.2.2 Define an admin group ID
e.g: define ("ADMINGROPU","5") 5 is your web system admin group id.
Reply With Quote
  #4 (permalink)  
Old 10-12-2010, 03:09 AM
Administrator
 
Join Date: Dec 2008
Posts: 577
Default

1.2.3 You should get the userpassword and usergroup form DB, according to the variable (GET variable username), and then you need to match the account and password.
e.g:
if (DB ERROR){
print (3);
}
if (user exist in your DB){
if(GET variable userpassword== DB userpassword){
if ( ADMINGROPU == DB usergroup ){
print (5);
} else {
print (0);
}
} else {
print (1);
}
} else {
print (4);
}
Please make sure use the same way to encrypt the password, both in swf view page and validate page. (What does each number means in terms of the authentication result? Please view the following annotation.)
0 - login successfully
1 - password error
4 - account is not exist
3 - DB link not successful (Unknown error)
5 - administrator log in successfully
1.3 Add the login_chat.php file to your web messenger server.
1.4 Configure your Auth-URL and restart the web messenger server. as Step5.
Reply With Quote
  #5 (permalink)  
Old 10-12-2010, 03:11 AM
Administrator
 
Join Date: Dec 2008
Posts: 577
Default

2. Friend list part


The friends list of 123 Web Messenger will help you quickly locate a friend in the long user list.


2.1 You should add the following script into your website head or food part. You should make sure all pages on your server can load it.
<?php
$dir = "http://yourClientFolerURL/client/"
$user = $_SESSION[username];
//you should give the log in member's username to the variable when the guy log into your website. How to get the name, you need to write a function, and $_SESSION[username] is just a simple code
$password =$_SESSION[password];
//you should give the log in member's password to the variable when the guy log into your website. How to get the password, you need to write a function, and $_SESSION[password] is just a simple code
?>
<script type="text/javascript" src="<?php echo $dir?>js/123webmessenger.js"></script>
<script type="text/javascript">
var init_user="<?php echo $user ?>";
var init_password="<?php echo $password ?>";
</script>
<script type="text/javascript" src="<?php echo $dir?>js/config.js"></script>
<script type="text/javascript" src="<?php echo $dir?>js/cookies.js"></script>
<script type="text/javascript" src="<?php echo $dir?>js/fly.js"></script>
<script type="text/javascript" src="<?php echo $dir?>js/dc.js"></script>
<script language="javascript">
dcInit();
</script>

Reply With Quote
  #6 (permalink)  
Old 10-12-2010, 03:11 AM
Administrator
 
Join Date: Dec 2008
Posts: 577
Default

2.2 Add a button for popup the friend list. Please add the following code in your need page.
<script type="text/javascript">
<!--
function open123WebMessengerFriendList()
{
window.open
("123webmessenger_friendlist.html","123webmessenge r_friendlist_"+Math.round(Math.random()*1000)
,"height=461,width=260,toolbar=no,menubar=no,alway sRaised=yes,scrollbars=no,resizable=yes,location=n o,status=
no,alwaysRaised=yes,directories=no,titlebar=no");
}
function MM_popupMsg(msg) { //v1.0
alert(msg);
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
//Button e.g:
<a onclick="open123WebMessengerFriendList();return false;" href="123webmessenger_friendlist.html">Friend
list</a>
2.3, 2.4, and 2.5 same as Facebook bar part 1.2, 1.3 and 1.4.

3. 1to1 chat part

You think the guy is funny, why don’t you chat with him / her one to one?


3.1 Same as Friend list part 2.1
3.2 Add a button for chat.
Please add a button in your user profile page or other page you like.
e.g:
<a href="javascript: FC_invite_1to1_chat('lisa')">chat now</a>
3.3, 3.4 and 3.5 same as Facebook bar part 1.2, 1.3 and 1.4.

Reply With Quote
  #7 (permalink)  
Old 03-06-2011, 11:11 AM
Junior Member
 
Join Date: Feb 2011
Location: 4578 Friendship Lane Santa Clara
Posts: 1
Default

Nice work, now i can IM to my site...thanks Guys!
__________________
The Closets Organizer|Closet organization ideas- provides variety of services ranging from quality products and services to proper installation.
Reply With Quote
  #8 (permalink)  
Old 06-03-2011, 12:14 AM
Junior Member
 
Join Date: Jun 2011
Location: Mifflin, Pennsylvania
Posts: 1
Send a message via Yahoo to PECO
Default

This is great.... And very clear instructions.
__________________
Pennsylvania rate caps are now expired allowing companies like Ambit Energy to offer electricity and natural gas service to the PECO service territory.

Last edited by admin; 06-03-2011 at 01:23 AM. Reason: no link
Reply With Quote
  #9 (permalink)  
Old 07-26-2011, 07:59 AM
Junior Member
 
Join Date: Jul 2011
Posts: 2
Default

I did try to install my space im messenger but this messenger did not work properly due to show some missing files .
How can I install this messenger to work it properly .


Buy Cialis - Online Pharmacy

Last edited by John009; 07-27-2011 at 06:32 AM.
Reply With Quote
  #10 (permalink)  
Old 07-27-2011, 01:52 AM
Administrator
 
Join Date: Dec 2008
Posts: 577
Default

To install our 123webmessenger, your server needs to have shell access and can support JVM.
Reply With Quote
Reply

Was this information helpful?    Yes No



Tags
facebook-like messenger

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.123flashchat.com/community/123-web-messenger-support/4526-how-add-im-website.html
Posted By For Type Date
TopCMM Community--Flash Chat Software, Online Chat Software, Online Webcam Chat, Java Chat Server, Website Messenger, Face Book Messenger, Live Support Software This thread Refback 10-18-2011 07:31 PM


All times are GMT. The time now is 05:17 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.