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: RoboHash Avatar | |
Plugin URI: http://trepmal.com/ | |
Description: Robohash characters as default avatars | |
Author: Kailey Lampert | |
Version: 0.1 | |
Author URI: http://kaileylampert.com/ | |
*/ | |
/* |
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: XKCD Timer | |
Plugin URI: | |
Description: Pointless timer inspired by http://xkcd.com/363/ (forked from http://wordpress.org/extend/plugins/wp-timer/) Screenshot: http://screencast.com/t/V5JeD4GQot | |
Version: 1 | |
Author: Kailey Lampert | |
Author URI: http://kaileylampert.com | |
Copyright (C) 2011 Kailey Lampert |
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
jQuery(document).ready( function($) { | |
$('#comment').keyup( function( event ) { | |
if (event.keyCode == '13') { | |
content = $(this).val(); | |
content = content.replace("\n\n", "\n"); | |
content = content.split("\n"); | |
total = content.length - 1; |
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
// http://tinymce.moxiecode.com/wiki.php/API3:class.tinymce.Plugin | |
(function() { | |
tinymce.create('tinymce.plugins.WRAP', { | |
/** | |
* Initializes the plugin, this will be executed after the plugin has been created. | |
* This call is done before the editor instance has finished its initialization so use the onInit event | |
* of the editor instance to intercept that event. | |
* |
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: Scroll-To-Top Admin Bar | |
Description: Click anywhere on the Admin Bar that doesn't have a predefined purpose (links, input), and it'll scroll you to the top | |
Author: Kailey Lampert | |
Author URI: http://kaileylampert.com | |
*/ | |
add_action( 'wp_head', 'add_jq' ); | |
add_action( 'admin_head', 'add_jq' ); |
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
jQuery(document).ready(function($) { | |
$('#notepad').click(function(e) { | |
tag = e.target.tagName; | |
if ( tag != 'TEXTAREA' && tag != 'INPUT' ) { | |
contents = $(this).html(); | |
$(this).html( '<textarea style="display:block;width:98%;height:100px;">' + contents + '</textarea><input type="submit" class="save" style="position:relative;z-index:99" />' ); | |
} | |
}); | |
$('#notepad input.save').live( 'click', function() { |
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: Bulleted Lists | |
new Bulleted_List(); | |
class Bulleted_List { | |
function __construct() { |
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: Choose password at registration (Multisite) | |
//Description: Doesn't change the confirmation screen or email | |
add_action('signup_extra_fields', 'ask_for_password'); | |
function ask_for_password( $errors ) { | |
if ( $errmsg = $errors->get_error_message('bad_password') ) { | |
echo '<p class="error">'.$errmsg.'</p>'; | |
} |
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: No Front-Page Sticky Posts | |
//Description: Disables sticky posts on the front page (main blog page) | |
/* | |
upload this file to wp-content/mu-plugins | |
it'll automatically run, no need for activation | |
if multisite, it will run for *all* sites | |
OlderNewer