I am so close on this.
I have implemented the Numinix integration. I still want the sideboxes (of course), so using DivaVocals' suggestion, I am attempting to use the wordpress loop with the blank sidebox mod (admin editable sideboxes does not allow PHP from what I can tell, and this mod is from the same contributor).
First, please know that I don't understand PHP.
When I enter the code (includes/MY_TEMPLATE/sideboxes/tpl_blank_sidebox.php) as such:
Code:
<?php
define('WP_USE_THEMES', false);
require('/MY_ABSOLUTE_PATH/blog/wp-load.php');
query_posts('showposts=5');
$content = '<span class="specialclass">' . BOX_HEADING_BLANK_SIDEBOX . '</span>';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= '<hr />';
$content .= '' ?>
<?php while (have_posts()): the_post(); ?>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br>
<?php endwhile; ?>
<?php
$content .= '</div>';
?>
... the posts appear, but they do so ABOVE my heading. It struck me that the link elements may need to be declared as content, so I modified the syntax accordingly:
Code:
<?php
define('WP_USE_THEMES', false);
require('/MY_ABSOLUTE_PATH/blog/wp-load.php');
query_posts('showposts=5');
$content = '<span class="specialclass">' . BOX_HEADING_BLANK_SIDEBOX . '</span>';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
$content .= '<hr />';
<?php while (have_posts()): the_post(); ?>
<?php $content .= '<a href="' . the_permalink(); . '">' . the_title(); . '</a><br>'; ?>
<?php endwhile; ?>
<?php
$content .= '</div>';
?>
When I did this, it broke the sidebox (did not display).
Could someone/anyone with code experience help me out?
DivaVocals, I'm going to single you out for a moment. You proposed the Numinix + Sideboxes solution (and a good one it is) for quite some time. You are vocal in your ridicule of WOZ, often siting this alternative; however you are one of the few who truly have this (both Numinix AND sideboxes) as an option. I appreciate that you spent money developing sideboxes for use with your customers, but until the rest of us have a solution for sideboxes with Numinix, your cries of "there is no need to use WOZ" will not fully be heard. I apologize for that last run-on sentence.
Bookmarks