Installation of the PixoPoint theme Integrator
These instructions are for the PixoPoint Theme Integrator plugin.
Installing the WordPress plugin
- Upload the plugin to your wp-content/plugins folder or install via the built in plugin installer
- Activate the plugin
- Edit your WordPress theme
- Edit your ‘other’ theme
Edting your WordPress theme
After installing and activating the PixoPoint Theme Integrator plugin you need to add some short code snippets to your WordPress theme indicate which chunks of code you wish to have cached for use in the other software.
To indicate the beginning of a code snippet, you need to add the following code snippet where 1 indicates that this is the first code snippet.
<?php pixopoint_theme_integrator( 'start', '1' ); ?>
To indicate the end of that particular code snippet you need to change ‘start’ to ‘end’ as follows:
<?php pixopoint_theme_integrator( 'end', '1' ); ?>
Once you have added those functions where required in your theme, go to the plugins admin page within the WordPress admin panel (found under “settings”). Here you can control the update frequency, choose to only cache the plugin via a specific page or post and remove small chunks of code where necessary.
The plugins admin page
Once you have the plugin setup as required, you can include the code snippets into your other software and they should update themselves dynamically as your WordPress powered site changes. The plugins admin page (Under settings->PixoPoint Theme Integrator) lists the PHP required to load those HTML files (assuming your other software uses PHP based templates).
Editing the theme from the other software
It’s impossible to provide information about how to use the stored HTML in your theme for all systems, but for any software which uses a PHP based templating system (eg: bbPress and SMF) you can use a simple PHP include or requirement statement like this (where PATH_TO_FOLDER is the server path to the WordPress plugins’ folder):
<?php require( PATH_TO_FOLDER . '/chunk1.html' ); ?>
For another chunk, you just need to change the number after ‘chunk’, like so:
<?php require( PATH_TO_FOLDER . '/chunk2.html' ); ?>
Code similar to this is displayed in the plugins admin page and includes the actual path directly to the folder on your own site.
Support
We are happy to receive bug reports and code improvements in our forum. But we will not be providing free support for integrating your themes sorry. For assistance with using the plugin, please contact us for pricing information.
