Author

Raja sekar

Browsing

Live search in PHP and Mysql using Jquery

Live search in PHP and Mysql using Jquery

This tutorials is to know how to integrate live search in php and MySQL using jquery. Searching is one of the most required feature in web sites and if it will be live searching it will show you fast result on page. In this tutorial we will create a database and a table insert records and start searching in it.

Demo       |

This is a very simple script which has 2 files. One is an HTML (index.php) file with a Search input box and the second is a PHP (do_search.php) file that has a regular MySQL connect(db.php) and a select statement to get the data from database. This script also has a Loading message shown while the data is being pulled from MySQL. Please note that live search might use more resources from your server. It might result in server overload / slowness if your infrastructure is limited.

Step1 : Setup your database and table in MySQL
Before you run this script make sure you have created a database and table in MySQL. Below is the sample sql command to create a database, table, and insert some dummy rows.

--
-- Table structure for table `live_search`
--

CREATE TABLE `live_search` (
  `id` int(10) NOT NULL,
  `name` varchar(255) NOT NULL,
  `email` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `live_search`
--

INSERT INTO `live_search` (`id`, `name`, `email`, `date`) VALUES
(1, 'Raja', 'Raja@developerdesks.com', '2016-08-29 05:34:36'),
(2, 'Ragav', 'Ragav@developerdesks.com', '2016-08-29 05:34:36'),
(3, 'Sangeet kumar', 'sangeet@developerdesks.com', '2016-08-29 05:35:31'),
(4, 'Tharun', 'Tharun@developerdesks.com', '2016-08-29 05:35:31'),
(5, 'Kabi', 'kabi@developerdesks.com', '2016-08-29 05:35:33');

Step 2: Index page for search form. 
Create the live form for searching.

<div class="container">
<h1>Live search using php and mysql using jquery</h1>
	<div class="row">
		<div class="panel panel-default">
			<div class="panel-heading">
				<span>Live Search</span>
			</div>
			<div class="form-group">
				<label for="username">Username :</label>
				<input name="keysearch" value="" placeholder="name" id="keysearch" type="text" class="form-control">
				<span id="loading">Loading...</span>
			</div>
			<div id="result"></div>
		</div>
	</div>
</div>

Step 3: Creating a do search for getting data from database.
Create the mysql query for getting the data from table using like” options.

<?php
include('db.php');
if(isset($_POST['keysearch']))
{
    $search = $_POST['keysearch'];
    $data = mysql_query("SELECT * FROM `live_search` WHERE `name` like '%$search%' order by id LIMIT 5");
    while($row = mysql_fetch_array($data))
    {
		if($data) {
        $username   = $row['name'];
        echo "<div class='show'><img src='' id='search' /><span class='name'> $username </span></div>";
    }
	else
	{ echo "No found results";}
}
}
?>

Step 4: jquery code for get the search value and pass to do_seach page. 
Using the jquery you can get the search word and pass to the next page using variable and post method.

<script>
$(document).ready(function(){
	var req = null;
	$('#keysearch').on('keyup', function(){
		var key = $('#keysearch').val();
		if (key && key.length > 2)
		{
			$('#loading').css('display', 'block');
			if (req)
				req.abort();
			req = $.ajax({
				url : 'do_search.php',
				type : 'POST',
				cache : false,
				data : {
					keysearch : key,
				},
				success : function(data)
				{
					console.log(data)
					if (data)
					{
						$('#loading').css('display', 'none');
						$("#result").html(data).show();
					}
				}
			});
		}
		else
		{
			$('#loading').css('display', 'none');
			$('#result').css('display', 'none');
		}
 
	});
});
</script>

Step 4: Add css code fro your design.

.panel-default{padding: 15px;}
.form-group{margin-top: 15px;}
.panel-heading{background-color: #40A2BE !important; color: #FFFFFF !important;}
#loading{display: none;}
#searchid
{
    width:500px;
    border:solid 1px #000;
    padding:10px;
    font-size:14px;
}
#result
{
    position:absolute;
    width:500px;
    padding:10px;
    display:none;
    margin-top:-1px;
    border-top:0px;
    overflow:hidden;
    border:1px #CCC solid;
    background-color: white;
}
.show{font-size:20px;height: 50px;padding: 5px;}
.show:hover{background:#40A2BE;color:#FFF;cursor:pointer;}
img#search{width:50px; height:40px; float:left; margin-right:6px;}

You can now demo the script and get the live code., That’s it enjoy the code. Please subscribe. 

How to Setup W3 Total Cache to Optimize WordPress Websites.

How to Setup W3 Total Cache to Optimize WordPress Websites

We are going to use w3 total cache to Optimize WordPress websites. By default WordPress is a dynamic CMS (Content Management System). This means that for every visitor request that WordPress has to process, it must first connect to the database to see if the requested page even exists.

Why using the W3 Total Cache plugin ?

It’s free and very effective. The W3 Total Cache plugin has been around for years and is successfully used by millions of websites. However, it can be a little tricky to setup when you start using it, that’s why we propose this simple guide for the Customize theme.

Using W3 Total Cache plugin enables the process of storing data from existing requests to be re-used for subsequent requests.  Caching prevents repeating database request and serving of same information, by storing data that has already been asked for and serves it up instantly.

W3 Total cache will also help you reduce the sizes of your page by  compressing it (HTML, CSS, JavaScript) before it’s actually renders by your browser.

How to Optimize?

One of the simplest WordPress caching plugins is W3 Total Cache plugin and easy to setup in the word press website.

However if you need more advanced caching options such as the ability to serve a static 404 error page the steps below will walk you through installing and configuring the W3 Total Cache plugin for WordPress

Step 1: Hover over Plugins in the left-hand menu, then click Add New.

plugins-add-new

Step 2: In the Search box, type in w3 total cache and click on Search Plugins.

click-search-plugins

Step 3: Under W3 Total Cache click on Install Now.

click-install-now

Step 4: Click Activate Plugin.

click-activate-this-plugin

Step 5: From the left-hand menu, you should now have a new Performance section, hover over this and click on General Settings.performance-general-settings

Step 6: Enable the options which you want to have the cache.

These would be:

Page Cache

w3tc-setting-page-cache

Minify

w3tc-setting-minify

Database Cache

w3tc-setting-database-cache

Object Cache

w3tc-setting-object-cache

Step 7: Hover over Performance again in the left-hand menu, and click on Page Cache.

performance-page-cache

Step 8: Ensure that these options have a check mark beside them, then click on Save all settings:

Cache home page

Cache feeds: site, categories, tags, comments

Cache 404 (not found) pages

Cache requests only for example.com host name

Don’t cache pages for logged in users

performance-page-cache-save-all

Finally to confirm that you’ve setup everything correctly, in your web-browser open up your site and hit (Ctrl-U), or go to View -> Page source to view the source of the page. Scroll to the very bottom of the page and you should see the W3 Total Cache banner letting you know the page has been optimized.

w3tc-confirm-page-source

 

Results With Google PageSpeed Insight

WordPress with W3 Total Cache

file-ojnmmmyqpt

 

 

20 Classic Sidebar Menu Layout Design with Examples

20 Classic Sidebar Menu Layout Design with Examples

There is many sidebar menu layout designs there. but the more classic designs attract the clients and customers. The sidebar menu was most common back in the early days of web design, but these days we’re starting to see designers ditch the horizontal navigation bar in favour of the vertical list once again. The sidebar menu seems to be coming back into fashion once again after it was left behind for horizontal navigation bars.Today’s web design showcase features 20 sites that all feature modern examples of the classic sidebar menu layout.

Design Council

20

 

 

 

 

 

 

2Creative

19

 

 

 

 

 

 

PFD

18

 

 

 

 

 

 

TriplAgent

17

 

 

 

 

 

 

Kick Point

16

 

 

 

 

 

 

Broken Twill

15

 

 

 

 

 

 

Drawtoclick

14

 

 

 

 

 

 

Gareth Emery

13

 

 

 

 

 

 

Sculpt Communications

12

 

 

 

 

 

 

Georgina Bousia

11

 

 

 

 

 

 

ZINDHAI

10

 

 

 

 

 

 

PUSH Collective

9

 

 

 

 

 

 

The Conference by Media Evolution 2014

8

 

 

 

 

 

 

Q Ideas

7

 

 

 

 

 

 

Niche

6

 

 

 

 

 

 

FLIPP

5

 

 

 

 

 

 

Hyperakt

4

 

 

 

 

 

 

Electrik Company

3

 

 

 

 

 

 

Wallmob

2

 

 

 

 

 

 

Mammoth Media

1

 

 

 

 

 

 

 

Creating a Side Menu Floating Using jQuery and CSS

Creating a Side Menu Floating Using jQuery and CSS

For this tutorials, We are try to create a Left Side Menu Floating Using jQuery and CSS. It means we are going to fixed the side menu while scroll the page. For the long page with contains many paragraph, readers difficult to drag up and click the next articles . so wen need to scrool the side menu it is the easy way to client for select next articles. That why we are going to do this articles

So here we go Creating a Side Menu Floating Using jQuery and CSS
Demo       |

Step 1 – HTML

  <div id="page-wrap">
	
	
		<div id="main">

		  <p>Scroll down and watch the sidebar on the right follow.</p>
		
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>		
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		
		</div>
		
		<div id="sidebar">
				
		  	<ul>
			    <li><a href="https://www.developerdesks.com/multi-select-filter-option-for-mysql-data-using-ajax/1192">Multi select filter</a></li>
			    <li><a href="https://www.developerdesks.com/file-upload-with-progress-bar-using-ajax/1647">File upload using ajax</a></li>
			    <li><a href="https://www.developerdesks.com/simple-image-overlay-title-hover-effects/1820">Image Overlay Effects css3</a></li>
			    <li><a href="https://www.developerdesks.com/30-page-preload-image-style-css/1830">30 Page Preloading</a></li>
			    <li><a href="https://www.developerdesks.com/how-to-speed-up-your-website-in-easy-way/1838">Speed Up Your Website</a></li>
			</ul>
		
		</div>
	
	</div>

Step 2 – CSS

* { margin: 0; padding: 0; }
        body { font: 14px/1.4 Georgia, serif; }
        #page-wrap { width: 600px; margin: 15px auto; }
        p { margin: 0 0 15px 0; }
        p:first-child { background: #fffcde; padding: 10px; }
        #sidebar ul { background: #eee; padding: 10px; }
        li { margin: 0 0 0 20px; }
        #main { width: 390px; float: left; }
        #sidebar { width: 190px; float: right; }

using the css, you can make scroll the left side menu.

Step 2 – jquery

<script type="text/javascript">
        $(function() {
            var offset = $("#sidebar").offset();
            var topPadding = 15;
            $(window).scroll(function() {
                if ($(window).scrollTop() > offset.top) {
                    $("#sidebar").stop().animate({
                        marginTop: $(window).scrollTop() - offset.top + topPadding
                    });
                } else {
                    $("#sidebar").stop().animate({
                        marginTop: 0
                    });
                };
            });
        });
    </script>

This above jquery is used to fixed the left side bar and make the left side menu scroll. This is simple code and enjoy it.

Creating a Side Menu Floating Using CSS only

Creating a Side Menu Floating Using  CSS only

For this tutorials, We are try to create a Left Side Menu Floating Using CSS only. It means we are going to fixed the side menu while scroll the page. For the long page with contains many paragraph, readers difficult to drag up and click the next articles . so wen need to scrool the side menu it is the easy way to client for select next articles. That why we are going to do this articles.

So here we go Creating a Side Menu Floating Using  CSS only
Demo       |

Step 1 – HTML

  <div id="page-wrap">
	
	
		<div id="main">

		  <p>Scroll down and watch the sidebar on the right follow.</p>
		
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>		
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo. Quisque sit amet est et sapien ullamcorper pharetra. Vestibulum erat wisi, condimentum sed, commodo vitae, ornare sit amet, wisi. Aenean fermentum, elit eget tincidunt condimentum, eros ipsum rutrum orci, sagittis tempus lacus enim ac dui. Donec non enim in turpis pulvinar facilisis. Ut felis. Praesent dapibus, neque id cursus faucibus, tortor neque egestas augue, eu vulputate magna eros eu erat. Aliquam erat volutpat. Nam dui mi, tincidunt quis, accumsan porttitor, facilisis luctus, metus</p>
		
		</div>
		
		<div id="sidebar">
				
		  	<ul>
			    <li><a href="https://www.developerdesks.com/multi-select-filter-option-for-mysql-data-using-ajax/1192">Multi select filter</a></li>
			    <li><a href="https://www.developerdesks.com/file-upload-with-progress-bar-using-ajax/1647">File upload using ajax</a></li>
			    <li><a href="https://www.developerdesks.com/simple-image-overlay-title-hover-effects/1820">Image Overlay Effects css3</a></li>
			    <li><a href="https://www.developerdesks.com/30-page-preload-image-style-css/1830">30 Page Preloading</a></li>
			    <li><a href="https://www.developerdesks.com/how-to-speed-up-your-website-in-easy-way/1838">Speed Up Your Website</a></li>
			</ul>
		
		</div>
	
	</div>

Step 2 – CSS

* { margin: 0; padding: 0; }
 body { font: 14px/1.4 Georgia, serif; }
 #page-wrap { width: 600px; margin: 15px auto; position: relative; }
 p { margin: 0 0 15px 0; }
 p:first-child { background: #fffcde; padding: 10px; }
 #sidebar ul { background: #eee; padding: 10px; }
 li { margin: 0 0 0 20px; }
 #main { width: 390px; float: left; }
 #sidebar { width: 190px; position: fixed; left: 50%; top: 90px; margin: 0 0 0 110px; }

using the css “position fixed & top”, you can make scroll the left side menu.

This is simple code and enjoy it.

How to use Reliance Jio sim on 3g mobile – 100% Working

How to use Reliance Jio sim on 3g mobile – 100% Working

First you need an activated jio sim then only you can follow the below tricks. Here is the complete process of how to activate jio sim in any mobile. This article we have given every activation problem solution. So after following the below steps you didn’t any jio signal that means trick is working. You need to know few steps to enable jio sim network, Details are mentioned in this article.

Method 1: Mediatek Processor Only

Before start using this method , check your mobile device specs whether it has mediatek chipset or not. Android version 4.4 will be more preferred i.e Kitkat version. Guys please check your android version, if that didn’t work try restarting your mobile 1-2 times by clearing cache. Incase if you have any doubts comment below, I will help you out.

Checking Device for Mediatek or Qualcomn Processor:

  1. First Download CPU Z app from Playstore: Click Here
  2. Install and open this app.
  3. Wait while it retrieves your device information.
  4. Within few seconds you will see all your device information on the screen.
  5. If your device is using Mediatek Chipset then it will reflect with the Logo of Mediatek Chipset on the screen.

Suggestion: You need to activate your sim before going to do this process, if you jio sim isn’t activated then check out the process from this article.

  • First Download & Install MTK Engineering Mode app in your 3G mobile device.
    Download from here
  • This Application will allow you to run an advanced Setup from the Engineering Mode Menu of MTK phones, which is also called SERVICE MODE
    Note This: Use this secret menu very carefully. In case if you don’t know on what you are doing then just stop it or don’t do it!!
  • Open the installed app, or dail your mobile device specific code for Engineering Mode
  • Click on the MTK Settings and Select Preferred Network Option.
  • Now you can Select 4G LTE/WCDMA/GSM as network mode and you can save it and turn it off and on your mobile device
  • Once you done the above steps, Shutdown the device.
  • Insert your Reliance Jio 4G sim in 1st Slot and keep the 2nd Slot empty.
  • Switch on the device and then you will see jio sim network.

If you got other device or above method isn’t working go with this process for Reliance Jio 4G Sim in 3G Phone trick.

Method 2: For Moto G and Moto E Users Tested on 1st Generation.

Latest news as so many people didn’t understood this step so I am here to show you the 100% working video proof for Moto G users, this is tested on 1st and 2nd generation. Just follow the steps carefully if you have any doubts feel free to ask me in the comments.

  • First visit the Dial-pad, and type this number *#*#4636#*#*
  • Then you will see one page with Testing, click on Phone Information
    jio-4g-sim-in-3g-phone
  • Scroll down till you find the Set Preferred Network Type drop down menu, click on
    reliance jio-sim-on-3g
  • Select the LTE/GSM auto (PRL) option and close it

jio-4g-sim-card-in-3g

  • Switch off your mobile put Jio Sim in slot 1 and keep the second slot empty.
  • Switch on now then you will see Jio 4G signal in your mobile

Let me know in the comments if you got any better tricks, or if this didn’t work. I will surely help you out. These are the most working tricks on Reliance Jio 4G sim in 3G phones.

How to Create Basic Slider Using only Css

There is a lot of slider over-here. We can make slider using jquery, Css, JavaScript and also using WordPress plugin. If we create slider using jquery and JavaScript we have to include library functions and also script. It may casue our website slow the loading speed. So we can a make slider using css in easy way. Its is reduce website weight.

So here we are going to learn how to create basic slider using only css

Step 1 – HTML

<div id="images">
  <img id="image1" src="https://www.developerdesks.com/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg" />
  <img id="image2" src="https://www.developerdesks.com/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg" />
  <img id="image3" src="https://www.developerdesks.com/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg" />
  <img id="image4" src="https://www.developerdesks.com/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg" />
</div>
<div id="slider">
  <a href="#image1">1</a>
  <a href="#image2">2</a>
  <a href="#image3">3</a>
  <a href="#image4">4</a>
</div>

Step 2 – CSS

body {
  text-align: center;
}

#images {
  width: 400px;
  height: 250px;
  overflow: hidden;
  position: relative;
  margin: 20px auto;
}

#images img {
  width: 400px;
  height: 250px;
  position: absolute;
  top: 0;
  left: -400px;
  z-index: 1;
  opacity: 0;
  transition: all linear 500ms;
  -o-transition: all linear 500ms;
  -moz-transition: all linear 500ms;
  -webkit-transition: all linear 500ms;
}

#images img:target {
  left: 0;
  z-index: 9;
  opacity: 1;
}

#images img:first-child {
  left: 0;
  opacity: 1;
}

#slider a {
  text-decoration: none;
  background: #E3F1FA;
  border: 1px solid #C6E4F2;
  padding: 4px 6px;
  color: #222;
}

#slider a:hover {
  background: #C6E4F2;
}

This is code. have a fun

How To Speed Up Your Website in Easy Way

How To Speed Up Your Website in Easy Way

Recent times everybody have a website or own blog and they knows speed of the website matters a lot in the today’s world. Speed is a main quality to maintain the services and standards.  Every client want to load their page quickly and nobody wants to wait too much time for loading, this is the first and best impression for the website over the client. so it is important to ensure you that in no way the visitors will leave your sight with any reason.  In this post, I am going to show you how effectively you can improve your WordPress site loading speed and also with this you can improve the performance.

Select a Good Hosting provider

Your choice of web hosting provider mainly affects your webpage speed. A good web host is the establishment where your site runs, it’s the first angle be tended to when taking a shot at improving webpage speed (regardless of the fact that not a WordPress powered website).

There are number of hosting companies out there, it is a highly competitive market and there is worth in shopping around. So take a short survey before choosing the host or you can also take the helps from the web experts. If not you can simply check out the reviews before selecting the host for your website.

Using a CDN

A Content Delivery Network or Content Distribution Network (CDN) is a system of distributed servers that deliver the web pages and other web resources to the user those based on his or her geographical location.

A CDN usually copies all the static files such as CSS, JavaScript, and media files etc. in use on your website and delivers them to users as fast as possible.

Caching

Caching is the temporary storage of content such as pages, images and any other files that has used to deliver your page. All this content saved on the visitor’s local drive as a cache, so that whenever they requested again by the same visitors, they delivered much faster. Caching also happens on the server. It is basically a technical area, but there are several popular WordPress plugins that you to configure and manage caching very easily. The best plugins for this purpose are W3 Total Cache and WP Super Cache.

Caching means to the cache memory that you have studied in your school or college time. It is short memory that stores in the every individual system’s memory.

Minify CSS and JavaScript Files

The process of ‘minifying’ your CSS and JavaScript files compresses the original files to the smallest possible sizes, thereby improving the speed at which the browser retrieves the files.

YUI Compressor will come in convenient way if you prefer a manual approach to minifying your site CSS and JavaScript files, or you can go for WP Minify which handles the work with an automated approach. Some caching plugins also offers minimization as a feature of them.

Compressing Images

Aside from the way that large image files contribute extraordinarily to the drowsiness of a WordPress site, they additionally expend transmission capacity as well. Images are a decent contender for improvement.

Using the free WPMU DEV WordPress Smush API, the WP Smush plugin will help you to reduce the size of these images without compromising their quality. I had used this plugin and found it very amazing that how much it reduces the image sizes. Small size of images is very good for increasing the loading speed of your website.

Compressing Site

In basic terms, site compression is similar to transforming your whole site into a ZIP archive. Also, when any of the pages of the site is asked for, a client’s browser acts like WinRAR and unzips the archive and afterward demonstrate the content. Despite the fact that this sounds like an additional work and would back things off, trust me, it doesn’t.

Even though the W3 Total Cache is very popular for the caching, it can also be used in the site compression. You can enable this feature by going to:

Admin page > Performance > Browser Cache > Enable HTTP (gzip) Compression

Optimizing Your Database

WordPress usually auto saves almost everything. This includes the unwanted revisions, track backs, pingbacks, trashed items, unapproved comments, or comments marked as spam, etc.

Just your hard drive become disintegrated, your WordPress database can also suffer from the similar problem. However, you can also use the WP Optimize plugin to optimize your database or WP DB Manager which enables you to optimize your database and as well as schedule dates for the regular database optimization.

Choosing the Right Plugin

Installing a great deal of plugins can include an enormous measure of garbage to your site and site files. There’s no reason for installing or keeping plugins you don’t generally require. Delete the unused plugins or extra plugins from your admin panel.

The best approach is to audit your WordPress Plugins, keeping the ones that are critical to the running of your site and remove the ones that are not. Collecting the plugins more and more is just like collecting the garbage and nothing else. So always try to keep the data or the plugins that you really need or want.

Disabling Trackbacks and Pingbacks

By default, every time another blog mentions you that your site gets be notified. These is called the pingbacks and trackbacks. You can also turn off this feature in WordPress here:

Admin page > settings > discussion and then uncheck the first two checkboxes.

Turning this WordPress feature will not harm your website. So doesn’t worry about this just do it if you want?

Choosing a Good Theme or Theme Framework

While some of the WordPress themes are extremely fast and well coded and on the other hand some are exactly opposite.

When choosing the theme, take a note of the load speed of the theme’s demo page, this will give you an idea of the impact that the theme would be adding to your site load speed.

Optimizing the Structure of Your Homepage

Indicating post portions and minimising the quantity of widgets and posts in a page is an excellent approach to keep your homepage optimised.

Not only doing this will help your site loading speed, it also improves your overall user experience. As I told you above you only got one chance for making a first impression. Try to do it best as much as you can.

Enabling Keep Alive

HTTP Keep Alive is the idea of using the single Transmission Control Protocol (TCP) connection to send and receive multiple HTTP requests, instead of opening a new connection for each request.

Your web host might already have these sorts of setting enabled so check with them first, but if you have a typical hosting account then you can simply copy the line of the code below into your .htaccess file to enable keep alive.

“Header set Connection keep-alive”

Conclusion

Using this concretion u make the website and speed and optimised websites. keep website very light and easy use loading. don’t dump the more widgets use some short code for some functionality

30 Page Preloading Image Style in Css

30 Page Preloading Image Style in Css

In every website we have seen an image preloader in their websites. There is a lot of images we can make as a page preloaded image. Here we are going to make 30 preloaded images using css. It’s very simple to make preloader in our website. We used jQuery for hiding the loading images in this website. You can hide loading image when click the website.

The animations are very easy to customize since they made out of just CSS, you will have to change jQuery code so that it fades out the loading screen once the content loads. I will explain to you how the first example works.

Demo       |

Step 1: HTML

<div id="loading">
<div id="loading-center">
<div id="loading-center-absolute">
<div class="object" id="object_one"></div>
<div class="object" id="object_two"></div>
<div class="object" id="object_three"></div>
<div class="object" id="object_four"></div>
<div class="object" id="object_five"></div>
<div class="object" id="object_six"></div>
<div class="object" id="object_seven"></div>
<div class="object" id="object_eight"></div>

</div>
</div>
 
</div>

This is the loading functionality

<div id="wrapper">
<div id="wrapper-center">
<h1>welcome to home page </h1>
</div>
</div>

and you can add inner pages with your own content

Step 2: CSS
we have to create a fixed div element that can float above and center spot that always will remain centered.

#loading{
	background-color: #f0c600;
	height: 100%;
	width: 100%;
	position: fixed;
	z-index: 1;
	margin-top: 0px;
	top: 0px;
}
#loading-center{
	width: 100%;
	height: 100%;
	position: relative;
	}
#loading-center-absolute {
	position: absolute;
	left: 50%;
	top: 50%;
	height: 150px;
	width: 150px;
	margin-top: -75px;
	margin-left: -75px;
    -moz-border-radius: 50% 50% 50% 50%;
	-webkit-border-radius: 50% 50% 50% 50%;
	border-radius: 50% 50% 50% 50%;

}
.object{
	width: 20px;
	height: 20px;
	background-color: #FFF;
	position: absolute;
	-moz-border-radius: 50% 50% 50% 50%;
	-webkit-border-radius: 50% 50% 50% 50%;
	border-radius: 50% 50% 50% 50%;
	-webkit-animation: animate 0.8s infinite;
	animation: animate 0.8s infinite;
	}


#object_one {
	top: 19px;
	left: 19px;	

	}
#object_two {
	top: 0px;
	left: 65px; 
	-webkit-animation-delay: 0.1s; 
    animation-delay: 0.1s;

	}
#object_three {
	top: 19px;
	left: 111px; 	
	-webkit-animation-delay: 0.2s; 
    animation-delay: 0.2s; 

	}
#object_four {
	top: 65px;
	left: 130px; 
	-webkit-animation-delay: 0.3s; 
    animation-delay: 0.3s; 
}
#object_five {
	top: 111px;
	left: 111px; 
	-webkit-animation-delay: 0.4s; 
    animation-delay: 0.4s; 
}
#object_six {
	top: 130px;
	left: 65px;
	-webkit-animation-delay: 0.5s; 
    animation-delay: 0.5s; 
}
#object_seven {
	top: 111px;
	left: 19px;
	-webkit-animation-delay: 0.6s; 
    animation-delay: 0.6s; 
}
#object_eight {
	top: 65px;
	left: 0px;
	 -webkit-animation-delay: 0.7s; 
    animation-delay: 0.7s; 
}




@-webkit-keyframes animate {
 
  25% {
	-ms-transform: scale(1.5); 
   	-webkit-transform: scale(1.5);   
    transform: scale(1.5);  
	  }


  75% {
	-ms-transform: scale(0); 
   	-webkit-transform: scale(0);  
    transform: scale(0);  
	  }


}

@keyframes animate {
  50% {
	-ms-transform: scale(1.5,1.5); 
   	-webkit-transform: scale(1.5,1.5); 
    transform: scale(1.5,1.5); 
	  }
 
  100% {
	-ms-transform: scale(1,1); 
   	-webkit-transform: scale(1,1); 
    transform: scale(1,1); 
	  }
  
}

You will notice that i used keyframe twice ‘@-webkit-keyframes’ and ‘@keyframes animate’ first is for webkit based browsers second one is for internet explorer.
Step 3: Jquery

This is just used for on-click to hide loading images

$(window).load(function() {
	$("#loading-center").click(function() {
	$("#loading").fadeOut(500);
	})		
});

Simple Image Overlay Title Hover Effects in css3

Simple Image Overlay Title Hover Effects in css3

In this tutorial, we are going to create a basic image overlay title hover effects with CSS3. When we will hover the image its need to transition and showing the content or title or icon of the image.

In old days, a small curse over trick make people to click the images and show the description and its tool lot of coding, But nowadays we can make people just hover the images and read the description easy way using css3 transition, we want smooth transition and make it attractive for users. its look more presence for your websites.

Next File Upload With Progress Bar

Step 1

Create a Html code

<div class="container">
  <h3 class="title">Text fadeIn bottom</h3>
  <div class="content">
    <a href="https://unsplash.com/photos/HkTMcmlMOUQ" target="_blank">
      <div class="content-overlay"></div>
      <img class="content-image" src="/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg">
      <div class="content-details fadeIn-bottom">
        <h3 class="content-title">This is a title</h3>
        <p class="content-text">This is a short description</p>
      </div>
    </a>
  </div>
</div>

<div class="container">
  <h3 class="title">Text fadeIn top</h3>
  <div class="content">
    <a href="https://unsplash.com/photos/HkTMcmlMOUQ" target="_blank">
      <div class="content-overlay"></div>
      <img class="content-image" src="/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg">
      <div class="content-details fadeIn-top">
        <h3>This is a title</h3>
        <p>This is a short description</p>
      </div>
    </a>
  </div>
</div>

<div class="container">
  <h3 class="title">Text fadeIn left</h3>
  <div class="content">
    <a href="https://unsplash.com/photos/HkTMcmlMOUQ" target="_blank">
      <div class="content-overlay"></div>
      <img class="content-image" src="/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg">
      <div class="content-details fadeIn-left">
        <h3>This is a title</h3>
        <p>This is a short description</p>
      </div>
    </a>
  </div>
</div>

<div class="container">
  <h3 class="title">Text fadeIn right</h3>
  <div class="content">
    <a href="https://unsplash.com/photos/HkTMcmlMOUQ" target="_blank">
      <div class="content-overlay"></div>
      <img class="content-image" src="/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg">
      <div class="content-details fadeIn-right">
        <h3>This is a title</h3>
        <p>This is a short description</p>
      </div>
    </a>
  </div>
</div>

<div class="container">
  <h3 class="title">Text fadeIn top left</h3>
  <div class="content">
    <a href="https://unsplash.com/photos/HkTMcmlMOUQ" target="_blank">
      <div class="content-overlay"></div>
      <img class="content-image" src="/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg">
      <div class="content-details fadeIn-top fadeIn-left">
        <h3>This is a title</h3>
        <p>This is a short description</p>
      </div>
    </a>
  </div>
</div>

<div class="container">
  <h3 class="title">Text fadeIn top right</h3>
  <div class="content">
    <a href="https://unsplash.com/photos/HkTMcmlMOUQ" target="_blank">
      <div class="content-overlay"></div>
      <img class="content-image" src="/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg">
      <div class="content-details fadeIn-top fadeIn-right">
        <h3>This is a title</h3>
        <p>This is a short description</p>
      </div>
    </a>
  </div>
</div>

<div class="container">
  <h3 class="title">Text fadeIn bottom left</h3>
  <div class="content">
    <a href="https://unsplash.com/photos/HkTMcmlMOUQ" target="_blank">
      <div class="content-overlay"></div>
      <img class="content-image" src="/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg">
      <div class="content-details fadeIn-bottom fadeIn-left">
        <h3>This is a title</h3>
        <p>This is a short description</p>
      </div>
    </a>
  </div>
</div>

<div class="container">
  <h3 class="title">Text fadeIn bottom right</h3>
  <div class="content">
    <a href="https://unsplash.com/photos/HkTMcmlMOUQ" target="_blank">
      <div class="content-overlay"></div>
      <img class="content-image" src="/wp-content/uploads/2016/06/Simple-Image-Overlay.jpg">
      <div class="content-details fadeIn-bottom fadeIn-right">
        <h3>This is a title</h3>
        <p>This is a short description</p>
      </div>
    </a>
  </div>
</div>

 

Step 2

Add css3 transition

body{
  font-family: 'Raleway', sans-serif;
}

.main-title{
  color: #1d1d1d;
  text-align: center;
  text-transform: capitalize;
  padding: 0.7em 0;
}

.container{
  padding: 2em 0;
  float: left;
  width: 50%;
}

.container .title{
  color: #333;
  text-align: center;
}

.content {
  position: relative;
  width: 90%;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
}

.content .content-overlay {
  background: rgba(0,0,0,0.7);
  position: absolute;
  height: 99%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.content:hover .content-overlay{
  opacity: 1;
}

.content-image{
  width: 100%;
}

.content-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.content:hover .content-details{
  top: 50%;
  left: 50%;
  opacity: 1;
}

.content-details h3{
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.content-details p{
  color: #fff;
  font-size: 0.8em;
}

.fadeIn-bottom{
  top: 80%;
}

.fadeIn-top{
  top: 20%;
}

.fadeIn-left{
  left: 20%;
}

.fadeIn-right{
  left: 80%;
}body{
  font-family: 'Raleway', sans-serif;
}

.main-title{
  color: #1d1d1d;
  text-align: center;
  text-transform: capitalize;
  padding: 0.7em 0;
}

.container{
  padding: 2em 0;
  float: left;
  width: 50%;
}

.container .title{
  color: #333;
  text-align: center;
}

.content {
  position: relative;
  width: 90%;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
}

.content .content-overlay {
  background: rgba(0,0,0,0.7);
  position: absolute;
  height: 99%;
  width: 100%;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  -webkit-transition: all 0.4s ease-in-out 0s;
  -moz-transition: all 0.4s ease-in-out 0s;
  transition: all 0.4s ease-in-out 0s;
}

.content:hover .content-overlay{
  opacity: 1;
}

.content-image{
  width: 100%;
}

.content-details {
  position: absolute;
  text-align: center;
  padding-left: 1em;
  padding-right: 1em;
  width: 100%;
  top: 50%;
  left: 50%;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  -moz-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.content:hover .content-details{
  top: 50%;
  left: 50%;
  opacity: 1;
}

.content-details h3{
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

.content-details p{
  color: #fff;
  font-size: 0.8em;
}

.fadeIn-bottom{
  top: 80%;
}

.fadeIn-top{
  top: 20%;
}

.fadeIn-left{
  left: 20%;
}

.fadeIn-right{
  left: 80%;
}