Table of Contents

Dokuwiki Templates

snippets

shoutbox

<div class="discussion-sb">
<?php
global $ID, $INFO;
$realid = $ID;
$realuser = $_SERVER['REMOTE'];
$ns = 'stream';
if ($my =& plugin_load('helper', 'discussion')) {
$act =& plugin_load('action', 'discussion');
$topics = $my->getThreads($ns);
    foreach( $topics as $t ) {
      $ID = $t['id'];
      if( $INFO['isadmin'] ) {
        echo '<a class="add" href="/'.$t['id'].'">[add]</a>';
      } 
      $show = $act->_show( true, null, true );
   
    }
    $ID = $realid;
}
?>
</div>

Log In