Skip to content

Instantly share code, notes, and snippets.

View michaelkpate's full-sized avatar

Michael K Pate michaelkpate

View GitHub Profile

Keybase proof

I hereby claim:

  • I am michaelkpate on github.
  • I am michaelkpate (https://keybase.io/michaelkpate) on keybase.
  • I have a public key ASANt2bGjh5l9wk3K6HZiF47-oU_mYsvXndmJkvQr-7r3go

To claim this, I am signing this object:

@michaelkpate
michaelkpate / rah_replace.txt
Created November 11, 2015 17:05
Compiled for Textpattern version of https://github.com/gocom/rah_replace
# Name: rah_replace v0.4.2
# Type: Public plugin
# Brings search and replace functionality to Textpattern
# Author: Jukka Svahn
# URL: http://rahforum.biz
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
# Name: jdw_if_ajax v0.1
# Type: Client side plugin
# Helper tags for TXP + AJAX
# Author: Jan De Wilde
# URL: http://www.jandewilde.com/
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# ob1_advanced_search v1.032b
# Makes it possible to create a more advanced search feature for your users.
# Henrik Jönsson
# http://rise.lewander.com/
# ......................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Paste the following text into the 'Install plugin' box:
# ......................................................................
@michaelkpate
michaelkpate / jmd_rate.txt
Created September 26, 2015 21:38
jmd_rate: A CSS star rater
# Name: jmd_rate v0.4-DEV
# Type: Public side plugin
# CSS star rater (old, unsupported)
# Author: jm
# URL: https://github.com/jmdeldin/jmd_rate
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern - http://textpattern.com/
# To install: textpattern > admin > plugins
# Name: rss_suparchive v0.18
# Type: Public plugin
# will generate an HTML Definition List of articles grouped by date
# Author: Rob Wilshire | Ben Weiner
# URL: https://gist.github.com/readingtype/1952607
# Recommended load order: 5
# .....................................................................
# This is a plugin for Textpattern CMS - http://textpattern.com/
# To install: textpattern > admin > plugins
@michaelkpate
michaelkpate / rss_suparchive.php
Last active September 11, 2015 14:52 — forked from readingtype/rss_suparchive.php
Modify Textpattern plugin, http://www.wilshireone.com/textpattern-plugins/rss-suparchive. Format the excerpt with Textile if appropriate
// rss_suparchive article listing plugin
// by Rob Sable
// http://www.wilshireone.com
// Version 0.1 - 11/02/2004
// Full revision history at http://www.wilshireone.com/textpattern-plugins/rss-suparchive
// Version 0.16.1 - 01/09/2006 - Fix broken file downloads. Fix inadvertent date filtering on article pages.
// Version 0.17 - 08/08/06 - Change categories to display title instead of name.
// Version 0.18 - 08/09/06 - Add showcommentscount, showzerocount, countprefix, countsuffix to suparchive and suparchive_bycat. Change to use strftime for date formatting to allow for localization. Add wildcard and exclude format for section attribute on all 3 tags. (thanks Andrew).
// 20120301 BW Add ability to decode Textile markup in excerpts. * if other markup is used this probably won't work, but if USE_TEXTILE is false it will return the raw text. See rss_format() below *
@michaelkpate
michaelkpate / mkp_section_header_link
Created February 9, 2011 17:20
a textpattern plugin for creating a feed link for a specific section
@michaelkpate
michaelkpate / mkp_header_link
Last active September 24, 2015 22:27
a textpattern plugin for creating a link to a feed
@michaelkpate
michaelkpate / mkp_comments_count
Last active September 24, 2015 22:27
a textpattern plugin for returning the number of comments attached to an article
The functionality this plugin provided is available in the native tag <txp:comments_count />.
function mkp_comments_count($atts)
{
global $thisarticle;
if (empty($thisarticle)) return;
extract(lAtts(array(
'suppresszero' => '0',
'delimiter' => '0'