diff --git a/b2-include/b2functions.php b/b2-include/b2functions.php index 71d9f13aca..8fead8121f 100644 --- a/b2-include/b2functions.php +++ b/b2-include/b2functions.php @@ -115,6 +115,14 @@ function wpautop($pee, $br=1) { return $pee; } +function popuplinks($text) { + // Comment text in popup windows should be filtered through this. + // Right now it's a moderately dumb function, ideally it would detect whether + // a target or rel attribute was already there and adjust its actions accordingly. + $text = preg_replace('//i', "", $text); + return $text; +} + function autobrize($content) { $content = preg_replace("/
\n/", "\n", $content); $content = preg_replace("/
\n/", "\n", $content); diff --git a/b2commentspopup.php b/b2commentspopup.php index a0123eb46b..332a90219b 100644 --- a/b2commentspopup.php +++ b/b2commentspopup.php @@ -1,7 +1,10 @@ +$blog=1; +include('blog.header.php'); +add_filter('comment_text', 'popuplinks'); +while($row = mysql_fetch_object($result)) { start_b2(); +?> + <?php echo $blogname ?> - Comments on "<?php the_title() ?>" @@ -11,13 +14,12 @@ $blog=1; include ("blog.header.php"); while($row = mysql_fetch_object($result)) @import url( layout2b.css ); body { margin: 3px; } - - + +

-

Comments

    @@ -94,7 +96,6 @@ QQQ; } ?> -