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
<!-- Facebook Custom Audience Pixel Code - Placed on Every Page of Site --> | |
<script> | |
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod? | |
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n; | |
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0; | |
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window, | |
document,'script','//connect.facebook.net/en_US/fbevents.js'); | |
fbq('init', '{{facebook pixel}}'); | |
fbq('track', 'PageView'); | |
</script> |
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
add_filter(&quot;gform_email_fields_notification_admin&quot;, 'add_field_to_email_list', 10, 2); | |
// This filter add/remove fields from the list of email fields that get displayed on the Notification edit page when configuring | |
// the "Send To Field". | |
add_filter("gform_email_fields_notification_admin", 'add_field_to_email_list', 10, 2); | |
function add_field_to_email_list($field_list, $form){ | |
//Adds field with ID=1 to the list of email fields | |
foreach($form["fields"] as $field){ |
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
/* | |
This script (courtesy of Tyler Garns) passes URL parameters into order forms. The promo code will be | |
automatically "submitted" Just remove all the other fields that you don't need. | |
*/ | |
<script> | |
jQuery(document).ready(function() { | |
function getUrlVar(key){ | |
var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search); | |
if (result != null) { |
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
<script type="text/javascript"> | |
$ = jQuery; | |
$(document).ready(function() { | |
$.each($('input[type=text]'), function(k, v) { | |
var input = $('#' + v.id); | |
var label = $('label[for="' + v.id + '"]').first(); | |
var text = label.html().replace(/ \*/, '') || ''; | |
label.closest('td').remove(); | |
input.attr('placeholder', text).css('width', '100%'); |
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
<a href="http://theapiguys.com"><img src="http://theapiguys.com/images/buttons/tsGreen_register.png" hspace="5" border="0" /></a> |
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
/* | |
Instructions: | |
Paste the code below into an HTML snippet on your webform. | |
*/ | |
<script type="text/javascript" src="//infusiontraining.s3.amazonaws.com/mastermind/fieldLabels.js"></script> |
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
/* | |
Instructions: | |
In the code below, replace the REPLACE WITH INFUSIONSOFT FIELD NAME with a # and the ID | |
of the field(s) you want to make read-only. | |
For example, if you were making the Email field read only, you would replace it with #inf_field_Email and the | |
code would look like this: | |
jQuery('#inf_field_Email').attr('readonly', true); // Be sure to leave single quotes in place |
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
/* | |
Instructions: | |
In the code below, replace the REPLACE WITH INFUSIONSOFT FIELD NAME with a # and the ID | |
of the field(s) you want to hide. | |
For example, if you were hiding the Email field, you would replace it with #inf_field_Email and the | |
code would look like this: | |
jQuery('#inf_field_Email').parent().parent().hide(); // Be sure to leave single quotes in place |
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
<script> | |
$ = jQuery; | |
$(document).ready(function() { | |
var query, param, arg; | |
$('html').css('display', 'none'); | |
if (query = window.top.location.href.split('?')[1]) { | |
$.each(query.split('&'), function (idx, val) { | |
param = val.split('=')[0]; | |
arg = val.split('=')[1]; | |
if ( ! $('#' + param).length) { |
NewerOlder