This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
// Replace 7 with the ID of your form and 13 with the ID of the field you want to force "all required" | |
// http://www.gravityhelp.com/documentation/page/Gform_field_validation | |
add_filter("gform_field_validation_7_13", 'validate_tcs', 10, 4); | |
function validate_tcs($result, $value, $form, $field) { | |
// Convert the checkbox input name value (returned as part of "field") | |
// into the "underscored" ID version which is found in the $_POST | |
foreach ($field['inputs'] as $input) { | |
$input_post_value = 'input_' . str_replace('.', '_', $input['id']); | |
<?php | |
/* | |
Insert this script into functions.php in your WordPress theme (be cognizant of the opening and closing php tags) to allow field groups in Gravity Forms. The script will create two new field types - Open Group and Close Group. Add classes to your Open Group fields to style your groups. | |
Note that there is a stray (but empty) <li> element created. It is given the class "fieldgroup_extra_li" so that you can hide it in your CSS if needed. | |
*/ | |
add_filter("gform_add_field_buttons", "add_fieldgroup_fields"); | |
function add_fieldgroup_fields($field_groups){ | |
foreach($field_groups as &$group){ |
function g8_aus_address( $address_types, $form_id ){ | |
$address_types["australia"] = array( | |
"label" => "Australian", | |
"country" => "Australia", | |
"zip_label" => "Postcode", | |
"state_label" => "State", | |
"states" => array( | |
"NT" => "NT", | |
"ACT" => "ACT", | |
"NSW" => "NSW", |
// Gravity Forms style sheet | |
wp_register_style( 'gravity-forms', get_stylesheet_directory_uri() . '/library/css/gravity-forms.css', array(), '' ); | |
// only load on contact page | |
if(is_page('contact')){ | |
wp_enqueue_style('gravity-forms'); | |
} |
add_action( 'wp_footer', 'community_add_javascript' ); | |
function community_add_javascript() { | |
if (tribe_is_community_edit_event_page()) { | |
?> | |
<script type="text/javascript"> | |
//Hide venue dropdown | |
jQuery('#event_venue tr:first').hide(); | |
//Hide organizer dropdown |
<? | |
// Gravity Form Hook to SQL Database for Today's Dishes // | |
// the ### in gform_pre_render_### locates the id of your form // | |
add_filter('gform_pre_render_5', 'todays_dishes'); | |
function todays_dishes($form){ | |
foreach($form['fields'] as &$field){ |
<?php | |
/** | |
* @package WordPress | |
* @subpackage WP-Skeleton | |
*/ | |
// REMOVE SOME HEADER OUTPUT | |
function Wps_remove_header_info() { | |
remove_action('wp_head', 'rsd_link'); |