- Register domain and add your email now
- Introduction to Basic Concepts
- Create a login keypair
- Get a server (Digital Ocean)
- Point the domain at your server (an A Record)
- Log in and install stuff
- Buy the certificate with SSLMate
- Tell nginx to serve that domain and your certificate
This file contains 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: bbPress - Include Topics and Replies in WordPress Search Results | |
Plugin URI: https://gist.github.com/ntwb/7363a1de1184d459f0c3 | |
Description: bbPress - Include Topics and Replies in WordPress Search Results | |
Version: 0.1 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ |
This file contains 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: bbPress Permalinks | |
* Plugin URI: http://korobochkin.com/ | |
* Description: Change bbPress permalinks. ID number instead of topic slug. This links better than default if you have Cyrilic or other non english charackters in forum's and topic's slugs. forums/forum/FORUM_SLUG/ → forums/forum/ID/. forums/topic/TOPIC_SLUG/→forums/topic/ID/ | |
* Author: Kolya Korobochkin | |
* Author URI: http://korobochkin.com/ | |
* Version: 1.0.0 | |
* Text Domain: bbpress_permalinks | |
* Domain Path: /languages/ |
This file contains 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
/* | |
If you are using BP 2.1+, this will insert a Country selectbox. | |
Add the function to bp-custom.php and then visit .../wp-admin/users.php?page=bp-profile-setup | |
Remove this function after the field is created. | |
*/ | |
function bp_add_custom_country_list() { | |
if ( !xprofile_get_field_id_from_name('Country') && 'bp-profile-setup' == $_GET['page'] ) { | |
This file contains 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"> | |
(function () { | |
"use strict"; | |
// once cached, the css file is stored on the client forever unless | |
// the URL below is changed. Any change will invalidate the cache | |
var css_href = './index_files/web-fonts.css'; | |
// a simple event handler wrapper | |
function on(el, ev, callback) { | |
if (el.addEventListener) { | |
el.addEventListener(ev, callback, false); |
Google Chrome Developers says:
The new WOFF 2.0 Web Font compression format offers a 30% average gain over WOFF 1.0 (up to 50%+ in some cases). WOFF 2.0 is available since Chrome 36 and Opera 23.
Some examples of file size differences: WOFF vs. WOFF2
This file contains 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('bp_ajax_querystring', 'devb_hide_user_on_directory', 15, 2); | |
function devb_hide_user_on_directory( $query_string, $object ){ | |
if( !is_user_logged_in() ) | |
return $query_string; | |
if( $object != 'members' || isset( $_REQUEST['search_terms'] ) && $_REQUEST['search_terms'] ) //updated to not hide from sarch | |
return $query_string; | |
I've been fiddling with svg sprites a bit today, trying to handle them in such way that you could use any unit you like to specify their size. Here's what I came up with.
(You could use this method for bitmap sprites as well, but I don't see much sense in this!)
All images in the sprite must share the same width or height, preferably both. Note that maintaining rules for images with several different aspect ratios may be problematic.
This file contains 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
/** | |
* Use WC 2.0 variable price format, now include sale price strikeout | |
* | |
* @param string $price | |
* @param object $product | |
* @return string | |
*/ | |
function wc_wc20_variation_price_format( $price, $product ) { | |
// Main Price | |
$prices = array( $product->get_variation_price( 'min', true ), $product->get_variation_price( 'max', true ) ); |
This file contains 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 | |
/** | |
* Small plugin to demonstrate how to place the bbPress Report Content links wherever you want | |
* | |
* @author Josh Eaton <http://www.josheaton.org/> | |
*/ | |
if ( ! function_exists( 'shmoo_bbp_the_topic_report_link' ) ) { | |
/** | |
* Output a topic report link |