All credit goes to Mary Lou of Codrops http://tympanus.net/codrops/2012/06/18/3d-thumbnail-hover-effects/
A Pen by Md. Ashiqur Rahman on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
if (window.JpegCamera) { | |
var camera; // placeholder | |
// Add the photo taken to the current Rekognition collection for later comparison | |
var add_to_collection = function() { | |
var photo_id = $("#photo_id").val(); | |
if (!photo_id.length) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Rename these to the form input names you are going to use. | |
* When you create a new attribute in Properties->Settings->Developer | |
* the form input name will appear greyed out under the attribute name | |
*/ | |
define('SPRP_SEARCH_FROM_KEY', 'price_from_per_month'); | |
define('SPRP_SEARCH_TO_KEY', 'price_to_per_month'); | |
function parse_search(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* If you are using BP 2.1+, this will insert a Country selectbox. | |
* Add the function to bp-custom.php and then visit .../wp-admin/users.php?page=bp-profile-setup | |
*/ | |
function bp_add_custom_country_list() { | |
if ( !xprofile_get_field_id_from_name('Country') && 'bp-profile-setup' == $_GET['page'] ) { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Contact Form 7 to External DB | |
Plugin URI: http://thedrawingroomcreative.com | |
Description: This plugin uses the wpcf7_before_send_mail hook to post a specific form to an external database. Upon use the details for your external database will need to be entered. Private use only. | |
Author: The Drawing Room | |
Version: 0.1 | |
Author URI: http://thedrawingroomcreative.com | |
*/ |
I maintain a small French WordPress site: http://entraides-citoyennes.org/ It was made by design students which made a great work with looks, but a so-so technical work... So I had to fix the issues.
They used a iFeature 5 theme by CyberChimps, they made a .css file in a child theme. I had to make CSS fixes to get labels of the registration form (made with the WP-Members plugins) to be aligned with the input fields...
WP-Members is a nice plugin, rather flexible as it allows to add custom fields to registration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Custom validation callback to validate UK postcodes. | |
* | |
* It also tries to format provided postcode in correct format. | |
* | |
* Note: It's only usable for "postcode" fields. | |
*/ | |
public function check_postcode_uk($original_postcode) | |
{ | |
// Set callback's custom error message (CI specific) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var tweet = "Currently chilling out at W1B 2EL, then on to WC2E 8HA or maybe even L1 8JF! :-)"; | |
// Here's a simple regex that tries to recognise postcode-like strings. | |
// See http://en.wikipedia.org/wiki/Postcodes_in_the_United_Kingdom#Validation | |
// for the rules on how UK postcodes are formatted. | |
var postcode_regex = /[A-Z]{1,2}[0-9][0-9A-Z]?\s?[0-9][A-Z]{2}/g; | |
var postcodes = tweet.match(postcode_regex); | |
console.log(postcodes); |