Feature Label Area

Friday, 5 June 2015

Tagged under:

Ui Design Inspiration

UX (User Experience) is all those elements and factors linked to the user's interaction with a specific environment or device which generate a positive or negative perception of the merchandise, brand or device.

UX is subjective and focused on use.

The standard definition of UX is "a person's perceptions and responses that result from the use or anticipated usage of an item, system or service".

These factors are related to design and usability, but and to the emotions and feelings generated in the consumer, accessibility, brand trust...

In the event of the internet, the user's experience with the unit is not a matter of concern to web site designers: big hardware companies get the job done of building our machines and computers.

However, web site designers have much to state about the consumer experience that the interfaces and websites that people develop generate: it is just a key element of our work! That's why we're designers!



We can't present most of the UX in one simple post, but here we can give some types of very suggestive, definitely inspiring visual user interfaces. They're what is recognized as Graphic User Interfaces. Each and every day we show you the most effective websites in the world, which offer the most effective user experiences. We will support this post with example images of the very most creative elements we can find.




Monday, 1 June 2015

Tagged under:

web design trends



As technology changes, so do user habits, and as user habits change, so does web design. Curious what web design trends. We note that responsive design is an essential of modern web. The web sites tend to be more interactive with navigation and rich media content.

Among the fastest growing trends in web design may be the ghost button. This style follows in the footsteps of flat UI design where buttons make use of a single color background with a relatively 2-dimensional appearance.


These may be called popular design techniques but from an industry perspective many people refer for them as design trends.

Thursday, 21 May 2015

Tagged under:

How to validate Twitter Bootstrap forms

Bootstrap provides user friendly and powerful mechanism for styling input controls presenting different validation states. Bootstrap includes validation styles for error, warning, and success messages. To utilize, just add the correct class to the surrounding .form-group.

Will there be a bit of good plugin to validate bootstrap forms? Or else, suggest links where I will get code validating them.


There are a lot of options out there:

Example Code :

Use of html 


 <div class="col-lg-4 col-md-4 col-sm-12 col-xs-12">

  <div class="panel panel-primary">

    <div class="panel-heading">Have A Query ? Fill The Form Below & Get A Call From Our Counsellors Now !</div>
 <div class="panel-body">
<form name="form1" id="form1" method="post" class="form-horizontal" action="#" novalidate="novalidate">
    <div class="form-group">
    <label class=" col-md-3 control-label" for="name">Name</label>
    <div class="col-md-8"><input type="text" name="name" id="name" class="form-control"></div>
    </div>
    <div class="form-group">
    <label class="col-md-3 control-label" for="email">E-mail</label>
    <div class="col-md-8"><input type="text" name="email" id="email" class="form-control"></div>
    </div>
    <div class="form-group">
    <label class="col-md-3 control-label" for="mobile">Mobile</label>
    <div class="col-md-8"><input type="text" name="mobile" id="mobile" class="form-control"></div>
    </div>
    <div class="form-group">
    <label class="col-md-3 control-label" for="city">City</label>
    <div class="col-md-8"><input type="text" name="city" id="city" class="form-control"></div>
    </div>
    <div class="form-group">
    <label class="col-md-3 control-label" for="course">Course</label>
    <div class="col-md-8 selectContainer">
    <select name="course" class="form-control">
    <option value="" selected="">----Select Course----</option>
    <option value="Mobile Repairing Course">Mobile Repairing Course</option>
    <option value="Advance Mobile Repairing Course">Advance Mobile Repairing Course</option>
    <option value="Laptop Repairing Course">Laptop Repairing Course</option>
    <option value="Advance Laptop Repairing Course">Advance Laptop Repairing Course</option>
    </select>
    </div>
    </div>
    
    <div class="form-group">
    <div class="col-md-6 col-md-offset-5"><input type="submit" value="Submit" name="btnsend" class="btn btn-primary"></div>
    </div>
    
</form>
    </div>
  </div>
 </div>


Use of css 
  • bootstrap.min.css
  • bootstrapValidator.min.css
Use of js
  • bootstrapValidator.min.js
  • jquery.form.min.js
  • jquery-1.7.1.min.js
Use of img
  • checked.gif
  • error.png
  • valid.png
The output of example will look something like this :




Supported Form Controls in Bootstrap
Bootstrap includes support for several standard form controls as well as new HTML5 input types such as datetime, number, email, url, search, tel, color etc. These example will show you the usages of standard form controls with Bootstrap.



Tagged under:

Extending Form Controls with Bootstrap

Bootstrap includes {some other|various other|several other} useful form components {to make|to create|to produce} your form more attractive.


Creating Prepended and Appended Inputs

{You can add|You can include|You could add} text and icons or buttons before or after any text-based input.
To prepend or append text and icons to {an input|an insight}:
  • Wrap {the text|the writing} or icon {within a|inside a|in just a} element {having the|getting the|obtaining the} class .input-group-addon and {place it|put it|stick it} before or {after the|following the}  element.
  • Wrap {both the|both|the} and text-based  element {within a|inside a|in just a}element and apply the class .input-group on it.

Example Code :

<form>
<div class="row">
<div class="col-xs-4">
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-user"></span></span>
<input type="text" class="form-control" placeholder="Username">
</div>
</div>
<div class="col-xs-4">
<div class="input-group">
<input type="text" class="form-control" placeholder="Amount">
<span class="input-group-addon">.00</span>
</div>
</div>
<div class="col-xs-4">
<div class="input-group">
<span class="input-group-addon">$</span>
<input type="text" class="form-control" placeholder="US Dollar">
<span class="input-group-addon">.00</span>
</div>
</div>
</div>
</form>

The output of example will look something like this :
Bootstrap Prepended and Appended Inputs



Tagged under:

Creating Forms with Bootstrap

HTML structures will be the vital little bit of the website pages, however styling the structure controls physically 1 by 1 utilizing CSS could be a repetitive procedure. Bootstrap significantly disentangles the styling procedure of structure controls like information boxes, select boxes, content ranges, and so on.

Bootstrap provides three different types of form layouts :

  1. Vertical Form (default form layout)
  2. Horizontal Form
  3. Inline Form

Creating Vertical Form Layout

This is actually the default Bootstrap structure design by which styles are linked to shape controls without adding any base class to the component or any expansive changes in the markup. 

The structure controls in this design are stacked with left-adjusted marks on the top.

Example Code :

<form>
<div class="form-group">
<label for="inputEmail">Email</label>
<input type="email" class="form-control" id="inputEmail" placeholder="Email">
</div>
<div class="form-group">
<label for="inputPassword">Password</label>
<input type="password" class="form-control" id="inputPassword" placeholder="Password">
</div>
<div class="checkbox">
<label><input type="checkbox"> Remember me</label>
</div>
<button type="submit" class="btn btn-primary">Login</button>
</form>

Vertical Form Design

Creating Horizontal Form Layout

In horizontal form layout labels are right aligned and floated to left to create them appear on a single line as form controls. The horizontal form layout requires the many markup changes from the default form layout. Steps to achieve this layout are listed below :
  • Add the class .form-horizontal to the element.
  • Wrap labels and form controls in a
  • element and apply the class .form-group.
  • Use Bootstrap's predefined grid classes to align labels and form controls.
  • Add the class .control-label to the element.

Example Code :

<form class="form-horizontal">

<div class="form-group">

<label for="inputEmail" class="control-label col-xs-2">Email</label>

<div class="col-xs-10">

<input type="email" class="form-control" id="inputEmail" placeholder="Email">

</div>

</div>

<div class="form-group">

<label for="inputPassword" class="control-label col-xs-2">Password</label>

<div class="col-xs-10">

<input type="password" class="form-control" id="inputPassword" placeholder="Password">

</div>

</div>

<div class="form-group">

<div class="col-xs-offset-2 col-xs-10">

<div class="checkbox">

<label><input type="checkbox"> Remember me</label>

</div>

</div>

</div>

<div class="form-group">

<div class="col-xs-offset-2 col-xs-10">

<button type="submit" class="btn btn-primary">Login</button>

</div>

</div>

</form>


The output of example will look something like this :

Bootstrap Horizontal Form Layout

Creating Inline Form Layout

Sometimes you might require to position the appropriate execution controls side-by-side to compact the layout. You can certainly do this easily with the addition of the Bootstrap class .form-incline to the element.

Example Code :

<form class="form-inline">

<div class="form-group">

<label class="sr-only" for="inputEmail">Email</label>

<input type="email" class="form-control" id="inputEmail" placeholder="Email">

</div>

<div class="form-group">

<label class="sr-only" for="inputPassword">Password</label>

<input type="password" class="form-control" id="inputPassword" placeholder="Password">

</div>

<div class="checkbox">

<label><input type="checkbox"> Remember me</label>

</div>

<button type="submit" class="btn btn-primary">Login</button>

</form>


The output of example will look something like this :
Bootstrap Inline Form Layout















Saturday, 14 February 2015

Tagged under:

How to Reset a WordPress Password from phpMyAdmin.

Just how to reset your wordPress password from phpMyAdmin is one of the essential things you need to know about because for reasons uknown if your site is hacked, or something different, you are no further able to login to your admin panel using the login information,

and you are incapable of reset the password via email, this process can be very useful. We've helped three users with exactly the same issue therefore we have decided to do this writeup.

To Change Your Password

In the Admin Panel menu, go to USERS

  1. Click on your username in the list to edit
  2. In the Edit User screen, scroll down to the New Password section and type in a new password in the two boxes provided. The strength box will show how good (strong) your password is.
  3. Click the UPDATE PROFILE button
  4. Your new password takes effect immediately.

Through phpMyAdmin

phpMyAdmin at your own risk. If you doubt your power to use it, seek further advice. WordPress isn't responsible for loss in data.



logging into phpMyAdmin and click databases.
  1. A list of databases will appear. Click your WordPress database. 
  2. All the tables in your database will appear. If not, click Structure. 
  3. Look for wp_users. 
  4. Go through the icon for browse. 
  5. Locate your Username under user_login 
  6. Click edit (may look like a pen icon in a few versions of phpMyAdmin
  7. Your user_id will undoubtedly be shown, select Edit 
  8. Close to the user_pass is really a long set of numbers and letters. 
  9. Select and delete these and type in your password. 
  10. Enter the password you want to use. Just type it in normally, but remember, it is case-sensitive. 
  11. In this example, the newest password will undoubtedly be'rabbitseatcarrots' 
  12. Once you've done that, click the dropdown menu indicated, and select MD5 from the menu. 
  13. Check that the password is actually correct, and that MD5 is in the box. 
  14. Click the'Go'button to underneath right. 
  15. Test the newest password on the login screen. When it doesn't work, check that you've followed these instructions exactly.
Tagged under:

How to Fix the Error Establishing a Database Connection in WordPress.?

You enter your website's URL… but what greets you isn't your familiar home page. Instead, it is a blank screen. No matter what link you try, everything's missing, aside from the ominous words:

“Error establishing a database connection.”

The longer your website is down, the more traffic you'll lose. And that might mean lost subscribers, lost customers, and ultimately lost revenue.

But what exactly does that error even mean? And more importantly, how can you fix it and get your website back to normalcy when possible?

In this informative article, we'll review just what the error message means and what could possibly be causing it, and then I'll walk you through some steps to troubleshooting and fixing the problem.

What Does “Error Establishing a Database Connection” Mean?

First, let's have a look at how WordPress works to show your website, and it'll become clear why this error is really devastating.

The WordPress software is written using PHP and MySQL. Why two languages? Because all the info that produces up your website is stored in a MySQL database, and WordPress uses PHP to store and retrieve information from that database.

Generally, every time a page is loaded in your website, it's built on-the-fly. PHP code is employed to access your MySQL database and retrieve every little bit of information needed to generate the page. There is a PHP query to access the post title, another to seize mcdougal name, another to retrieve the publication date, and so on.

Back to your error message: “Error establishing a database connection.” Which means that for reasons uknown the PHP code was unable for connecting with your MySQL database to retrieve the info it takes to build that page.

What Causes This Error?

There are lots of reasoned explanations why your website could be having problems connecting to your database, but they generally fall under three categories :
  1. Your login credentials for your database are wrong. Your database uses separate login credentials (username and password). If those credentials have recently been changed, your website won’t be able to access the database with the old credentials.
  2. Your database is corrupted. Any number of things could cause your WordPress database to become corrupted, from uploading a bad plugin, to lightning strikes to the server (seriously — though luckily that isn’t too common).
  3. The server that hosts your database is down. Your database’s server may be down due to a problem or error on the part of your web hosting company, or you could be experiencing a big traffic spike that your server just couldn’t handle.
So with all these possibilities, how can you narrow down the problem and fix it?

Troubleshooting “Error Establishing a Database Connection

1. Determine where the error is occurring

Is it possible to see your website normally, but get the error when trying to access wp-admin? Or maybe your website is down, but you're obtaining a slightly different error once you attempt to login: “One or more database tables are unavailable. The database may need to be repaired.”
They're signs of database corruption.

WordPress has a built-in way to attempt to repair your database, but you will have allow this feature first. To do so, you will need to access your wp-config.php file, which contains your WordPress installation settings and configuration.

You will find wp-config in the your root WordPress file directory. You are able to access it by logging into your cPanel, selecting File Manager, and navigating to the folder where you installed WordPress.

After you have wp-config open, add this line of code to the underside:


define('WP_ALLOW_REPAIR ', true );


This line will enable one to optimize and repair your database by navigating to www.yourwebsite.com/wp-admin/maint/repair.php (just replace “yourwebsite.com” together with your actual URL).

You need to see the above mentioned screen with two options to repair, or repair and optimize, your database. Feel free to select either; just note that optimizing will take longer.

Please note that database repair page is not secure; anyone can access that URL without having to login. Once you're done repairing your database, be certain to take away the line of code you put into wp-config. This may disable usage of the repair page and prevent anyone else from messing together with your database.

(Just as a side note, you will find different ways available to repair and optimize your WordPress database, including via PHPMyAdmin in cPanel. I wrote a bit about this here: Cleaning Up Your WordPress Database To Optimize Your Website's Performance)

Keep wp-config open for now until you're certain the error is resolved and your website is working again. If you're still getting the exact same error message, you will need wp-config open for the following step.

If this doesn't apply for you, or if it didn't work, proceed to another location step to carry on troubleshooting.

2. Check your database login settings in wp-config

If the above step didn't work or didn't apply for your requirements, then a next thing you can do is have a look at your database settings in your wp-config file.

Wondering how your database login credentials would have suddently stopped working? Things such as switching hosting companies or changing anything about your database name or user information might lead to the error if your wp-config file wasn't updated to the brand new information.

You may still have the wp-config file open from the final step. If not, log into your host's cPanel and open the File Manager. See a directory where you installed WordPress, and locate a file called wp-config.php. Go ahead and open that for editing.

You'll see the login credentials for the database, probably close to the the top of file. It should look something like this:

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */

define( 'DB_NAME', 'database_name_here' );


/** MySQL database username */
define( 'DB_USER', 'username_here' );


/** MySQL database password */

define( 'DB_PASSWORD', 'password_here' );


/** MySQL hostname */
define( 'DB_HOST', 'localhost' );
As you can see, there are four pieces of information WordPress needs to access your database:
  1. The name of the database (“DB_NAME”)
  2. The login username (“DB_USER”)
  3. The login password (“DB_PASSWORD”)
  4. The database host (“DB_HOST”)
If any one of these brilliant values is incorrect, WordPress won't have the ability to hook up to the database.

One method to check in your database outside WordPress is by utilizing PHPMyAdmin, an instrument for accessing and editing MySQL databases. PHPMyAdmin is roofed with most hosting plans, and you will find it in your cPanel dashboard.

Warning: Be careful using PHPMyAdmin, since you'll be dealing directly with your site's database.

Once you've logged directly into PHPMyAdmin, you will dsicover a listing of databases in your server in the left-hand column. Click on the one that matches the name in your wp-config file (it will be the value after DB_NAME, where it says “database_name_here” in the above sample code).

(Don't see any databases? Contact your hosting company, since the whole problem might be a problem with your server.)

After clicking in your database name, you'll see the main screen populate with the names of the tables in your database. To be sure this is the correct database, you will find the table named “wp_options” and click the ‘Browse” option close to it. You must see your website's name, URL, and your other general settings here. So you know whether or not you've the proper database name in your wp-config file. If it's not correct, go ahead and fix it in wp-config.

Now let's check into the username and password.

There are always a few ways to achieve this, more convoluted than others. I'll give you two options.
  1. You can either create a simple .php file to test whether you are able to connect to your database with the credentials in your wp-config file, or
  2. You can just create a new user and password, and update your wp-config file with the new info. You’ll have to do this if #1 fails, so you might just want to skip to this step.
Option 1: Test your existing credentials.

Create a file in your WordPress directory called something like testconnection.php (the name doesn’t matter; just the .php extension). Paste the following code:
<?php
$test Connection = mysql_connect('localhost', 'root', 'password');

if (!$testConnection) {
die('Error: ' . mysql_error());

}
echo 'Database connection working!';

mysql_close($testConnection);
?>
Once you’ve created that file, just navigate to the URL of the file in your browser (e.g. your site.com/testconnection.php). You’ll see either a successful connection message, or an error with more details.
If the username and password isn’t working, we can just create a new one.

Option 2: Create a new database user and password.

We are able to accomplish that utilizing a different tool obtainable in cPanel called “MySQL® Databases.” Go ahead and select that, then scroll down seriously to the heading: MySQL Users: Add New User.” Select a username and strong password, and make note of them for the wp-config file. Click “Create User.” Now scroll down seriously to the heading “Add User To Database,” and choose your username and your WordPress database, and click “Add.” Update your wp-config file with the brand new username and password.

Now your database name, username, and password are all correct. That just leaves DB_HOST.

Generally, this value will soon be “localhost,” but it depends in your host's settings. WordPress has on their website. If your host isn't listed there, you can contact your hosting company to ask what value to use.

3. Still getting the error message? Check with your hosting company

If you've followed the above troubleshooting steps and your website remains down, it is actually a problem in your host's end. Contact your online hosting company's support and give them all the facts of the error and the troubleshooting actions you've taken, and they might have the ability to assist you to determine the reason for the error.

         Share Your Database Connection Error Stories !

Thursday, 22 January 2015

Tagged under:

Embedding Fonts in your Web Site with CSS and @font-face

Learn how to use any font of your choice in your web page. just are the font file on your web server.



Example font Adding Your Website @font-face

CSS Code 
-----------------------------------------------------------------------------
@font-face {
font-family: 'RieslingRegular';
src: url('fonts/riesling.eot');
src: local('Riesling Regular'), local('Riesling'), url('fonts/riesling.ttf') format('truetype');
}

h1 {
  font-family: 'RieslingRegular', Arial, sans-serif;
}

Html code
---------------------------------------------------------------------------
<h1>Apply font on this text.</h1>

Convert The Fonts Link :
http://www.fontsquirrel.com/tools/webfont-generator
https://www.web-font-generator.com/
http://fontface.codeandmore.com/

css - @font-face generator
http://www.fontsquirrel.com