Gravity Forms and Tab Index

From Gravity Wiz, maybe we need to include this with every site that uses Gravity Forms and a Comment box on the same page:

WordPress registration through Gravity Forms

Place the following in your functions.php file to allow a site visitor to be registered by filling out a Gravity Form. This example not only registers them but automatically logs them into the site with their newly-generated credentials:

add_action('gform_after_submission', 'post_to_third_party', 10, 2);
function post_to_third_party($entry, $form) {
    if ($form['title'] != 'Registration') { return false; }
    $user_name = $entry[1];
    $user_email = $entry[2];
    $user_id = username_exists( $user_name );

    if ( !$user_id and email_exists($user_email) == false ) {
        $random_password = wp_generate_password( $length=12, $include_standard_special_chars=false );
        $user_id = wp_create_user( $user_name, $random_password, $user_email );
    } else {
        $random_password = __('User already exists. Password inherited.');
    }

    /** SEND A REGISTRATION EMAIL for subsequent logins */
    $to = $user_email;
    $subject = 'Virtual Open House :: New Signup';
    $message .= "";
    $message .= sprintf("Thanks for signing up.\n");
    $message .= sprintf("Your username is:\n");
    $message .= sprintf("\n%s\n\n",$user_name);
    $message .= sprintf("Your password is:\n");
    $message .= sprintf("\n%s\n\n",$random_password);
    $message .= sprintf("To login, please browse to: %s\n",get_bloginfo('url'));
    $message .= sprintf("Thank you\n");
    wp_mail( $to, $subject, $message);

    /** keep user logged in **/
    $creds = array();
    $creds['user_login'] = $user_name;
    $creds['user_password'] = $random_password;
    $creds['remember'] = true;
    $user = wp_signon( $creds, false );

  if ( is_wp_error($user) ) echo $user->get_error_message();
}

WordPress and Genesis — winning

This graphic below and the post it links to are by Brian Gardner of StudioPress, the company who creates the stellar Genesis framework which we use on most of the sites we make. See also this previous post.

And speaking of Genesis

The Bones Responsive/HTML5 Starter Child Theme for Genesis is now free (was $5). Check the excellent documentation in the functions.php file; great for getting up to speed on using the Genesis framework.

Thank You WordPress
Thank You WordPress graphic designed by Brian Gardner.

Homage to Jon Wiley’s Test CSS bookmarklet

Type CSS rules here

Drag the Test CSS link above to your browser's bookmarks bar. Then type some styles.

Just drag this link to the bookmarks bar of your browser=> Test CSS

Then, when you click the “Test CSS” bookmark, you’ll see a small window where you can type CSS for testing different rules. I often copy the rule(s) from Firebug and vary them for the new style(s) I want. Then I copy that into the stylesheet(s).

Where it beats tweaking CSS in Firebug or other browsers’ developer tools is that when you refresh the page it doesn’t nuke your styles.

Continue reading

HTML5/CSS3 WYSIWYG animation tools

Flash used to be maybe the only way to do things like the SHRB Grand Opening invitation ecard. But Flash on a webpage can’t be seen by any iPadPodPhone so those days are gone.

Check out these competitors:

Adobe Edge

  • been around still in beta, but improving

Tumult Hype

Sencha Animimator

  • $200 worth it if it’s worth it
  • recommended from comment on the Appstorm review above

Download the trial versions and check ‘em out.

The StudioPress Support Forums

StudioPressA reminder of how fortunate we in Visual Media are to have full access to the StudioPress forums, the folks who do the Genesis Framework.
Go to these forums for

  • User info about Genesis or any of its child themes,
  • support questions for the StudioPress tech folks,
  • asking specific questions,
  • downloading the Genesis Framework itself,
  • or downloading any child theme.

Let me know if you’ve misplaced your login (and you’re from this group, of course).