Installing CometChat with WordPress

Introduction

This guide will help you through the installation process and get CometChat running on your site.

Installation is very straight forward, only taking about 15 minutes from uploading the files to viewing the CometChat bar on your site.

Before you begin, you will need an FTP client, if you do not have one, some popular solutions include FileZilla (free) or CuteFTP (trial).

You do not need programming knowledge to install CometChat, but a working knowledge of FTP functions is a plus.

This guide assumes that you have successfully downloaded the latest release of CometChat and have the zip file “unzipped” and ready to go. If not, you can download the package from your client area.

The instructions will term the zip file you downloaded as cometchat.zip.

Pre-configuration

For CometChat to work seamlessly with WordPress perform the following changes:

Step 1 – Allow anyone to register

Login to your WordPress Administration and click on the Settings tab.

Check the “Anyone can register” option and set the New User Default Role to Subscriber

Step 2 – Add a login option to your site

Under Appearance tab select the Editor option. Click on the Sidebar (sidebar.php) link in the right navigation and you can add the following code:


<div id="sidebar" role="complementary">
		<ul>

 <li>
    <?php if (is_user_logged_in()){
    echo "<h2>Welcome! </h2>"; ?>

    <ul>
    <li><a href="<?php echo wp_logout_url(get_permalink()); ?>">Logout</a></li>
    </ul>
    <?php } else { ?>

    <form name="loginform" id="login" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method=”post">
    <h2>Account Login</h2>
    <label for="userid">Userid:</label>
    <input type="text" name="log" value='' id="userid" size="15"/>

    <label for="password">Password:</label>
    <input type="password" name="pwd" value="" id="password" size="10"/>
    <input type="submit" name="submit" value="Login" id="enter" />
    <p><?php wp_register(", "); ?>
    <p><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword">Lost your password?</a></p>
    </form>

    <?php } ?>

    </li>

Step 3 – Activate WP-UserOnline plugin

WP-UserOnline plugin can be found at: http://wordpress.org/extend/plugins/wp-useronline

Download and upload to wp-content/plugins folder and activate it using WordPress administration.

Make sure that the WP-UserOnline plugin is active before you proceed

Uploading

At this point, you should have the zip archive cometchat.zip and find a single folder- “cometchat”.

If you don’t know already, find out the folder in which WordPress is installed.

If you access your WordPress site via ‘http://www.domain.com&#8217;, then look for the webroot directory.

The “webroot” directory is usually ‘public_html’ or ‘www’, but this varies from server to server so if you’re unsure, contact your hosting provider.

Using your FTP client, copy the cometchat folder inside your WordPress folder (NOT wp-content/plugins). e.g. http://www.domain.com/cometchat

CHMOD the following file and folder to 777

cometchat/config.php

cometchat/plugins/filetransfer/uploads

Installation

Step 1

You should now run the installer file through your web browser by entering the URL to it into your browser address bar (if you have followed our example, type in http://www.domain.com/cometchat/install.php, naturally substituting ‘domain.com’ for your web address).

Click on the “Click here to see footer code” link and copy all the contents of this new page.

Step 2

Now log-in to your WordPress Administration (usually http://www.domain.com/wp-admin)

Under the Appearance tab, select the Editor option.

Now select the template which has a star next to it i.e. the template in which you want to add CometChat.

Select Header (header.php) from the right navigation.

In the textbox, immediately after the opening head tag add the following:

<head>

The above code will be replaced with:

<head>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>jqcc=jQuery.noConflict(true);</script>

Click on Update File button and select Footer (footer.php) from the right navigation.

Just before the closing body tag, paste the copied text:

</body>

For example, the above code will be replaced with something like: (only change will be src)

<!-- CometChat Footer Code Start -->
<link type="text/css" rel="stylesheet" media="all" href="cometchat/cometchatcss.php" charset="utf-8" />
<script type="text/javascript" src="cometchat/cometchatjs.php" charset="utf-8"></script>
<!-- CometChat Footer Code End -->
</body>

Click on Update File button and you can close administration center.

Now delete install.php file from the cometchat folder.

That’s all! Now log-in to your site and you will be able to see the CometChat bar. For customizing the text, icons, plugins, theme and modules, please refer to other documents.

Thank you for purchasing CometChat!

–>

Introduction

This guide will help you through the installation process and get CometChat running on your site.

Installation is very straight forward, only taking about 15 minutes from uploading the files to viewing the CometChat bar on your site.

Before you begin, you will need an FTP client, if you do not have one, some popular solutions include FileZilla (free) or CuteFTP (trial).

You do not need programming knowledge to install CometChat, but a working knowledge of FTP functions is a plus.

This guide assumes that you have successfully downloaded the latest release of CometChat and have the zip file “unzipped” and ready to go. If not, you can download the package from your client area.

The instructions will term the zip file you downloaded as cometchat.zip.

Pre-configuration

For CometChat to work seamlessly with WordPress perform the following changes:

Step 1 – Allow anyone to register

Login to your WordPress Administration and click on the Settings tab.

Check the “Anyone can register” option and set the New User Default Role to Subscriber

Step 2 – Add a login option to your site

Under Appearance tab select the Editor option. Click on the Sidebar (sidebar.php) link in the right navigation and you can add the following code:


<div id="sidebar" role="complementary">

		<ul>

 <li>
    <?php if (is_user_logged_in()){
    echo "<h2>Welcome! </h2>"; ?>

    <ul>

    <li><a href="<?php echo wp_logout_url(get_permalink()); ?>">Logout</a></li>
    </ul>
    <?php } else { ?>

    <form name="loginform" id="login" action="<?php echo get_settings('siteurl'); ?>/wp-login.php" method=”post">

    <h2>Account Login</h2>
    <label for="userid">Userid:</label>
    <input type="text" name="log" value='' id="userid" size="15"/>

    <label for="password">Password:</label>
    <input type="password" name="pwd" value="" id="password" size="10"/>

    <input type="submit" name="submit" value="Login" id="enter" />
    <p><?php wp_register(", "); ?>

    <p><a href="<?php bloginfo('wpurl'); ?>/wp-login.php?action=lostpassword">Lost your password?</a></p>
    </form>

    <?php } ?>

    </li>

Step 3 – Activate WP-UserOnline plugin

WP-UserOnline plugin can be found at: http://wordpress.org/extend/plugins/wp-useronline

Download and upload to wp-content/plugins folder and activate it using WordPress administration.

Make sure that the WP-UserOnline plugin is active before you proceed

Uploading

At this point, you should have the zip archive cometchat.zip and find a single folder- “cometchat”.

If you don’t know already, find out the folder in which WordPress is installed.

If you access your WordPress site via ‘http://www.domain.com&#8217;, then look for the webroot directory.

The “webroot” directory is usually ‘public_html’ or ‘www’, but this varies from server to server so if you’re unsure, contact your hosting provider.

Using your FTP client, copy the cometchat folder inside your WordPress folder (NOT wp-content/plugins). e.g. http://www.domain.com/cometchat

CHMOD the following file and folder to 777

cometchat/config.php

cometchat/plugins/filetransfer/uploads

Installation

Step 1

You should now run the installer file through your web browser by entering the URL to it into your browser address bar (if you have followed our example, type in http://www.domain.com/cometchat/install.php, naturally substituting ‘domain.com’ for your web address).

Click on the “Click here to see footer code” link and copy all the contents of this new page.

Step 2

Now log-in to your WordPress Administration (usually http://www.domain.com/wp-admin)

Under the Appearance tab, select the Editor option.

Now select the template which has a star next to it i.e. the template in which you want to add CometChat.

Select Header (header.php) from the right navigation.

In the textbox, immediately after the opening head tag add the following:

<head>

The above code will be replaced with:

<head>

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script>jqcc=jQuery.noConflict(true);</script>

Click on Update File button and select Footer (footer.php) from the right navigation.

Just before the closing body tag, paste the copied text:

</body>

For example, the above code will be replaced with something like: (only change will be src)

<!-- CometChat Footer Code Start -->
<link type="text/css" rel="stylesheet" media="all" href="cometchat/cometchatcss.php" charset="utf-8" />

<script type="text/javascript" src="cometchat/cometchatjs.php" charset="utf-8"></script>
<!-- CometChat Footer Code End -->
</body>

Click on Update File button and you can close administration center.

Now delete install.php file from the cometchat folder.

That’s all! Now log-in to your site and you will be able to see the CometChat bar. For customizing the text, icons, plugins, theme and modules, please refer to other documents.

Thank you for purchasing CometChat!

Explore posts in the same categories: install, internet

4 Komentar pada “Installing CometChat with WordPress”

  1. anitha1234 Says:

    Best Software Downloads and Reviews. the most comprehensive source for free-to-trysoftware downloads on the WebBEST 4 DOWNLOADS

  2. Manfred Says:

    Clicked on buy at http://www.cometchat.com paid more than 200 dollars but i don’t understand how to get the software. Can you tell me?

  3. Amir Says:

    Did as explained till the installation triger point. but it returns this …

    Warning: include(/public_html/application/settings/database.php) [function.include]: failed to open stream: No such file or directory in /public_html/cometchat/integration.php on line 20
    Warning: include() [function.include]: Failed opening ‘/public_html/application/settings/database.php’ for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /public_html/cometchat/integration.php on line 20

    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /public_html/cometchat/integration.php:20) in/public_html/cometchat/cometchat_init.php on line 98

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /public_html/cometchat/integration.php:20) in /public_html/cometchat/cometchat_init.php on line 98

    Unable to connect to database. Please check details in configuration file

    any help?


  4. Situs Judi Online

    Installing CometChat with WordPress | Irsukal Punya


Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s


%d blogger menyukai ini: