PDA

View Full Version : php121 - PHP Chatroom


dudeking
March 26th, 2006, 03:43 PM
http://www.php121.com/

I need to put this on my site but have not much of a clue how to install it:D

These are the install instructions

I dont know what a MySQL database is.

PHP121: PHP Instant Messenger (standalone release)
=============================

** These are the installion instructions for fresh installs. **
** If you are

updating from a previous release, please read the UPDATE file **

Base Requirements
-----------------

In order to use PHP121 Standalone Release, make sure your

system or host meets the following:

- 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 (http://www.mysql.com)

Setup of these required packages is beyond the scope of this

document
and if you are unsure you should check with each of the appropriate web
sites for further details.


Installing the Package (10 steps)
------------------

---------------

1.

Untar/unzip the package




2.

Copy the contents (including the subdirectories) of php121/ to the desired directory on your webserver (e.g. /home/paul/www/php121/)




3.

Import the contents of sql/php121.sql into your MySQL database. Phpmyadmin is recommended, but you can also 'source' it using the MySQL console.




4.

Edit php121config.php in the php121 directory of your webserver. Change all the variables to match your database configuration. If you don't know any of

these variables, contact your hosting provider or support department.




5.

IMPORTANT: On the page you want to link to PHP121, put this in the <HEAD> section:

<script type="text/javascript">
var newwindow;
function poptastic(url){
newwindow=window.open

(url,'name','height=500,width=200,left=20,top=20,t oolbar=no,menubar=no,directories=no,location=no,sc rollbars=yes,status=no,resizable=yes,fullscreen=no ');
if

(window.focus) {newwindow.focus()}
}
</SCRIPT>




6.

Link to php121im.php on your site. Use code similar to the following to create a nice contact-list sized window:

<a href="javascript:poptastic

('php121im.php');">Instant Messenger</a>




7.

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




8.

Create a user account by browsing to the PHP121 index.php file in your browser. The first user to sign up will be given OWNER priviledges. OWNERs can give

users ADMIN priviledges. ADMINs cannot edit or delete OWNERs and they cannot give ADMIN priviledges to other users. In the "Who's online" section, OWNERs

are red, ADMINs are green, and USERs are blue.




9.

Go to http://www.php121.com/donate.php to donate what you think is a fair amount for PHP121. Commerical programs that do the same thing retail for $99 or

more!




10.

Install completed!


If you get stuck, confused, or don't even know how to start installing PHP121, please go to http://www.php121.com and use the FORUMS to ask

your question.

You can download smilie PAKs from the PHP121 website.


Making PHP121 use an existing user table
----------------------------------------
If you

want to use an existing user table with usernames, passwords, and other information, then follow these steps in addition to those above:

1. Edit

sql/alter_existing_usertable.sql and change the name of the user table on the first line of code.
For example: Your user table is called

"my_big_user_table", then you want to change:
ALTER TABLE `users` ADD `php_user_chatting` INT( 11 ) DEFAULT '0' NOT NULL ,
to:
ALTER

TABLE `my_big_user_table` ADD `php_user_chatting` INT( 11 ) DEFAULT '0' NOT NULL ,

2. Import the contents of the new sql/alter_existing_usertable.sql into

your MySQL database.

3. Edit php121config.php and alter the settings to match your database. For example, one of the things you will need to change is

$dbf_username to match the name of your username field in your user table.

4. Decide which username to give OWNER priviledges to. Edit this user's database

record and change their php121_level to 3

5. Integration completed.


*************************************
* PHP121 URL: http://www.php121.com *
*************************************

Cheers!

-- Paul Synnott


Any help would be apprecated:D

degsy
March 26th, 2006, 03:45 PM
Ask your host if you have a database.
If not you will have to move hosts.

renegade600
March 26th, 2006, 03:46 PM
who is your host? do they not have a chatroom available for subscribers - alot of them do. Check the control panel/cpanel/vdeck or whatever your host uses for access. Also there should be stuff there for you to create databases

degsy
March 26th, 2006, 03:48 PM
I see that you are on Streamline. What package?

dudeking
March 26th, 2006, 04:13 PM
Home User

dudeking
March 26th, 2006, 04:15 PM
I have to domains with them.
jobsagoodun.ltd.uk - Windows
hexzero.co.uk - Linux

degsy
March 26th, 2006, 04:18 PM
You will have to upgrade the account or change hosts.
http://www.streamline.net/kb_results.php?kbid=151&squestion=mysql&ssection=All&email=&subject=&contact=&message=

dudeking
March 26th, 2006, 04:24 PM
I was just about to spend the £20 and upgrade to Poweruser but it turns out on top of that I have to pay £199 for a database.

Does any one know of any chatrooms that I could add with out a database??

Thanks for all the help:D

degsy
March 26th, 2006, 04:27 PM
The power user account comes with 2 mySQL databases. Where does it say that you have to pay £199?

renegade600
March 26th, 2006, 04:29 PM
you can use cgi chat scripts (http://cgi.resourceindex.com/Programs_and_Scripts/Perl/Chat/) or java script/ (http://www.sitescripts.com/JavaScript/Chat_and_Instant_Messaging/)

you may be able to have it hosted remotely (http://cgi.resourceindex.com/Remotely_Hosted/Chat/)

dudeking
March 26th, 2006, 04:30 PM
On the upgrade screen is says order extras

MS SQL Database

MSSQL is a powerful database engine designed to provide fast access to stored data. MSSQL is very fast, reliable, and easy to use. It enables easy database creation and administration. You can add additional databases to your account at any time. MSSQL is the open-source standard for databases and is ideal for web applications based on our Windows Servers.

I would post a screen print but PSP crashes every time I open it:D

Where does it say you get 2 free?

degsy
March 26th, 2006, 04:32 PM
That is MSSQL, not mySQL.

renegade600
March 26th, 2006, 04:33 PM
it says you get two here (http://www.streamline.net/wh.php)

dudeking
March 26th, 2006, 04:33 PM
That is MSSQL, not mySQL.
Oh...Whats the difference?

dudeking
March 26th, 2006, 04:35 PM
Oh I see now thanks.
Should I upgrade my windows host or the linux one??
Which will run the chat better?

Find it strange that the free trial get a free database n I get none:D

degsy
March 26th, 2006, 04:37 PM
One costs £199, the other is free (for the appropriate package)
http://www.streamline.net/pu.php


MY SQL DATABASE(S):
On this package you get 2 My SQL Databases. MySQL is a powerful database engine designed to provide fast access to stored data. MySQL is very fast, reliable, and easy to use. It enables easy database creation and administration. You can add additional databases to your account at any time.

degsy
March 26th, 2006, 04:39 PM
Should I upgrade my windows host or the linux one??
Which will run the chat better?
Linux usually has better support for non standard functions, extensions, plugins etc.

If the script has no special requirements then it will run the same on either OS.

dudeking
March 26th, 2006, 04:47 PM
Ok thanks Guys.
Ill upgrade hexzero.co.uk.

But...I still don't know how to install the chat room:D

renegade600
March 26th, 2006, 04:51 PM
Ok thanks Guys.
Ill upgrade hexzero.co.uk.

But...I still don't know how to install the chat room:D

I looked at the instructions and it seems to be pretty self explainatory. You can get them here (http://www.cybertechhelp.com/forums/php121-standalone-1.4-INSTALL.txt). Just take them step by stelp and you should have no problems.

dudeking
March 26th, 2006, 04:53 PM
Ok thanks renegade600 I probily will understand it now its just beacuse I didnt have a Database.

If I have any problems after this I will post back.
Thanks again:D:D

dudeking
March 26th, 2006, 05:25 PM
Ill post this here save starting a new thread.

My hosting package says
Custom Error Pages:
Customer Error Pages are fully supported.

How do I do this??

renegade600
March 26th, 2006, 05:37 PM
Ill post this here save starting a new thread.

My hosting package says


How do I do this??

after a quick search in google for creating error page I found this (http://www.outfront.net/tutorials_02/adv_tech/customerrors1.htm)

dudeking
March 26th, 2006, 05:53 PM
Thanks renegade,
Should have my looking good soon:D