Sunday, November 29, 2009

How to refresh a page using javascript

< a href="javascript:location.reload(true)" >Refresh this page< /a >

How to return a value of a radio button in a group

Use the following function to get the value of the selected radio button in a group.

function checkRadio (frmName, radiobuttonGroupName) {
var radios = document[frmName].elements[radiobuttonGroupName];
for (var i=0; i < radios.length; i++) {
if (radios[i].checked) {
return radios[i].value;
}
}
return false;
}

selected = checkRadio (frmName, radiobuttonGroupName);

How to load values from popup window to parent window

opener.document.getElementById("parenttxtName").value = document.getElementById("popuptxtname").value;

Friday, September 18, 2009

How to refresh a page using Javascript

Use the following method to refresh a page...

<a href="javascript:location.reload(true)">Refresh this page</a>

How to access parent window element in Javascript

Use the following code to fill a parent window element from child window.

opener.document.getElementById("parentname").value = document.getElementById("childname").value;

Tuesday, September 8, 2009

How to install Pligg

1) Download the files form http://www.pligg.com/ and unzip to your folder

2) Rename the following files
a) settings.php.default to settings.php.
b) dbconnect.php.default under libs folder to dbconnect.php

3) Create database with following details
DB_name : db_pligg
DB_user : user_pligg
DB_pass : pass_pligg

4) Copy the files to server and CHMOD 777 the following:

/backup
/templates
/templates_c
/cache
settings.php
/avatars/user_uploaded
/libs/dbconnect.php
CHMOD 655 config.php

5) Point your browser to www.yoursite.com/install in your web browser (Replace www.yoursite.com with the web address where you are installing Pligg). Click proceed to the next step and install Pligg.

Step 1: Fill out your Database Name, Database Username, Database Password, and Database Server (host name) and click Check Settings .
Step 2: Ensure there are no error messages. Click Next.
Step 3: Make sure there are no error messages and you are basically almost done!

6)CHMOD 655 libs/dbconnect.php.

7) Delete your /install directory.

8) Log into your newly installed Pligg as admin by going to yoursite.com/admin_config.php in the browser.

username: god
password: 12345

Click on god Profile at the left , modify button and change your password and optionally set an avatar, enter personal info.

How to install OSCMAX

OSCMAX INSTALLATION DETAILS:

1) Download the zip files from the following URL
http://www.oscmax.com/project/osCMax

2) Unzip the file to your directory http://domain.com/oscmax/

3) Create database
DB-name :db_oscmax
DB_user :user_oscmax
DB_pass : pass_oscmax

4) Point your browser to the following URL
http://yourdomain/oscmax/install/

5) Installation wizard will appear and click "install"

6) Click continue(No changes here keep the check box values enabled);

7) Fill in the database details and click "continue"

8) If database import was successful click "continue"

9) Change the file permission of the following files to 777
../oscmax/includes/configure.php
../oscmax/admin/includes/configure.php

10) Click next to complete installation

How to install Movabletype

1) Download the software from the following link. You will be prompted to
register and login to download the software.
http://www.sixapart.com/movabletype/pricing

2) Unzip and upload the file to online directory public_html/mt

3) Rename the file "mt-config.cgi-original" to "mt-config.cgi"

4) Edit the file and enter the following details. Remove all other sql type
details.

ObjectDriver DBI::mysql
Database db_movabletype
DBUser user_movabletype
DBPassword password
DBHost localhost

5) Change CGIPath to http://www.domainname.com/mt

6) Change StaticWebPath to http://www.domainname.com/mt/mt-static

7) Browse to http://www.domainname.com/mt and click "Log in to Movable Type"

8) Enter Admin details :
user name :admin
email: admin@domainname.com
password : password
forget password question: what is your pets name?(Choose answer)

Click Finish installation to complete.

9) Click the RED links named "Update configuration " to update settings.

On the next appearing window add the following lines:

Site URL : http://www.domainname.com/mt
Site Root : /home/user/public_html/mt

How to install Mediawiki

How to install Mediawiki

Only mediawiki-1.6.10 version supports php 4.0
all other versions work on php 5.0 or higher

1)Download the files from http://www.mediawiki.org/wiki/Download

2)Unzip the files to your folder www.domainname.com/mediawiki

3) Point your browser to www.domainname.com/mediawiki

4) Installation wizard will appear and then click "Please set up the wiki first."

5) Change folder permission for mediawiki/config to 777

6) Enter Site Config data as follows:

Wiki name : MediaWiki
Contact email : support@domainname.com
Admin username: mediawiki
Password: admin
Password confirm: admin

7) Enter Database config values as :

Database type:MySQL
SQL server host: localhost
Database name: db_mediawiki
DB username: user_mediawiki
DB password: password
DB password confirm: password

Click "Install Mediawiki" to start installtion

8) After successfull installation please move config/LocalSettings.php to /mediawiki/LocalSettings.php

9) If you can see the message "Setup has completed, your wiki is configured." installation is complete and remove config directory from server

10) Browse to www.domainname.com/mediawiki to access mediawiki

How to install Drupal

1) Download the file form the following URL
http://drupal.org/download

2) Unzip and copy files to your server

3) Point your browser to drupal directory
For eg : http://www.domainname.com/drupal6/

4) Change file permision of the following folder to 777
sites/default/files

5) Provide databse details

db name : db_drupal6
db user : username
db pass : password

6) Provide admin user details and submit to finish