Posts

Showing posts from March, 2015

showing iframe on a click of a anchor tag or an image

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script src="colorbox/jquery.colorbox.js"></script> <link rel="stylesheet" href="colorbox.css"/> <script>     $(function ()     {         $(".example6").colorbox({iframe:true, innerWidth:425, innerHeight:344});       }) </script> <a class='example6' href="http://google.com">Outside Webpage (Iframe)</a>

Wordpress New version release dates

Version 4.2 Month of Release April 2015 4.3 August 2015 4.4 December 2015 Get all the information related the wordpress new release Please click the below link https://wordpress.org/about/roadmap/

WordPress 4.2 Beta 4 is now available!

This software is still in development .  you should get all the information related to these version in below link  and update your self in wordpress for development. https://wordpress.org/news/2015/04/wordpress-4-2-beta-4/

use or_like with where condition in codeigniter

$this -> db -> like ( 'body' ,  $body ); $this -> db -> or_like ( 'author' ,  $author ); You can do it like this $this -> db -> where ( 'id' , $id ); $this -> db -> where ( '(`title` LIKE \' % '.$title.' % \ ' OR `body` LIKE \' % '.$body.' % \ ' OR `author` LIKE \' % '.$author.' % \ ')' ,  NULL ,  FALSE );

codeigniter 3 change log

General Changes PHP 5.1.6 is no longer supported. CodeIgniter now requires PHP 5.2.4 and recommends PHP 5.4+ or newer to be used. Changed filenaming convention (class file names now must be Ucfirst and everything else in lowercase).

html phonecode dropdown with country listing

International Telephone Input A jQuery plugin for entering and validating international telephone numbers. It adds a flag dropdown to any input, which lists all the countries and their international dial codes next to their flags. https://github.com/Bluefieldscom/intl-tel-input

PHP 5.6.6 is available now

The change log of 5.6.6 Core: Removed support for multi-line headers, as they are deprecated by RFC 7230. Fixed bug #67068 (getClosure returns somethings that's not a closure). Fixed bug #68942 (Use after free vulnerability in unserialize() with DateTimeZone). (CVE-2015-0273)

Google will begin ranking mobile-friendly sites higher starting April 21

Big changes to Google’s search algorithms are coming: beginning April 21, the company will increase the ranking of sites that are mobile-friendly and surface app results much higher. The company says that the change will have a “significant impact” on all mobile searches in all languages worldwide, but as a result Google says that users will find higher quality results. for more detail please visit  http://thenextweb.com/insider/2015/02/26/google-will-rank-your-site-higher-if-its-mobile-friendly-starting-april-21/

For new and advanced html code

Below link provides you a great html ,css and js work .you should test your modification online .just get the work and modified according to your use and use it http://codepen.io/

Register a subdomain in amazon ec2 server

Assume that you have a domain of example.com that you have purchase. 1 Find the external IP or DNS for your EC2 instance. You probably want to associate an Elastic IP to your instance, otherwise the IP of your instance will change on reboots. 2  Create a DNS record for your domain, for instance a CNAME record to point to your Elastic IP/DNS name: subdomain.example.com => ec2-xx-xxx-xxx-xxx.eu-west-1.compute.amazonaws.com 3  Make sure your httpd.conf contains a line to allow virtual hosts: NameVirtualHost *:80 4  Create a virtual host directive: httpd.conf: <VirtualHost *:80>   ServerName subdomain.example.com   ServerAdmin webmaster@subdomain.example.com   DocumentRoot /var/www/example.com/subdomain   <Directory /var/www/example.com/subdomain>     Options Indexes FollowSymLinks MultiViews     AllowOverride All     Order allow,deny     allow from all   </Directory>   ErrorLog /var/log/apache2/subdomain.example.com.error.log   LogLevel warn   CustomLog /

check your laptop processor quality

http://www.cpubenchmark.net/ laptop.html

upload a csv file in database from your system

LOAD DATA LOCAL INFILE 'C:\\temp\\yourfile.csv' INTO TABLE database.table FIELDS TERMINATED BY ';' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' (field1, field2);

regex validation for php

Validation library for the php here you find all the regex validation which we  are using in the validation of our text field.

Send variable with location.reload in jquery

// Store localStorage.setItem("lastname", "Smith"); // Retrieve document.getElementById("result").innerHTML = localStorage.getItem("lastname");

capitalize first letter using the codeigniter query

$this->db->select(' *,CONCAT(UCASE(LEFT(couloum_name, 1)),                              SUBSTRING(couloum_name, 2)) as alias_name',FALSE); $this->db->from('table_name'); $response=$this->db->get(); return $response->result();

Use concat function in codeigniter select query

$this->db->select(' *,CONCAT(coloumname,couloumname2) as  alias_name ',FALSE); $this->db->from (tablename); $this->db->where('columname',value); $response=$this->db->get(); return $response->result();