Featured Plugins

Check out our featured WordPress plugins. ImagePress is a user-powered image gallery with frontend capabilities, author profiles, portfolios and collections. eCards is an electronic cards sender plugin with lots of features and options.


getButterfly Club getButterfly Club introduces digital products, responsive HTML templates, WordPress themes and plugins, PHP applications, native HTML mobile applications and more, created by a small community of developers.
Explore the club below.



Blog

Code

How to Update Debian 7 (Wheezy) to PHP 5.6 (11 hours ago in Blog)

Login as root and enter the following commands: echo “deb http://packages.dotdeb.org wheezy-php56 all” >> /etc/apt/sources.list.d/dotdeb.list echo “deb-src http://packages.dotdeb.org wheezy-php56 all” >> /etc/apt/sources.list.d/dotdeb.list wget https://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg apt-get install php-pear php5-cgi php5-cli php5-common php5-curl php5-dev php5-fpm php5-gd php5-imagick php5-mcrypt php5-memcache php5-mysqlnd php5-redis Don’t forget to keep your existing php.ini files. Featured image credit: @Lachlan Hardy

ASP.NET MVC

Check Current URI on ASP.NET (2 days ago in Blog)

If you ever need to check and match and certain URI on an ASP.NET site, it’s easy. My client’s site uses ASP.NET Razor syntax, so here’s the code I used: @{ var currenturi = @System.Web.HttpContext.Current.Request.Url.AbsoluteUri; if (currenturi == “https://www.domain.com/path/to/page/”) { Your code here. } } Note that you need to use double quotes for the matched URI, […]

Mobile Menu Design

Mobile Menu Design (2 days ago in Blog)

I have designed several mobile menus lately and I am working on two more. I’ve used three different ways, including snap.js, jQuery and pure CSS3 translates. I am most happy with the CSS3 approach, as it’s the most fluid one and doesn’t require any external libraries. I’ve been (ab)using FontAwesome for various icons, such as […]

Interactive Panels

Interactive Panels with Lightbox and Email Overlays (2 days ago in Blog)

Today, I’d like to share one of my recent creations, CSS/JS interactive panels. Each panel contains an image, content and two call-to-action buttons. In addition, there is a lightbox link opening a second image. Each call-to-action button opens a transparent overlay with an email form. The panels use pure Javascript and FontAwesome. See/fork demo Note: […]

photo-1428908728789-d2de25dbd4e2-min

ImagePress 5.6.1 (1 week ago in ImagePress, Plugins, WordPress)

Quick update for ImagePress, version 5.6.1 adds an option to enable/disable Avada lightbox, by adding a rel=”prettyPhoto” to image links. = 5.6.1 = * IMPROVEMENT: Added option to enable/disable Avada lightbox * IMPROVEMENT: Changed PHP template samples comments to /**/ in order to fix some copy/paste issues That’s it! Get it now!

photo-1428908728789-d2de25dbd4e2-min

ImagePress 5.6 (2 weeks ago in ImagePress, Plugins, WordPress)

New ImagePress release! Version 5.6 fixes several bugs and cleans up some client-specific code. I have separated more functions, which will become modules in the upcoming versions. You will be able to switch them on or off and increase ImagePress performance. = 5.6 = * FEATURE: Added option to specify images per row * ENHANCEMENT: Cleaned […]

Razor

isset() on ASP.NET (2 weeks ago in Blog)

While recently working on an ASP.NET site, I had to test some changes on the live site. Normally, I would use a staging server, but with no access to the real server, I had to resort to checking for a URL parameter. The site uses ASP.NET Razor syntax, so here’s the code I used: @{ […]

icon-256x256

eCards gets a free, lite version (3 weeks ago in Plugins, WordPress)

eCards plugin gets a free version! If you’re not interested in Dropbox upload, user upload or PayPal payment, then eCards Lite is your best bet.

featured-default-fb

How to save all values from a form (4 weeks ago in Blog)

What’s this all about? I need to get all form data and save it in a hidden input field. I want to use it on a second form on the same page. window.onload=function(){ $(‘.form-paypal’).submit(function(event) { saveValues(); }); }; function saveValues() { var fields = $(‘:input’).serializeArray(); $(‘#results’).empty(); jQuery.each(fields, function(i, field) { $(‘#results’).append(field.name + ‘:’ + field.value + […]

jQuery ul/li sorting (random code snippet) (4 weeks ago in Blog)

A recent project of mine required sorting an existing ul/li list. The only way to do it, without interacting with the PHP code was a jQuery snippet. See it below (there is no additional information or documentation available). // Sort destinations alphabetically // Ciprian $(window).on(‘load’, function(){ var groupedLiElements = $(‘#destinations .list:nth-child(1) ul.grouped’).children(‘li’).length; for(i=0; i<groupedLiElements; i++) { var […]

Radar (bug tracking)

From TracPress to github (4 weeks ago in Blog)

We’ve been using TracPress for bug reports for a while and everything went according to plan. But TracPress is itself a plugin which needed updates and bug fixes, so it wasn’t a perfect workflow. The plugin was open-sourced and moved to WordPress plugin repository. We decided to move our ImagePress issue tracker to github, as […]

photo-1428908728789-d2de25dbd4e2-min

ImagePress 5.5.7 (1 month ago in ImagePress, Plugins, WordPress)

ImagePress 5.5.7 has been released into the wild. = 5.5.7 = * FIX: Fixed avatar filtering * FIX: Fixed reverse sorting * IMPROVEMENT: Settings clean up What else is new? I have a new login page with settings and options, and I have refactored the user settings. During the next weeks, I’ll merge some options […]

imagepress-native-login

ImagePress Progress (1 month ago in ImagePress, Plugins, WordPress)

Did you see the new login/registration customizer for the native login module? It’s coming in 5.5.6. If you were using ImagePress with a third-party login/registration customizer, it’s time to remove it. The new native login module loads all the functions and styles on demand, so there’s no additional page overhead. The login elements I used […]

Trustpilot reviews

How to get Trustpilot reviews based on tags and/or stars (1 month ago in Blog)

In order to use this code, you need a Trustpilot business account. You also need to manually request your API credentials. The script below is working as intended as of June 17th, 2015. <?php /* * Copyright 2015 Ciprian Popescu (email: getbutterfly@gmail.com) * * This program is free software: you can redistribute it and/or modify […]

Wastelands

At the end of the day – Chapter 2: The Road (2 months ago in Novels)

At the end of the day – Chapter 1: Escape At the end of the day – Chapter 2: The Road The Road. Day 2. Almost 4 o’clock. The wooden bench was hard, but it was warm inside the garage and Ben stared to the ceiling. Wires, pipes, metal sections and flickering neon lights. A […]

Wastelands

At the end of the day – Chapter 1: Escape (2 months ago in Novels)

At the end of the day – Chapter 1: Escape At the end of the day – Chapter 2: The Road Dunn. Day 1. Long shadows began to form on the vast plains as the sun was rising. A foggy, too orange, too faint sun. A grey fog covered the ground in the junkyard. There […]

photo-1428908728789-d2de25dbd4e2-min

ImagePress 5.5.5 (2 months ago in ImagePress, Plugins, WordPress)

I have started refactoring the settings page and adding new placeholder functions for version 6. The most notable feature is the native login module, eliminating AJAX issues, third-party login integrations and moving towards WordPress core. The second feature is a wiki page placeholder. = 5.5.5 = * IMPROVEMENT: Added empty upload check * IMPROVEMENT: Removed […]

Wastelands

Dunn (2 months ago in Blog)

I’ll just leave this here. Long shadows began to form on the vast plains as the sun was rising. A foggy, too orange, too faint sun. A grey fog covered the ground in the junkyard. There was no movement and all seemed still. The silhouettes of the three metal capsules showed a thick layer of […]

Zipper

I’m working on something… (2 months ago in Plugins, WordPress)

I’m working on something. It’s a zipping module for WordPress files. Say you have a customized plugin or theme on your server and you want to zip it and download it. Or you have an external folder – outside your WordPress root –  and you want to zip it and get it. The Zipper plugin […]

Slides

ImagePress themes (2 months ago in ImagePress, WordPress)

It seems that this month’s focus is ImagePress. This feature has been requested by several clients and it might see the light of day in a post-6.x release. Currently, ImagePress doesn’t have a visual customization module. I’m talking about fonts, colours, padding, margins, images per row and responsive behaviour. The plan is to include several themes (light, […]


Subscribe to Blog via Email

Enter your email address to subscribe to getButterfly.com and receive notifications of new posts by email.

Join 294 other subscribers

Powered by Jetpack