Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
<?php | |
// Custom bbp_list_forums bbPress code by @Lynq | |
// Demo: http://teamoverpowered.com/forums/ | |
// Code Discussion: http://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/ | |
public function custom_bbp_list_forums( $args = '' ) { | |
// Define used variables | |
$output = $sub_forums = $topic_count = $reply_count = $counts = ''; | |
$i = 0; |
<?php | |
// bbPress custom last_poster_block code by @Lynq | |
// Demo: http://teamoverpowered.com/forums/ | |
// Code Discussion: http://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/ | |
/** Last poster / freshness block for forums */ | |
public function custom_last_poster_block( $subforum_id = "" ) { | |
echo BBP_Default::custom_get_last_poster_block( $subforum_id = "" ); | |
} | |
<?php | |
// bbpress custom last_poster_block_topics code by @Lynq | |
// Demo: http://teamoverpowered.com/forums/ | |
// Code Discussion: http://bbpress.org/forums/topic/customising-bbp_list_forums-last-poster-block/ | |
/* Last poster / freshness block for topics */ | |
public function custom_last_poster_block_topics() { | |
echo BBP_Default::custom_get_last_poster_block_topics(); | |
} | |
<?php | |
/* | |
Plugin Name: bbPress - Customised forum list arguments | |
Plugin URI: https://gist.github.com/ntwb/3797945 | |
Description: bbPress - Customised forum list arguments | |
Version: 0.3 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ |
<?php | |
/* | |
Plugin Name: bbPress - Show Lead Topic | |
Plugin URI: https://gist.github.com/ntwb/3815686 | |
Description: bbPress - Show Lead Topic | |
Version: 0.2 | |
Author: Stephen Edgar - Netweb | |
Author URI: http://netweb.com.au | |
*/ |
<?php | |
/** | |
* Implementation of Mingle Forums converter. | |
* | |
* @since bbPress (r4689) | |
*/ | |
class Mingle extends BBP_Converter_Base { | |
/** |
<?php | |
/** | |
* Implementation of Vanilla 2.0.18.1 Converter | |
* | |
* @since bbPress (r4717) | |
* @link Codex Docs http://codex.bbpress.org/import-forums/vanilla | |
*/ | |
class Vanilla extends BBP_Converter_Base { |
SELECT `forum`.`ID`, `forummeta`.`meta_value`, `group`.`id` | |
FROM `wp_posts` AS `forum` | |
LEFT JOIN `wp_postmeta` AS `forummeta` | |
ON `forum`.`ID` = `forummeta`.`post_id` | |
AND `forummeta`.`meta_key` = '_bbp_old_forum_id' | |
LEFT JOIN `wp_bp_groups` AS `group` | |
ON `group`.`slug` = `forum`.`post_name` | |
WHERE `forum`.`post_type` = 'forum' AND `group`.`id` > 0 | |
GROUP BY `forum`.`ID`; |
post_author | post_date | post_content | post_title | |
---|---|---|---|---|
1 | 2013-09-01 00:37:17 | Main Category Description | Main Category | |
1 | 2013-09-01 00:37:17 | Main Forum Description | Main Forum |