Skip to content

Instantly share code, notes, and snippets.

View viruthagiri's full-sized avatar

Viruthagiri Thirumavalavan viruthagiri

  • Bangalore, India
View GitHub Profile
@viruthagiri
viruthagiri / tmb-wpmu-nag-remove.php
Created February 16, 2012 21:43 — forked from traeblain/tmb-wpmu-nag-remove.php
Remove WPMU's Horribly Useless Notification Plugin Nag
<?php
/*
Plugin Name: Remove WPMU Notification Plugin Nag
Plugin URI: http://wp.me/p1Aj2B-6g
Description: WPMU started trying to force people that use plugins by their developers to install a Notification plugin by making a persistent notification bug the admins. This removes that annoying piece.
Version: 1.0
Author: Trae Blain
Author URI: http://traeblain.com
License: GPL2
*/
@viruthagiri
viruthagiri / gist:1848102
Created February 16, 2012 21:44 — forked from bueltge/gist:757903
This WordPress Plugin demonstrates how you can build your own plugin pages using the WordPress provided draggable metaboxes, requires WordPress 2.7 version, supports WordPress 2.8 changed boxing layout engine
<?php
/*
Plugin Name: HowTo Plugin
Plugin URI:
Description: This Plugin demonstrates how you can build your own plugin pages using the WordPress provided draggable metaboxes, requires WordPress 2.7 version, supports WordPress 2.8 changed boxing layout engine
Author: Heiko, Frank
Author URI: http://bueltge.de
Version: 0.1
License:
@viruthagiri
viruthagiri / wp-syntax_colorizer.php
Created February 16, 2012 21:58
WP-Syntax Colorizer - Custom Geshi Colors
<?php
/*
Plugin Name: WP-Syntax Colorizer
Plugin URI: http://articles.akgfx.com/2008/04/wp-syntax-colorizer/
Description: A plugin allowing you to easily set all the WP-Syntax color settings in one place. WP-Syntax was developed by Ryan McGeary.
Author: Arash Keshmirian
Version: 0.1
Author URI: http://www.akgfx.com/
*/
@viruthagiri
viruthagiri / codeeditor.php
Created February 16, 2012 21:58 — forked from RalfAlbert/codeeditor.php
WP Advanced Code Editor (new version)
<?php
/*
Plugin Name: WP Advanced Code Editor
Plugin URI: http://www.techlyzer.com/wp-advanced-code-editor
Description: Integrates the EasyArea advanced code editor to WordPress, complete with syntax hilighting, line numbering, and full screen editing! Not compatabile with the WYSIWYG editor. Turn it off!
Author: John Kolbert
Version: 1.0
Author URI: http://www.techlyzer.com/
Copyright Notice
@viruthagiri
viruthagiri / colorbox.less
Created March 12, 2012 11:09 — forked from barryvdh/colorbox.less
Colorbox skin for Bootstrap
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:10001; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
@viruthagiri
viruthagiri / delay_publish.php
Created March 29, 2012 16:06 — forked from franz-josef-kaiser/delay_publish.php
Delay the ability to publish posts
<?php
/**
* Plugin Name: Delay post publishing
* Plugin URI: http://unserkaiser.com
* Description: Only allows publishing a post if the user registered one week ago.
* Version: 0.1
* Author: Franz Josef Kaiser
* Author URI: http://unserkaiser.com
*/
// Not a WordPress context? Stop. Why? Ask @toscho
@viruthagiri
viruthagiri / functions.php
Created March 31, 2012 18:27 — forked from 50dollarblogs/functions.php
Add social proof to your WordPress site in plain text (see 50dollarblogs.net/social-proof for more info)
<?php
// Add social proof numbers to footer (repositioned to top of page via CSS)
function add_social_proof() { ?>
<div id="social-proof">
<ul>
<li class="facebook"><a href="YOUR_FACEBOOK_PAGE_URL" target="_blank" title="Disrupting the Rabblement on Facebook"><?php facebook_fan_count() ?> Fans</a></li>
<li class="twitter"><a href="YOUR_TWITTER_PROFILE_URL" target="_blank" title="Follow Niall on Twitter"><?php twitter_follower_count() ?> Followers</a></li>
<li class="email"><a href="YOUR_SUBSCRIBER_FORM_URL" target="_blank" title="Subscribe to email updates"><?php subscriber_count() ?> Subscribers</a></li>
</ul>
</div>
@viruthagiri
viruthagiri / sharing_caring.php
Created March 31, 2012 18:29 — forked from ramseyp/sharing_caring.php
Social Media Sharing code for WordPress articles
<?php
/* Add a social media share box to your WordPress site.
If you want the email sharing, you'll need to install WP-Email: http://wordpress.org/extend/plugins/wp-email/
Insert <?php s25_sharing_caring(); ?> to your template where you want the box to appear. Must be used inside the Loop.
Facebook Like Button code can be built here: http://developers.facebook.com/docs/reference/plugins/like/
Tweet Button code: https://dev.twitter.com/docs/tweet-button
LinkedIn Share Button: http://developer.linkedin.com/plugins/share-plugin-generator
Google Plus 1: http://www.google.com/webmasters/+1/button/
@viruthagiri
viruthagiri / delicioustowordpress.php
Created March 31, 2012 18:32 — forked from felixtriller/delicioustowordpress.php
This script fetches the latest links from Delicious and creates a WordPress post. And a little bit more.. :)
<?php
if ($_GET['key'] != '123456')
die('Nicht erlaubt.');
$file = './delicious2wordpress.data';
$read = fopen($file, 'r');
$line = intval(fgets($read, 64));
fclose($read);
@viruthagiri
viruthagiri / SocialHistory.js
Created March 31, 2012 18:33
Enables your site to know which social bookmarking badges to display to your visitors. It tells you all social sites the user has gone to, or you can query for a specific one.
/*
* Social Limit - Only the social you care about.
*
* Enables your site to know which social bookmarking badges to display to your
* visitors. It tells you all social sites the user has gone to, or you can
* query for a specific one.
*
* For example:
*
* var sl = SocialHistory();