i saw this topic:
http://board.s9y.org/viewtopic.php?t=80 ... jax+rating
and like to add this funky rating bar to my site as well.
i tried to get it working without the karma plugin but it wont appear.
this is what i have done.
-------------------------------
i wrote this into the index.tpl:
Code: Select all
<script type="text/javascript" language="javascript" src="{$serendipityHTTPPath}plugins/serendipity_ajax_rating_bar/js/behavior.js"></script>
<script type="text/javascript" language="javascript" src="{$serendipityHTTPPath}plugins/serendipity_ajax_rating_bar/js/rating.js"></script>
<link rel="stylesheet" type="text/css" href="{$serendipityHTTPPath}plugins/serendipity_ajax_rating_bar/css/rating.css" />
Code: Select all
function ajaxrating() {
rating_bar('1',5);
}
$serendipity['smarty']->register_function('ajaxrating', 'ajaxrating');
then i tried this :
Code: Select all
<div class="eintrag">
{$ajaxrating}
</div>
as u can see i have no experience with php.
it would be great if there is someone who can help me.
thx,
timer303