For my recent project I want to use some WordPress core functions but it’s too disproportionate to install the full system. Then I found BackPress which is exactly what I need. It’s a collection of WordPress, bbPress and GlotPress libraries.
The usage of this library collection requires some work. In fact you only need to include functions.core.php and the libraries you need. But to find out what files you exactly need can be hard because some functions have a lot of dependencies so my proposal is to include everything as you needn’t to care about any dependencies later on.
Furthermore some files have to be included exclusive-or what means that either the one has to be included or the other one. Download backpress.php and include the extracted file in your web project.
<?php
// this constant is needed for class.bpdb-multi.php
// leave the value empty
define('BACKPRESS_PATH','');
// the core functions
include_once('backpress/includes/functions.core.php');
include_once('backpress/includes/class.bp-log.php');
include_once('backpress/includes/class.bp-roles.php');
include_once('backpress/includes/class.bp-sql-schema-parser.php');
include_once('backpress/includes/class.bp-user.php');
include_once('backpress/includes/class.bpdb-multi.php');
include_once('backpress/includes/class.bpdb.php');
include_once('backpress/includes/class.ixr.php');
include_once('backpress/includes/class.mailer-smtp.php');
include_once('backpress/includes/class.mailer.php');
include_once('backpress/includes/class.passwordhash.php');
include_once('backpress/includes/class.wp-ajax-response.php');
include_once('backpress/includes/class.wp-auth.php');
include_once('backpress/includes/class.wp-dependencies.php');
include_once('backpress/includes/class.wp-error.php');
include_once('backpress/includes/class.wp-http.php');
include_once('backpress/includes/class.wp-pass.php');
include_once('backpress/includes/class.wp-scripts.php');
include_once('backpress/includes/class.wp-styles.php');
include_once('backpress/includes/class.wp-taxonomy.php');
include_once('backpress/includes/class.wp-users.php');
include_once('backpress/includes/functions.bp-options.php');
include_once('backpress/includes/functions.compat.php');
include_once('backpress/includes/functions.formatting.php');
include_once('backpress/includes/functions.kses.php');
include_once('backpress/includes/functions.plugin-api.php');
include_once('backpress/includes/functions.shortcodes.php');
include_once('backpress/includes/functions.wp-cron.php');
include_once('backpress/includes/functions.wp-object-cache.php');
include_once('backpress/includes/functions.wp-scripts.php');
include_once('backpress/includes/functions.wp-styles.php');
include_once('backpress/includes/functions.wp-taxonomy.php');
include_once('backpress/includes/interface.bp-options.php');
// Only include one of these two
include_once('backpress/includes/loader.wp-object-cache-memcached.php');
//include_once('backpress/includes/loader.wp-object-cache.php');
?>
Sometimes I want to leave a comment after reading an interesting post. In some cases the comments are closed for whatever reason. This can be frustrating if there’s no other way to contact the blog’s owner and you know that it could fix his problem or you just want to let him know that there’s a plugin for what he’s looking for. Thus the communication is broken.