Categories
javascript

Mac prevent default for Command key + Click

// Mac prevent default for Command key + Click
$(document).bind('contextmenu click', function(e) {
    // 1 left click
    // 2 middle click
    // 3 right click
    if (e.which === 3)
    {
        // show context menu
        return e;
    }
    else
    {
        // don't show context menu
        return false;
    }
});

Possible bug with input type=”file”

Categories
javascript

AddThis share buttons in Fancybox poppup

AddThis share buttons in Fancybox poppup

Source: http://www.catswhocode.com/blog/snippets/fancybox-addthis-resolved

Categories
wordpress

Go to the plugins

Ian Dunn’s nice presentation which explaining you how to develop wordpress plugins in oop manner.

Link: http://iandunn.name/content/presentations/wp-oop-mvc/oop.php

Categories
wordpress

Contact Form 7 and Gmail… How?

Recently installed Contact Form 7 and found myself in front of difficulty. The solution took me awhile. To set Contact Form 7 send mail to Gmail you need WP-Mail-SMTP plugin.

Configuring the plugin also took some time, but I finally got it.

WP-Mail-SMTP configuration to work with Gmail smtp server
WP-Mail-SMTP configuration to work with Gmail smtp server

I left some fields empty which config dinamically wordpress to send to default email. In our case this is the email set in Contact Form 7 form.

Categories
tutorials

How to disable embedding in Youtube in 5 steps

How to disable embedding in Youtube in 5 steps
How to disable embedding in Youtube in 5 steps