How to start LAMPP automatically in Ubuntu?

Blog, Tutorials, Web Design & Programming
For a web developer LAMPP is the primary application for web development, so to start it every time whenever you login. You can make a script which will automatically start LAMPP on login. Open terminal and run following command. [code]sudo gedit /etc/init.d/lampp[/code] Use following code in file & save and close the file. [code] #!/bin/bash /opt/lampp/lampp start [/code] Now run following command to make this script executable. [code] sudo chmod +x /etc/init.d/lampp [/code] In Last run following command to install init scripts to all runlevel. [code] sudo update-rc.d lampp defaults [/code] Restart the system for confirmation, lampp would be start automatically & you can check it by running http://localhost in your browser.
Read More

WordPress Category template

Web Design & Programming, WordPress
If you want to create a different category template of wordpress theme to display specific category. You can do this by saving your Category template as category-xxx.php . Please note that adding hyphen ("-") and the category id to the file name. So, category-xxx.php will be used to display category that have ID  xxx, & category-1.php will be used for category ID 1. You can follow the same logic of hyphen and id number for individual post template creation.
Read More

How to Customize the WordPress admin bar?

CMS, PHP Scripts, Tutorials, Web Design & Programming, WordPress
In WordPress 3.3 version there is a handy admin bar that provides quick access to some Admin features for logged in users. There are several ways to do customize it by creating functions. Here I will show, how you can customize the admin bar the way you want. WorPress adds a black menu bar (Admin Bar or Toolbar) at the top of the screen when user is logged in. This menu bar is also visible even when you are at the front end of the site and provide you a quick links of pages quickly. WordPress allows us to customize the this bar and it’s possible to add new links (menu items) in that bar or remove or change the existing ones. Using admin_bar_menu or wp_before_admin_bar_render hook we can customize…
Read More

What is a Responsive Design?

Software Development, Tips, Web Design & Programming
A website that can be easily viewed and used in all types of devices or in other words "A Website That Can Responds to Various Screen Sizes". Responsive web design(Rwd) is a web outline approach pointed at making destinations to give an optimal survey experience—simple perusing and route with at least resizing, panning, and scrolling—over an extensive variety of apparatuses (from desktop Pc screens to versatile phones). A site outlined with Rwd acclimates the layout to the survey environment by utilizing liquid, extent based grids, adaptable images, and Css3 media queries, an amplification of the @media rule. The liquid lattice notion calls for page component measuring to be in relative units like rates, instead of supreme units like pixels or points. Adaptable pictures are additionally measured in relative units, to anticipate…
Read More

HOVER SLIDE EFFECT with jQuery

Ajax, Tutorials, Web Design & Programming
This jquery excercise will show how to make a picture territory with a few pictures that slides out when you drift over them, demonstrating different pictures. Arbitrary sliding impact add to its delightfulness, by arbitrary sliding impact I implies the pictures will slide to the top or base, left or right, becoming dull or not. At the time we click on any region, all regions will slide their pictures out. [caption id="attachment_409" align="alignnone" width="585"] Hover Slider Effect[/caption] For the HTML structure we will create a div element with the class and id “hs_container”. Inside we will place the different image areas with all possible images. The first image will have the class “hs_visible” which will make it being displayed on the top of all other images: Download Files
Read More

EXPANDING IMAGE MENU with jQuery aand Ajax

Ajax, PHP, Tutorials, Web Design & Programming
In today's excercise we will make a developing picture menu with jquery. The thought is to have a few segments with dark and white picture cuts that will make a substance range slide out when we click on them. We will additionally slide in the shaded form of the picture, making a slick impact. [caption id="attachment_406" align="alignnone" width="581"] Expanding Menu[/caption] The Html structure comprises of a prevailing holder and an unordered record where every thing is one of the sections. We will give the prevailing compartment the class "ei_menu" and additionally the id "ei_menu". The record things are set to hold a connection component with two compasses inside and a div component with the substance. The two compasses are for the foundation picture indicated at the starting and the hued…
Read More

20 Complete scripts to download

PHP, PHP Scripts, Techniques, Tips, Web Design & Programming
I've assembled a superb small accumulation of scripts over the previous year or thereabouts, and have chosen as its approaching summer in the Uk (sorry winter in Australia!) to do a download heap of 20 different scripts where you can get the parcel in a single click gratis! In spite of the fact that gifts are likewise highly acknowledged. Look at the record underneath for all the portions of the bundle. This accumulation is dependent upon a mixture of diverse systems, from Css, Php jquery to Mysql. jQuery Drag & Drop Using jQuery PHP and MySQL a complete drag and drop script that updates the database. jQuery Delete Delete items using PHP jQuery using an AJAX request. PHP jQuery and MySQL Autosuggest A powerful autosuggest script that searches a MySQL…
Read More

Google’s Weather API in PHP

PHP, PHP Scripts, Web Design & Programming
It might be a delightful small task to compose an excercise on the most proficient method to construct an essential yet capable climate provision for either portable units or the desktop. The requisition takes a set of Google climate Api encourages and settles on some straightforward choices dependent upon the yield. For instance we can propose the client takes an umbrella if downpour or storms are gauge, or if the temperature warrants the requirement for warm apparel. Essential however in any case suitable informative data. Code Lets have a snappy go through at what the undertaking comprises of. Firstly we utilize the simplexml_load_file() Php capacity to get the xml information for the given area. We then verify whether the present climate condition is in the Xml record. Provided that it…
Read More

Automatic jQuery site subscription lightbox

Ajax, Tutorials, Web Design & Programming
Getting Started You’ll need to include the jQuery library as well as the Colorbox lightbox JS and CSS which are included in the download below. <!-- Color Box CSS --> <link media="screen" rel="stylesheet" target="_blank" href="css/colorbox.css" /> <!-- Style For the Subscription Box --> <link media="screen" rel="stylesheet" target="_blank" href="css/popup.css" /> http://ajax.googleapis.com/ajax/libs/jquery/1.4.0/jquery.min.js http://js/colorbox.js The JS Code Once the page loads we check to see if the cookie exists and hasn’t expired. If it’s expired or doesn’t exist we set the cookie to expire in 15 days, and we show the lightbox. $("document").ready(function (){ // load the overlay if (document.cookie.indexOf('visited=true') == -1) { var fifteenDays = 1000*60*60*24*15; var expires = new Date((new Date()).valueOf() + fifteenDays); document.cookie = "visited=true;expires=" + expires.toUTCString(); $.colorbox({width:"580px", inline:true, href:"#subscribe_popup"}); } $(".open_popup").colorbox({width:"580px", inline:true, href:"#subscribe_popup"}); }); The HTML Here’s the HTML…
Read More

Alter and save a passage of content in a Html page

PHP, PHP Scripts, Software Development, Techniques, Tips, Tutorials, Web Design & Programming
This class might be utilized to alter and save a passage of content in a Html page. It copartners the vital Javascript occasion taking care of code to transform a given passage in a Html page into editable content when the client clicks on it. The point when the client completes the process of altering the produced Javascript submit the passage content to the Web server utilizing Ajax demand so it might be safeguarded. Download Script
Read More