Originally published at
Disjunction. You can comment here or
there.
I was having some trouble with RokBox and RokNewsRotator. On
the CRBC site, we use RokBox to display inset thumbnails for expansion directly from our Section and Category pages, but since we do the inset first in the content, RokNewsRotator was stripping out the tags and leaving the image path in plain text, including it in the RNR teaser.
The solution was to strip out RokBox and everything between the RB tags first by making the following change in helper.php:
Original
function prepareContent( $text, $length=300 ) {
// strips tags won't remove the actual jscript
$text = preg_replace( "'