Thursday, April 30, 2015

Using jQuery Interactions in Your WordPress Admin

Throughout this tutorial I will be outlining how you can leverage the jQuery Interactions libraries to create more interactive and easy to manage admin areas and elements.

We will start off with an explanation of what these interactions are along with a summary of the three main libraries we will be using; dragable, dropable and sortable.

After we have the basics of these libraries I will show you how they can be used in a real world situation to extend your administration areas and create interactive zones.

What are jQuery Interactions?

jQuery Interactions are a collection of different libraries that have been created to abstract away some of the fundamental difficulties of building interactive interfaces.

These scripts are part of the jQuery UI (user interface) family and handle interactions such as dragging, dropping and sorting; with these libraries we can create complex functionality without the need of reinventing the wheel.

Continue reading %Using jQuery Interactions in Your WordPress Admin%


by Simon Codrington via SitePoint

Nathan Riley

Nathan Riley

Responsive One Page portfolio for Green Chameleon designer, 'Nathan Riley' featuring a refreshing approach to the trendy centrally divided One Page layout.

by Rob Hope via One Page Love

#YouTubeAdvertising: Reach Facebook & Playstation Audiences With Google AdWords

#YouTube Advertising: Reach Facebook and Playstation Audiences With Google AdWords

When a YouTube video is being watched by your customer and you are given the option to advertise your business to that customer, on that video - would you do it?

It makes sense to target watched (or viral) videos with adverts across multiple networks and devices - a bit like winning a prime time slot on TV. However, sourcing an expert to create and market a video ad for your business is probably equivalent to a prime time nightmare.

by Imran Sq via Digital Information World

Craig Jamieson

Personal site of Craig Jamieson, an independent design professional from Johannesburg, South Africa.


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

NECjAR

NECjAR Better worlds start with us. Create timeless interactive entertainment that makes positive change to the human psyche worldwide. Nectar makes everything better.


by csreladm via CSSREEL | CSS Website Awards | World best websites | website design awards | CSS Gallery

Taste and Tone Collective

Taste and Tone Collective

Responsive One Pager for 'Taste and Tone Collective' - a niche record label that launched on March 17th. Nice little touch with the centred logo that shifts top left as you scroll.

by Rob Hope via One Page Love

Stripe Subscriptions in Rails

Choosing the right payment solution for your app could be tricky, especially if you're running a global marketplace. The prospect of dealing with country-specific regulations is not something I look forward to while getting on a new project. Also, there is a lot of boilerplate that you have to handle to get recurring billing to work. Stripe seems to understand the pain thousands of developers face every day and solves it pretty well. In this article, I will demonstrate how to integrate Stripe into your Rails app. Read on.

Setting Up

Before we begin, you will need a Stripe API key. You can obtain one by signing up with Stripe with your bank details. There are two different set of keys, one for your test and one for production.

Let's begin by setting up the Stripe client. Add this to your Gemfile:

[ruby] gem 'stripe', :git => 'http://ift.tt/1lJK0yH' [/ruby]

and bundle install.

Once you are done installing your dependencies, you need to setup your API keys. In production, you would store these keys in an environment variable and take it out of the codebase. But for brevity's sake, I'm going to set them in an initializer. Kindly refrain from throwing pitchforks at me... :)

[ruby] # config/initializers/stripe.rb #todo remove the key info from this file and have env variable #todo recreate new API keys when do that if Rails.env == 'production' Rails.configuration.stripe = { :publishable_key => MY_PUBLISHABLE_KEY, :secret_key => MY_SECRET_KEY } else Rails.configuration.stripe = { :publishable_key => TEST_MY_PUBLISHABLE_KEY, :secret_key => TEST_MY_SECRET_KEY } end Stripe.api_key = Rails.configuration.stripe[:secret_key] [/ruby]

With that out of the way, let's setup our payment page.

Continue reading %Stripe Subscriptions in Rails%


by Vasu K via SitePoint