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
// http://ca.php.net/imap | |
$mb = imap_open("{host:port/imap}","username", "password" ); | |
$messageCount = imap_num_msg($mb); | |
for( $MID = 1; $MID <= $messageCount; $MID++ ) | |
{ | |
$EmailHeaders = imap_headerinfo( $mb, $MID ); | |
$Body = imap_fetchbody( $mb, $MID, 1 ); | |
doSomething( $EmailHeaders, $Body ); |
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
div.column { | |
/* The background image must be 800px wide */ | |
max-width: 800px; | |
} | |
figure.fluidratio { | |
padding-top: 10%; /* slope */ | |
height: 120px; /* start height */ | |
background-image: url(http://voormedia.com/examples/amsterdam.jpg); |
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
<meta property="og:title" content="The Rock" /> | |
<meta property="og:type" content="video.movie" /> | |
<meta property="og:url" content="http://www.imdb.com/title/tt0117500/" /> | |
<meta property="og:image" content="http://ia.media-imdb.com/images/rock.jpg" /> | |
<!-- | |
og:audio - A URL to an audio file to accompany this object. | |
og:description - A one to two sentence description of your object. | |
og:determiner - The word that appears before this object's title in a sentence. An enum of (a, an, the, "", auto). If auto is chosen, the consumer of your data should chose between "a" or "an". Default is "" (blank). | |
og:locale - The locale these tags are marked up in. Of the format language_TERRITORY. Default is en_US. |
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
<!-- Delicious --> | |
<a title="Share this on del.icio.us" href="http://del.icio.us/post?url=http://yourwebsite.com&title=Your Ttitle"> Boorkmak on del.icio.us </a> | |
<!-- Digg --> | |
<a title="Submit to Digg" href="http://digg.com/submit?url=http%3A//yourwebsite.com/&title=Your%3Website%Name"> Post on Digg </a> | |
<!-- Reddit --> | |
<a title="Share this on Reddit" href="http://reddit.com/submit?url=http://iamkawsar.com&title=Your Website Name">Post on on Reddit</a> | |
<!-- Facebook --> |
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
jQuery(document).ready(function($){ | |
// Let's get the position of our sharebar container(where we want it) | |
// Cache these DOM traversals | |
var container = $('.content'); | |
var containerOffset = container.offset().top; | |
var containerLeft = container.offset().left; | |
var containerBottom = containerOffset + container.height(); | |
var sharebar = $('.viralshare'); | |
var sharebarHeight = 432; |
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 | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.3.1/wp-includes/query.php | |
*/ | |
$args = array( |
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
onfocus="if (this.value == 'Enter Your Email') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Enter Your Email';}" |
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: Hosting Quiz Logic | |
Plugin URI: http://www.artofblog.com | |
Description: Custom logic for Gravity Forms Quiz | |
Version: 1.0 | |
Author: Eric Binnion | |
Author URI: http://ericbinnion.com | |
*/ |
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
// http://www.gravityhelp.com/forums/topic/simple-calculations | |
// change the 41 here to your form ID | |
add_action('gform_pre_submission_41', 'ch_awesomeness_rating'); | |
function ch_awesomeness_rating($form) { | |
// set up one array for each step of the form | |
// each array contains the input IDs of the fields we want to sum on each page | |
// IDs do not need to be consecutive using this method | |
$step_1_fields = array('input_2', 'input_3', 'input_4', 'input_5', 'input_6', 'input_7', 'input_8', 'input_9', 'input_10', 'input_11'); | |
$step_2_fields = array('input_14', 'input_15', 'input_16', 'input_17', 'input_18', 'input_19', 'input_20', 'input_21', 'input_22', 'input_23'); |