registerFunction( 'onPrepareContent', 'botRating' ); function botRating( $published, &$row, &$params, $page=0 ) { global $Itemid, $id, $ispopup; $html1 = ''; $html2 = ''; if(!$ispopup) { $html1 .= '
\n"; $html3 = ''; $html3 .= $html2; $html3 .= $html1; $row->text = str_replace( "{vote-ergebniss}", $html2, $row->text ); $row->text = str_replace( "{vote-abstimmen}", $html1, $row->text ); $row->text = str_replace( "{vote}", $html3, $row->text ); return true; } ?>