Luckily on January 14th, 2006the first version of jQuery was introduced to the world. From there creative geniuses has been bringing us endless enjoyment using the library, everything from amazing UI designs to Very Addictive jQuery games.
You can easily add google analytics data in your custom app by using the ga-ez-dash library
This library is super easy to use and quick to install. I am not going to go into much details and the code is quite self explanatory.
All applications that use the Google Analytics API must be registered through the Google APIs Console. When you register in the console, you will create a new project and configure the settings to work with this library. Once configured, the console will provide you with a few values that you need in the configuration step.
Upload the library to a folder in your document root.
If you are using standard wordpress login form inside of your theme and you are battling with the redirect when a user enters the incorrect details then this code will help.
Normally the form has a “redirect_to” hidden field.. this however works only when the correct details are entered. When the incorrect details are entered it takes you to the normal login form. This snippet will help prevent that.
With the addition of the Menu’s feature in wordpress it allowed us to use pages for a little more than its obvious purpose.. A Simple example for this is to create a front end slideshow without having to add a special plugin or tons of code that make everything seem super complicated. All you would have to do is browse to the page, click on add media, upload the photos to the page and thats it.
Most of the cases they use either custom post types or they pull it from the blog via a specific category. But this can be a hassle if all you want is generic images rotating.
In this Issue of the dev box we take a look at the tech fails of hollywood. We see how to use shortcodes in WordPress theme files. There are some wordpress hacks and snippets to fight spam. Tutorial on optimizing for retina displays and also some inspiration on the use of textures. Enjoy!
One of the most handy functions in programming is the ability to display random records. Luckily in SQL this is very easy.
This is usefull when you want to display random products, random images, etc..
So in your query you just add “ORDER BY RAND()”
So the Query will look like:
Today’s Dev Box Includes some usefull links. Principles of Design and David Kadavy’s Design for Hackers (Interview). Dirk Strauss gives us a review on Visual Guard. Learn how to create shapes in CSS3. A very handy and easy to install jQuery plugin to create a image zoom effect and a tutorial on using custom taxonomies in wordpress.