Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome, Guest. Please login or register.
Did you miss your activation email?

August 19, 2022, 06:04:52 AM

Login with username, password and session length
Members
  • Total Members: 3843
  • Latest: Tricky
Stats
  • Total Posts: 193479
  • Total Topics: 21088
  • Online today: 58
  • Online ever: 1035
  • (November 26, 2020, 04:45:12 AM)
Users Online
Users: 1
Guests: 42
Total: 43

Author Topic: Create Your Own Instant Message Service For Your Site!  (Read 14241 times)

0 Members and 1 Guest are viewing this topic.

alan s

  • Guest
Create Your Own Instant Message Service For Your Site!
« on: August 06, 2006, 02:11:33 PM »
I found a nice little script this morning that enables you to have a free IM service on your website , I cant remember the site i got it off but anyway its probably in the copyright if anyones intrested , attached to the post is the .zip file with all the files you need to install the player + the instructions but here are the instructions anyway , also attached to the post is a free screens of the im service.

Requirements

    *  A Linux or Windows Box installed and working properly.
    * Apache Web Server (http://www.apache.org)
    * PHP version 4.2.x or better (mod_php) Apache module (http://www.php.net)
    * MySQL database server 4.0 or better (http://www.mysql.com)


Installation Instructions

1)     Decompress:  Untar/unzip the package

 

2)     Move:  Copy the contents (including the subdirectories) of php121/ to the desired directory on your web server (e.g. /home/paul/www/php121/)

 

3)     Set up database:  Import the contents of sql/standalone/php121.sql into your MySQL database.  PHPMyAdmin is recommended, but you can also 'source' it using the MySQL console.

 

4)     Edit configuration:  Copy php121config.php-STANDALONE to php121config.php, replacing the existing file.  Edit php121config.php and change all the variables to match your database and website configuration.

If you don't know any of these settings, contact your hosting provider or support department.

 

5)     Set up linking page:  On the page you want to link to PHP121, put this in the <HEAD> section:

 

 

Code: [Select]
<script type="text/javascript">

var newwindow;

function poptastic(url){

newwindow=window.open(url,'name','height=500,width=230,left=20,top=20,toolbar=no,menubar=no,directories=no,location=no,scrollbars=yes,status=no,resizable=yes,fullscreen=no');

if (window.focus) {newwindow.focus()}

}

</script>

 

 

 

6)     Create link:  Create the link to PHP121 on your site.  View php121index.php in a text editor to see an example of how to link to PHP121.

Use code similar to the following to create a nice contact-list sized window:  You need to edit the path to php121im.php if php121im.php is not in the same directory as your webpage that is linking to PHP121.

 

 
Code: [Select]
<a href="javascript:poptastic('php121im.php');">Instant Messenger</a>
 

 

 

7)     Delete sample index:  Delete php121index.php in the php121 directory as this is just a sample to show you how to link to php121 from your site.

 

8)     Create OWNER account:  Create a user account by browsing to the page with the PHP121 link and click on it.  The first user to sign up will be given OWNER privileges.

- OWNERs can give users ADMIN privileges.
- ADMINs cannot edit or delete OWNERs and they cannot give ADMIN privileges to other users.
- In the "Who's online" section, OWNERs are red, ADMINs are green, and USERs are blue.

 

9)     Supporting PHP121:  Go to http://www.php121.com/donate.html to donate what you think is a fair amount for PHP121.  Commercial programs that do the same thing retail for $99 or more!

 

10) Finished:  Install complete.

Live demo : http://theteenzone.net/forum      (bottom left corner )

Test Im Account : User - Test   ,  Pass - Test

Enjoy  8)

iwyen

  • Guest
Re: Create Your Own Instant Message Service For Your Site!
« Reply #1 on: August 08, 2006, 09:36:39 AM »
Hey this looks great! But I alr have X7 Chat installed which integrates with SMF user database so...

Offline IchBin

  • Friends
  • *
  • Posts: 16231
Re: Create Your Own Instant Message Service For Your Site!
« Reply #2 on: August 08, 2006, 10:32:27 AM »
Seems a bit over the top. But a great share anyway. Thanks Alan!

Offline Crip

  • Jesus Inside.
  • Themes
  • *
  • Posts: 4168
  • Theme Support
    • Cripzone
Re: Create Your Own Instant Message Service For Your Site!
« Reply #3 on: August 08, 2006, 10:51:15 AM »
We need .zip, got that one?
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes


alan s

  • Guest
Re: Create Your Own Instant Message Service For Your Site!
« Reply #4 on: August 08, 2006, 11:54:18 AM »
.Zip can be downloaded here crip www.theteenzone.net/IMforyoursite.zip

Offline Crip

  • Jesus Inside.
  • Themes
  • *
  • Posts: 4168
  • Theme Support
    • Cripzone
Re: Create Your Own Instant Message Service For Your Site!
« Reply #5 on: August 08, 2006, 12:04:58 PM »
Thanks Alan..I'll try it out. :)
I have become comfortably numb!

Cripzone | Crip's Free 2.0.2 Themes


Ninja

  • Guest
Re: Create Your Own Instant Message Service For Your Site!
« Reply #6 on: August 21, 2006, 02:30:35 PM »
This chat script is from php121.com

Offline G6Cad

  • Friends
  • *
  • Posts: 12643
    • FamiljeGodis
Re: Create Your Own Instant Message Service For Your Site!
« Reply #7 on: August 21, 2006, 02:33:18 PM »
And ?? Is it copywrited or not free for use ?

Ninja

  • Guest
Re: Create Your Own Instant Message Service For Your Site!
« Reply #8 on: August 21, 2006, 03:15:05 PM »
its free to use, as long as the copyright info stays on the bottom of the chat page

and ur zip is corrupted
« Last Edit: August 21, 2006, 03:32:25 PM by Ninja »

alan s

  • Guest
Re: Create Your Own Instant Message Service For Your Site!
« Reply #9 on: August 21, 2006, 03:18:37 PM »
If it was a pirate copy of the script i wouldnt have posted it up  ;)