Skip to content

Instantly share code, notes, and snippets.

View ntwb's full-sized avatar
🏠
Working from home

Stephen Edgar ntwb

🏠
Working from home
View GitHub Profile
@ntwb
ntwb / post_to_slack.php
Created October 21, 2015 00:39 — forked from AaronRutley/post_to_slack.php
post_to_slack.php
<?php
/**
* Post a message to Slack from WordPress
*
* @param string $message the message to be sent to Slack
* @param string $channel the #channel to send the message to (or @user for a DM)
* @param string $username the username for this bot eg : WordPress bot
* @param string $icon_emoji the icon emoji name for this bot eg :monkey:
*
<?php
/**
* Implementation of Wotlab Burning Board v4.x Forum Converter.
*
* @since bbPress (r5104)
* @link Codex Docs http://codex.bbpress.org/import-forums/burningboard
*/
class wbb4 extends BBP_Converter_Base {
<?php
/*
Plugin Name: WPORG - Custom Forum Moderator Role
Plugin URI: https://wordpress.slack.com/archives/meta-i18n/p1436133108000049
Description: WPORG - Custom Forum Moderator Role
Version: 0.0.1
Author: Stephen Edgar aka @netweb
Author URI: https://netweb.com.au
*/
@ntwb
ntwb / ExpressionEngine.php
Last active June 29, 2019 11:13 — forked from RickeyMessick/gist:780b857970a4bb72a79f
bbPress- Expression Engine Importer
<?php
/**
* ExpressionEngine converter base impoprter template for bbPress
*
* @since bbPress (rXXXX)
* @link Codex Docs http://codex.bbpress.org/import-forums/expression-engine
*/
class ExpressionEngine extends BBP_Converter_Base {
@ntwb
ntwb / smf-bbpress-gd.php
Created March 17, 2015 23:49
SMF to bbPress attachments import script (GD Attachments) via Mike Russell https://bbpress.org/forums/topic/smf-import-to-bbpress/page/5/#post-159797
<?php
//Standalone script to import smf attachments for the GD bbPress Attachments plugin
//Execute after you have imported smf into bbPress
require( 'wp-load.php' );
require( 'wp-admin/includes/image.php' );
$verbose = false;
//$limit = " LIMIT 0,1";
$limit = " LIMIT 0,99999";
@ntwb
ntwb / DeluxeBB.php
Created October 6, 2014 04:56
DeluxeBB Importer for bbPress
<?php
/**
* Implementation of DeluxeBB v1.x Converter.
*
* @since bbPress (rXXXX)
*
* @link Codex Docs http://codex.bbpress.org/import-forums/deluxebb
*/
class deluxeBB extends BBP_Converter_Base {
@ntwb
ntwb / ntwb_bbpress_topic_reply_wp_search_results.php
Created September 26, 2014 07:13
bbPress - Include Topics and Replies in WordPress Search Results
<?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
*/
<?php
/*
Plugin Name: bbPress - Random Single Topic
Plugin URI: https://gist.github.com/ntwb/ca87b9b75a42215b2889
Description: bbPress - Random Single Topic
Version: 0.1
Author: Stephen Edgar - Netweb
Author URI: http://netweb.com.au
*/
// bbPress - Random Single Topic
<?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/ &rarr; forums/forum/ID/. forums/topic/TOPIC_SLUG/&rarr;forums/topic/ID/
* Author: Kolya Korobochkin
* Author URI: http://korobochkin.com/
* Version: 1.0.0
* Text Domain: bbpress_permalinks
* Domain Path: /languages/
@ntwb
ntwb / ntwb_bbpress_custom_pagination.php
Created June 4, 2014 06:34
bbPress - Custom Pagination Text
<?php
/*
Plugin Name: bbPress - Custom Pagination Text
Plugin URI: https://gist.github.com/ntwb/10bf67b898e25db59b1f
Description: bbPress - Custom Pagination Text
Version: 0.1
Author: Stephen Edgar - Netweb
Author URI: http://netweb.com.au
*/