Get me outta here!

Web Development Tips WP

Menu

Skip to content
  • Important links
  • Contact
  • About Me
  • Categories
    • API
    • PHP
      • OOPS
    • Open Source
      • WordPress
      • OpenCart
      • Joomla
      • Magento
    • CakePHP
    • HTML 5
    • CSS
    • MYSQL
    • jQuery
    • JavaScript
    • Server
    • Web Service
  • Home

Tag Archives: Login

National Grid

Customize WordPress admin page without a plugin

July 5, 2013 by Siddharth Jain

The only thing you have to do is to copy the following piece of code, and paste it on your functions.php file:

function my_custom_login_logo() {
    echo '<script type="text/javascript" src="'.get_bloginfo('template_directory').'/js/jquery.fullscreenBackground.js"></script>
    <style type="text/css">
    body {
        background:url('.get_bloginfo('template_directory').'/images/ng2.jpg) !important;
        background-size:100% 100% !important;
        background-repeat:no-repeat !important;
    }
    h1 a {
        background:none !important;
    }
    #login {
        margin-left:60% !important;
        padding-top:15.7% !important;
    }
    .login h1 a {
        display:none !important;
    }
    #nav, #backtoblog{
        background:#fff;
    }
    .login #backtoblog {
        padding-bottom: 18px !important;
        text-align: right;
    }
    .login #nav {
        float: left;
        margin-left: 8px !important;
        padding: 6px !important;
        width: 45%;
    }
    .login #backtoblog {
        float: left;
        margin: 0 !important;
        padding: 6px !important;
        width: 45%;
    }
</style>';
}add_action('login_head', 'my_custom_login_logo');

Add !important tag to overwrite the admin css.

And you are all done !!

28.635308 77.224960

Share this:

  • Click to email this to a friend (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...
Wordpress adminCascading Style Sheetschange wordpress logo in admin sectioncustom logocustomize admin panelLoginPHPWordPress Leave a comment

Login with Google in CakePHP

April 29, 2013 by Siddharth Jain

Implementing Google login system in your website is very easy with OAuth2 support, a simple and standard authorization method. With minimal line of PHP codes, we can acquire required user information from Google, and use the information to register or login users on click of a button. In this article let us learn to easily register/login users using Google PHP API library and MySQL.

This tutorial requires only one PHP page, all task are performed within the page with support of Google APIs Client Library for PHP. These library files are included in downloadable file at the bottom of this page, also look at their sample code, because this tutorial is based on it.

Database Table

Run SQL query below to create a new MySQL table called “google_users” using phpMyAdmin. There are five columns in the database table for the tutorial, and you will find that the length of Google profile IDs are too long (21 characters), it is not possible to accommodate these IDs into INT or BIGINT field, hence I have used DECIMAL(21,0), but you can also store them as string in VARCHAR field and create a separate auto increment primary field.

CREATE TABLE IF NOT EXISTS `google_users` (
`google_id` decimal(21,0) NOT NULL,
`google_name` varchar(60) NOT NULL,
`google_email` varchar(60) NOT NULL,
`google_link` varchar(60) NOT NULL,
`google_picture_link` varchar(60) NOT NULL,
PRIMARY KEY (`google_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Continue reading →

28.635308 77.224960

Share this:

  • Click to email this to a friend (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...
API CakePHP Access TokenApplication programming interfacecakephpcontrollerGoogleGoogle CodeLoginlogin with googlemodelMySQLPHPTable (database)view 8 Comments

Login with Google using PHP API library

April 26, 2013 by Siddharth Jain

Implementing Google login system in your website is very easy with OAuth2 support, a simple and standard authorization method. With minimal line of PHP codes, we can acquire required user information from Google, and use the information to register or login users on click of a button. In this article let us learn to easily register/login users using Google PHP API library and MySQL.

This tutorial requires only one PHP page, all task are performed within the page with support of Google APIs Client Library for PHP. These library files are included in downloadable file at the bottom of this page, also look at their sample code, because this tutorial is based on it.

Database Table

Run SQL query below to create a new MySQL table called “google_users” using phpMyAdmin. There are five columns in the database table for the tutorial, and you will find that the length of Google profile IDs are too long (21 characters), it is not possible to accommodate these IDs into INT or BIGINT field, hence I have used DECIMAL(21,0), but you can also store them as string in VARCHAR field and create a separate auto increment primary field.

CREATE TABLE IF NOT EXISTS `google_users` (
`google_id` decimal(21,0) NOT NULL,
`google_name` varchar(60) NOT NULL,
`google_email` varchar(60) NOT NULL,
`google_link` varchar(60) NOT NULL,
`google_picture_link` varchar(60) NOT NULL,
PRIMARY KEY (`google_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1; Continue reading →

28.635308 77.224960

Share this:

  • Click to email this to a friend (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...
API PHP Access TokenAPIApplication programming interfaceAuthenticationGooglegoogle APIGoogle CodeLoginlogin with googlelogin with google APIMySQLOAuthPHPSQL Leave a comment

Creating Google OAuth API Keys and Developer Key

April 26, 2013 by Siddharth Jain

Google API lets you play with the core of Google system, by building queries, a client can access required data from various Google services, which can be used to build all types of Google based applications. Before sending API queries, a client application needs Google API keys. In this basic tutorial we will learn about obtaining Google API Keys and developer key from Google API console.

Create Client ID and Client Secret

  1. Sign-in to Google and go to Google API console,  click API Access on the left sidebar, click big blue button “Create an OAuth 2.0 Cliend ID“.
    google_api_1 Continue reading →
28.635308 77.224960

Share this:

  • Click to email this to a friend (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...
API PHP API AccessApplication programming interfaceDeveloper KeyGooglegoogle APIGoogle DeveloperLoginlogin with google APIOAuthOAuth API KeysPHPWeb application Leave a comment

Login Using Ajax

March 3, 2013 by Siddharth Jain

Create the first file Ajaxlogin.php :

<html>
<head>
<script language=”javascript”>
function postRequest(strURL)
{
var xmlHttp;
if(window.XMLHttpRequest)
{
// For Mozilla, Safari, …
var xmlHttp = new XMLHttpRequest();
}
else if(window.ActiveXObject)
{
// For Internet Explorer
              var xmlHttp = new ActiveXObject(“Microsoft.XMLHTTP”);
       }

       xmlHttp.open(‘POST’, strURL, true);
xmlHttp.setRequestHeader(‘Content-Type’, ‘application/x-www-form-urlencoded’);
xmlHttp.onreadystatechange = function()
{
if (xmlHttp.readyState == 4)
{
ajaxloginupdate(xmlHttp.responseText);
}
}
xmlHttp.send(strURL);
} Continue reading →

28.635308 77.224960

Share this:

  • Click to email this to a friend (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to print (Opens in new window)

Like this:

Like Loading...
AJAX ajaxInternet ExplorerjqueryLoginLogin using AjaxMozillaPHPSafariXMLHttpRequest Leave a comment

Post navigation

Search

Top Posts & Pages

  • Login with Google in CakePHP
  • Difference between strstr and stristr in php
  • Validate Number field in Contact Form 7
  • Generate and Download .ics file for an event using jQuery
  • Add onClick event on form input with multiple checkbox
  • Creating Google OAuth API Keys and Developer Key
  • Wordpress Pagination without plugin

Facebook

Facebook

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 340 other followers

Blog Stats

  • 105,920 hits

RSS Feeds

RSS Feed RSS - Posts

Archives

  • May 2019 (1)
  • July 2015 (1)
  • June 2015 (1)
  • May 2015 (9)
  • April 2015 (3)
  • March 2015 (1)
  • February 2015 (1)
  • December 2014 (2)
  • November 2014 (1)
  • September 2014 (3)
  • August 2014 (2)
  • July 2014 (2)
  • May 2014 (3)
  • April 2014 (1)
  • March 2014 (2)
  • February 2014 (1)
  • January 2014 (5)
  • December 2013 (1)
  • November 2013 (5)
  • October 2013 (1)
  • September 2013 (3)
  • August 2013 (3)
  • July 2013 (8)
  • June 2013 (9)
  • May 2013 (26)
  • April 2013 (16)
  • March 2013 (10)

Tags

.htaccess ajax Application programming interface Array cakephp css database function Google HTML HTML element image InnoDB interview questions JavaScript jquery Languages Login Magento MySQL pagination PHP posts Programming Regular expression remove SQL url WordPress XML

Calender

December 2019
S M T W T F S
« May    
1234567
891011121314
15161718192021
22232425262728
293031  

Category

AJAX API CakePHP Categories CodeIgniter CSS HTML 5 JavaScript Joomla jQuery Magento MYSQL OOPS OpenCart PHP Server Web Service Wordpress
Create a website or blog at WordPress.com
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.
Cancel
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
%d bloggers like this: