Migrated to https://github.com/benbalter/view-without-cache-bookmarklet
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
function remove_shrsb () { | |
remove_filter('the_content', 'shrsb_position_menu'); | |
} | |
function wpr_add_shrsb() { | |
add_filter('the_content', 'shrsb_position_menu'); | |
} | |
add_action( 'wp_resume_shortcode_pre', 'wpr_remove_shrsb' ); | |
add_action( 'wp_resume_shortcode_post', 'wpr_add_shrsb' ); |
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
function wpr_add_sb_metabox() { | |
if( !function_exists( 'shrsb_get_current_user_role' ) || | |
( shrsb_get_current_user_role() != "Administrator" && shrsb_get_current_user_role() != "Editor") | |
) | |
return false; | |
add_meta_box( 'hide_options_meta', __( 'Shareaholic', 'shrsb' ), '_hide_options_meta_box_content', 'wp_resume_position', 'advanced', 'high' ); | |
} |
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: Top Help Users | |
Description: Widget to display top users of help.hackshackers.com by reputation | |
Author: Benjamin J. Balter | |
Version: 1.0 | |
Author URI: http://ben.balter.com | |
*/ | |
class Top_Help_Users_Widget extends WP_Widget { |
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: Help - Recently Answered Questions | |
Description: Widget to display recently answers questions on help.hackshackers.com | |
Author: Benjamin J. Balter | |
Version: 1.0 | |
Author URI: http://ben.balter.com | |
*/ | |
class Recent_Answers_Widget extends WP_Widget { |
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
function content_filter( $content ) { | |
global $post; | |
$output = array(); | |
$taxs = get_taxonomies( array( 'object_type' => array( $post->post_type ) ) ); | |
foreach ( $taxs as $tax ) { | |
$tax = get_taxonomy( $tax ); | |
$terms = get_the_term_list( $post->ID, $tax->name, null, ', ' ); |
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 | |
/** | |
* Replaces default template title with faceted search "breadcrumbs" describing the instant query | |
* @author Benjamin J. Balter | |
* @package Faceted_Search_Widget | |
*/ | |
//function to be placed in theme's functions.php file... | |
function faceted_search_page_title( ) { |
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 ALL FILES (Recursively): | |
svn add --force * | |
# Remove deleted files: | |
svn status | grep '^\!' | cut -c8- | while read f; do svn rm "$f"; done | |
# HTTPS workaround: |
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
<PRE> | |
<?php | |
/** | |
* Generates list of random URLs for use with Siege | |
* Usefull for getting around caching and whatnot | |
*/ | |
//path to a wp-load file | |
include( 'trunk/wp-load.php' ); |