Jump to content
Dote

Secured Private Chat System [AS2/AS3] (FChat)

Recommended Posts

FChat (Free Chat)

 

Yeah, let's flood into the topic. First, hook up the prerequisite.

REQUIRMENTS / PREREQUISITE:

Let's go. Even though it can be easily done with AS2 too, am not expert in AS2 so am not gonna touch that concept, any contributor could contribute one to AS2 if you wish :). This part is for AS3.

 

 

Client stuff first:

Add the files in this archive to Play/v2/Client

FChat.rar

Edit Play/v2/Client/Dependencies.json accordingly as given below.

  • Open Dependencies.json
  • Find these lines
  • {
    	"id": "engine",
    	"title": "Engine"
    },
  • Below that add these lines (ie, after that '},')

  • {
    	"id": "FChat",
    	"title": "Free Chat - PC"
    },

    .

Now go to your Play folder, ie play.localhost (if you are using XAMPP - htdocs/play)

Place all the files in the below archive in it.

Converse.rar 

jquery.min.rar

Now open the play html codes, that must be on the same Play folder (usually index.html in play page)

Add these codes between <head> and </head> 

<script src="jquery.min.js"></script>
<script type="text/javascript">
	function FChatInit($s)
	{
		$args = $s.split("<!delimiter!>");

		require(['converse'], function (converse) {
		    converse.initialize({
		        bosh_service_url: 'http://localhost:7070/http-bind/', // Please use this connection manager only for testing purposes
		        i18n: locales.en, // Refer to ./locale/locales.js to see which locales are supported
		        show_controlbox_by_default: true,
		        roster_groups: true
		    });
		});	

		var _$ = setInterval(
			function()
			{
				var $$ = $(".conversejs");
				if ($$ !== false)
				{
					$(".conversejs").fadeOut();

					$("#converse-login > label").fadeOut();
					$("input[name=jid]").fadeOut();
					$("input[name=password]").fadeOut();
					$("#converse-login > input[type=submit]").fadeOut();

					$("input[name=jid]").val($args[1]);
					$("input[name=password]").val($args[0]);
					$("#converse-login > input[type=submit]").click();

					$("#conversejs").fadeIn();

					clearInterval(_$);
				}
			}
		, 100);
	}
</script>

<link rel="stylesheet" type="text/css" media="screen" href="css/converse.css">
<script src="dist/converse.js"></script>

Make sure you have this param in your ClubPenguin.swf object element

<param name="allowscriptaccess" value="always">

 

Here comes the server part:

KITSUNE : 

Place the content in the following archive in Kitsune/ClubPenguin/Plugins

FChat.rar

For other server emulators, just request me on comments I'll make one.

 

Here are some pictures of this chat

 

 

012400f898a74bc2a8e1bdbd6f416e92.png

Above is not the actual login UI, penguin is auto logged into the chat server.

8c3ae10e5a114d5ebf53e77506307a22.png

efcec00200f74a378ed6af1448242d75.png

 

 
 

FEATURES

  • Secured Login, the password used for each penguin on every login is one time usable and gets changed per every use
  • Auto logs you into PC
  • Very secured private Chat system
  • Supports encryption (encrypted message transfer)
  • 100% compatible with both AS2 and AS3
  • Supports emojis
  • Chats can be moderated, and also have mods with special privillages
  • Have it's own admin control panel
  • Highly stable, extensible, have various of useful plugins like Chat Filter we used in Flippr, but that didn't work out as it converted "hello" to "****o" lol.

 

If you have any doubt, issues, or concerns about this just comment.

While using this chat system or protocol you must give credits to me (dote) or flippr, to use this.

  • Like 3

Share this post


Link to post
Share on other sites

This is fairly easy to setup, I set this up first time attempted and looked like a great system to use, will use it via other projects of mine.

Share this post


Link to post
Share on other sites
9 hours ago, Master said:

Nice topic, but what about do a private moderator/admin chat system?

Pretty simple. Play with openfire admin console, it have many such features. You can create a member grop and special chat room for it.

3 hours ago, Jamie said:

This is fairly easy to setup, I set this up first time attempted and looked like a great system to use, will use it via other projects of mine.

Thanks :)

Share this post


Link to post
Share on other sites

×