article

Showing posts with label web-development. Show all posts
Showing posts with label web-development. Show all posts

Wednesday, May 9, 2018

how to enabling mod rewrite in xampp

how to enabling mod rewrite in xampp

1. go to the directory of installation \apache\conf and edit httpd.conf.
2. Find the line which contains
3. #LoadModule rewrite_module modules/mod_rewrite.so
uncomment this(should be):
4. LoadModule rewrite_module modules/mod_rewrite.so
5. Also find AllowOverride None
6. Should be: AllowOverride All

Friday, May 4, 2018

PHP curl not installed - Getting cURL to Work in XAMPP

PHP curl not installed - Getting cURL to Work in XAMPP

1. Go to xampp install directory. xampp\php\php.ini
2. Go to php.ini in php directory.
3. Open php.ini and find curl, uncomment the first find you see. extension=php_curl.dll
4. Save and close file.
5. restart xampp
6. Done

Monday, June 4, 2012

HTML 5 Form

HTML 5 Form

Download
 
 <style>
  *:focus {outline: none;}
  body {font: 14px/21px "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", sans-serif;}
  .html5form ul {
   width:750px;
   list-style-type:none;
   list-style-position:outside;
   margin:0px;
   padding:0px;
  }
  .html5form li{
   padding:12px; 
   border-bottom:1px solid #eee;
   position:relative;
  } 
  .html5form li:first-child, .html5form li:last-child {
   border-bottom:1px solid #777;
  }
  .html5form label {
   width:150px;
   margin-top: 3px;
   display:inline-block;
   float:left;
   padding:3px;
  }
  .html5form input {
   height:20px; 
   width:220px; 
   padding:5px 8px;
  }
  .html5form button {margin-left:156px;}
  /* form element visual styles */
   .html5form input { 
    border:1px solid #aaa;
    box-shadow: 0px 0px 3px #ccc, 0 10px 15px #eee inset;
    border-radius:2px;
    padding-right:30px;
    -moz-transition: padding .25s; 
    -webkit-transition: padding .25s; 
    -o-transition: padding .25s;
    transition: padding .25s;
   }
   .html5form input:focus {
    background: #fff; 
    border:1px solid #555; 
    box-shadow: 0 0 3px #aaa; 
    padding-right:70px;
   }
   /* === HTML5 validation styles === */ 
   .html5form input:required {
    background: #fff url(images/red_asterisk.png) no-repeat 98% center;
   }
   .html5form input:required:valid {
    background: #fff url(images/valid.png) no-repeat 98% center;
    box-shadow: 0 0 5px #5cd053;
    border-color: #28921f;
   }
   .html5form input:focus:invalid {
    background: #fff url(images/invalid.png) no-repeat 98% center;
    box-shadow: 0 0 5px #d45252;
    border-color: #b03535
   }
   /* === Form hints === */
   .form_hint {
    background: #d45252;
    border-radius: 3px 3px 3px 3px;
    color: white;
    margin-left:8px;
    padding: 1px 6px;
    z-index: 999; /* hints stay above all other elements */
    position: absolute; /* allows proper formatting if hint is two lines */
    display: none;
   }
   .form_hint::before {
    content: "\25C0";
    color:#d45252;
    position: absolute;
    top:1px;
    left:-6px;
   }
   .html5form input:focus + .form_hint {display: inline;}
   .html5form input:required:valid + .form_hint {background: #28921f;}
   .html5form input:required:valid + .form_hint::before {color:#28921f;}
   /* === Button Style === */
   button.submit {
    background-color: #68b12f;
    background: -webkit-gradient(linear, left top, left bottom, from(#68b12f), to(#50911e));
    background: -webkit-linear-gradient(top, #68b12f, #50911e);
    background: -moz-linear-gradient(top, #68b12f, #50911e);
    background: -ms-linear-gradient(top, #68b12f, #50911e);
    background: -o-linear-gradient(top, #68b12f, #50911e);
    background: linear-gradient(top, #68b12f, #50911e);
    border: 1px solid #509111;
    border-bottom: 1px solid #5b992b;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    box-shadow: inset 0 1px 0 0 #9fd574;
    -webkit-box-shadow: 0 1px 0 0 #9fd574 inset ;
    -moz-box-shadow: 0 1px 0 0 #9fd574 inset;
    -ms-box-shadow: 0 1px 0 0 #9fd574 inset;
    -o-box-shadow: 0 1px 0 0 #9fd574 inset;
    color: white;
    font-weight: bold;
    padding: 6px 20px;
    text-align: center;
    text-shadow: 0 -1px 0 #396715;
   }
   button.submit:hover {
    opacity:.85;
    cursor: pointer; 
   }
   button.submit:active {
    border: 1px solid #20911e;
    box-shadow: 0 0 10px 5px #356b0b inset; 
    -webkit-box-shadow:0 0 10px 5px #356b0b inset ;
    -moz-box-shadow: 0 0 10px 5px #356b0b inset;
    -ms-box-shadow: 0 0 10px 5px #356b0b inset;
    -o-box-shadow: 0 0 10px 5px #356b0b inset;
    
   }
 </style>
<form class="html5form" action="#" method="post" name="html5form">
    <ul>
  <li>
            <label for="name">Name:</label>
            <input type="text"  placeholder="Ednalan" required />
        </li>
        <li>
            <label for="email">Email:</label>
            <input type="email" name="email" placeholder="ednalan@gmail.com" required />
            <span class="form_hint">Proper format "ednalan@gmail.com"</span>
        </li>
        <li>
         <button class="submit" type="submit">Submit Form</button>
        </li>
    </ul>
</form>

Tuesday, May 10, 2011

xampp phpmyadmin - No activity within 1800 seconds; please log in again

xampp phpmyadmin - No activity within 1800 seconds; please log in again

1.
Find xampp\phpMyAdmin\config.inc.php
2.
find
/* Authentication type and info */

3.
change auth_type cookie to config
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)

Thursday, April 21, 2011

Joomla - add extra fields in joomla registration

Joomla - add extra fields in joomla registration

LIST OF FILES NEED TO EDIT

1. libraries\joomla\database\table\user.php
add two extra fields like phone and website, let’s these fields as optional
put the follow lines before above lines or near line 116

var $params = null;

var $phone = null;
var $website = null;
var $address = null;
/**
* @param database A database connector object
*/
function __construct( &$db )
{
2. add alter your user table
ALTER TABLE jos_users ADD phone varchar(255) DEFAULT '' AFTER password;
ALTER TABLE jos_users ADD website varchar(255) DEFAULT '' AFTER phone;


3. G
o to administrator\components\com_users\views\user\tmpl
open file form.php and put the following lines after line 132 … just add as new row in table




<tr>
<td width="150" class="key">
<label for="phone">
<?php echo JText::_( 'Phone' ); ?>
</label>
</td>
<td>
<input type="text" name="phone" id="phone" class="inputbox" size="40" value="<?php echo $this->user->get('phone'); ?>" />
</td>
</tr>
<tr><td width="150" class="key">
<label for="website">
<?php echo JText::_( 'Website' ); ?>
</label>
</td>
<td>
<input type="text" name="website" id="website" class="inputbox" size="40" value="<?php echo $this->user->get('website'); ?>" />
</td>
</tr>

4. Goto administrator->site->User Manager




















5. front end registration
components\com_user\views\register\tmpl\default.php for edit


<tr>

<td height="40">
<label id="phonemsg" for="phone">
<?php echo JText::_( 'Phone' ); ?>:
</label>
</td>
<td>
<input type="text" name="phone" id="phone" size="40" value="<?php echo $this->escape($this->user->get( 'phone' ));?>" class="inputbox" maxlength="50" /> *
</td>
</tr>
<tr>
<td height="40">
<label id="websitemsg" for="website">
<?php echo JText::_( 'Website' ); ?>:
</label>
</td>
<td>
<input type="text" name="website" id="website" size="40" value="<?php echo $this->escape($this->user->get( 'website' ));?>" class="inputbox" maxlength="50" /> *
</td>
</tr>






Copy that default.php file from components\com_user\views\register\tmpl and now go to your current template folder. copy all the php files from components\com_user\views\register\tmpl to templates\{your custom template name here}\html\com_user\register

Thursday, March 24, 2011

Font preview using Google font API

Font preview using Google font API

A sample of google font api font name Tangerine
Sample

<html>
<head>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Tangerine">
<style>
body {
font-family: 'Tangerine', serif;
font-size: 48px;
text-shadow: 4px 4px 4px #aaa;
}
</style>
</head>
<body>
<h1>http://r-ednalan.blogspot.com/</h1>
</body>


Visit the Google Font Directory

FORM Validators for web developers

1. Live Validation form

LiveValidation is a small open source javascript library for making client-side validation quick, easy, and powerful.

Example Demo

http://livevalidation.com/examples




2. MooTools FormCheck

FormCheck is a class that allows you to perform different tests on form to validate them before submission.


Demo

http://mootools.floor.ch/en/labs/





3. ProtoForm

ProtoForm is an unltra lightweight, unobtrusive cross-browser and very easy to customize form validation + submit with Ajax based on prototype.js framework.

Demo

http://cssrevolt.com/upload/files/protoform/

Monday, February 7, 2011

Draw Charts with Google Visualization API.

Draw Charts with Google Visualization API.

<script type='text/javascript' src='http://www.google.com/jsapi'></script>
<script type="text/javascript">
// Load the Visualization API and the piechart package. Draw Charts with Google Visualization API.
google.load('visualization', '1', {'packages':['piechart']});
// set API loaded.
google.setOnLoadCallback(drawChart);
// draws it.
function drawChart() {
var data = new google.visualization.DataTable();
data.addColumn('string', 'list');
data.addColumn('number', 'Pesentage');
data.addRows(5);
data.setValue(0, 0, 'jQuery');
data.setValue(0, 1, 11);
data.setValue(2, 0, 'PHP');
data.setValue(2, 1,6);
data.setValue(3, 0, 'Java Script');
data.setValue(3, 1, 2);
data.setValue(4, 0, 'Mysql');
data.setValue(4, 1, 7);
var chart = new google.visualization.PieChart(document.getElementById('2'));
chart.draw(data, {width: 400, height: 240, is3D: true, title: 'r-ednalan'});
}
</script>
<div id='2' style="float:left"></div>

Thursday, June 24, 2010

Programming Language For Web Development (video from youtube)

Programming Language For Web Development video (video from youtube)

A good conceptual video about what a programming language is and what you need to know in terms of a web developer.


Saturday, June 12, 2010

History PHP - MYSQL - JQUERY

History PHP - MYSQL - JQUERY



1. PHP

“Rasmus Lerdorf” – The creator of PHP Scripting language.
http://en.wikipedia.org/wiki/Rasmus_Lerdorf
http://lerdorf.com/bio.php

http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html

2. MYSQL

“Michael Widenius” – Founder and original developer of MySQL
http://monty-says.blogspot.com/

3. JQuery

“John Resig” – The creator and lead developer of the jQuery JavaScript library.
http://ejohn.org/about/
http://ejohn.org/blog/

Sunday, May 16, 2010

HTML text editors - Rich Text Editor

HTML text editors - Rich Text Editor

Free Rich Text Editor is a JavaScript WYSIWYG editor.
It can be easily integrate with any platform.
Editor lets you to switch between the design, HTML code & preview modes.

If you want to know more and download the source follow the link

http://www.freerichtexteditor.com/

Demo

http://www.freerichtexteditor.com/index.php?inc=demo/index

http://www.freerichtexteditor.com/download/

Free SEO Tools

Free SEO Tools

Here are some online SEO tools that you can use to check your PageRank, Link Popularity, Search Engine Position, Keyword Density, etc.

Friday, May 14, 2010

Free SEO Tools

Free SEO Tools

Here are some online SEO tools that you can use to check your PageRank, Link Popularity, Search Engine Position, Keyword Density, etc.

Monday, May 3, 2010

JavaScript & AJAX interview questions Part(1)

JavaScript & AJAX interview questions Part(1)

Here are nice collection of basic JavaScript & AJAX interview questions Part(1)
visit here

JavaScript Interview Q/A

JavaScript Interview Q/A

Commonly asked Javascript Interview Questions and Answers here

PHP Interview Questions & Answers

PHP Interview Questions & Answers

Great collection of basic PHP Interview Questions & Answers here

Sunday, May 2, 2010

Cheats Sheets for Designers n Developers

Cheats Sheets for Designers n Developers

If you are a web developers and designers, and you are working on multiple programming languages and different frameworks then you must need cheat sheets to enhance and fast your work.

If you want to know more and download the source follow the link below

http://www.smashingmagazine.com/2009/07/06/html-5-cheat-sheet-pdf/

http://media.smashingmagazine.com/cdn_smash/wp-content/uploads/images/html5-cheat-sheet/preview.gif

Saturday, April 10, 2010

10 ultimate Firefox add-ons for Web Designers

10 ultimate Firefox add-ons for Web Designers

1.
ColorZilla
2. Firebug
3. FastestFox – Browse Faster
4. FireFTP
5. FirePHP
6. FireShot
7. HttpFox
8. MeasureIt
9. Pencil
10. Web Developer

FileZilla

FileZilla

FileZilla is the best free FTP client. (FTP is what you use to upload your files and put your website online).

If you want to know more and download the source follow the link below


http://filezilla-project.org/

Thursday, April 8, 2010

WAMP Server - Windows-based web server

WAMP Server - Windows-based web server

WampServer is an open source WAMP (Windows Apache MySQL and PHP) web server, free to use with a GPL license. must-have web development suite for web developers running any Windows Operating System.

If you want to know more and download the source follow the link below




http://www.wampserver.com/en/

Related Post