Skip to content

Commit

Permalink
prepare version 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kerphi committed Feb 28, 2013
1 parent a830d19 commit 0130be7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions README.md
Expand Up @@ -8,22 +8,22 @@
* A server with:
* php >= 5.3.0 ([Slim framework](https://github.com/codeguy/Slim/blob/master/README.markdown#system-requirements) dependency)
* apache server with mod_rewrite and .htaccess enabled
* write access to the phpfreechat-2.0.5/server/data/ and phpfreechat-2.0.5/server/log/ folder (777 or write permission for the web server)
* write access to the phpfreechat-2.1.0/server/data/ and phpfreechat-2.1.0/server/log/ folder (777 or write permission for the web server)
* No database needed !

## Quick start

Download [phpfreechat-2.0.5.zip](http://www.phpfreechat.net/download) and unzip it in the root folder of your Web server.
Download [phpfreechat-2.1.0.zip](http://www.phpfreechat.net/download) and unzip it in the root folder of your Web server.

JQuery should be included in your html `<head>` before the phpfreechat code:
```html
<script src="/phpfreechat-2.0.5/client/lib/jquery-1.8.2.min.js" type="text/javascript"></script>
<script src="/phpfreechat-2.1.0/client/lib/jquery-1.8.2.min.js" type="text/javascript"></script>
```

Include the phpfreechat plugin in your html `<head>`:
```html
<link rel="stylesheet" type="text/css" href="/phpfreechat-2.0.5/client/themes/default/jquery.phpfreechat.min.css" />
<script src="/phpfreechat-2.0.5/client/jquery.phpfreechat.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="/phpfreechat-2.1.0/client/themes/default/jquery.phpfreechat.min.css" />
<script src="/phpfreechat-2.1.0/client/jquery.phpfreechat.min.js" type="text/javascript"></script>
```

Add this piece of HTML in your `<body>` where you want the chat to be displayed:
Expand All @@ -36,7 +36,7 @@ Add this piece of HTML in your `<body>` where you want the chat to be displayed:
The add this piece of code just after (it will hook the chat on the page):
```html
<script type="text/javascript">
$('#mychat').phpfreechat({ serverUrl: '/phpfreechat-2.0.5/server' });
$('#mychat').phpfreechat({ serverUrl: '/phpfreechat-2.1.0/server' });
</script>
```

Expand All @@ -50,9 +50,9 @@ phpfreechat is released with few themes. You can choose which one you want to us

To select the theme, you only have to change one line in your html `<head>`. To use the `default` theme:
```html
<link rel="stylesheet" type="text/css" href="/phpfreechat-2.0.5/client/themes/default/jquery.phpfreechat.min.css" />
<link rel="stylesheet" type="text/css" href="/phpfreechat-2.1.0/client/themes/default/jquery.phpfreechat.min.css" />
```
or this code for `carbon` theme:
```html
<link rel="stylesheet" type="text/css" href="/phpfreechat-2.0.5/client/themes/carbon/jquery.phpfreechat.min.css" />
<link rel="stylesheet" type="text/css" href="/phpfreechat-2.1.0/client/themes/carbon/jquery.phpfreechat.min.css" />
```
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "phpfreechat",
"version": "2.0.5",
"version": "2.1.0",
"author": "Stéphane Gully <contact@phpfreechat.net>",
"homepage": "http://www.phpfreechat.net",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion server/config.php
@@ -1,7 +1,7 @@
<?php

// phpfreechat version
$GLOBALS['pfc_version'] = '2.0.5';
$GLOBALS['pfc_version'] = '2.1.0';

// This is the time of inactivity to wait before considering a user is disconnected (in milliseconds).
// A user is inactive only if s/he closed his/her chat window. A user with an open chat window is not
Expand Down

0 comments on commit 0130be7

Please sign in to comment.