ajax rating the second

Discussion corner for Developers of Serendipity.
Post Reply
timer303
Posts: 4
Joined: Mon Jan 28, 2008 1:15 pm

ajax rating the second

Post by timer303 »

hi,

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" />
and i put this into the config.inc.php:

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>
to get it work, but it wont ;(

as u can see i have no experience with php.
it would be great if there is someone who can help me.

thx,
timer303
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: ajax rating the second

Post by garvinhicking »

Hi!

Where did you declare this "rating_bar" function? I don't see it anywhere mentioned either here or there.

However, Judebert has currently made big progress with his rating plugin. Check this thread:

http://board.s9y.org/viewtopic.php?t=11316&highlight=

Judebert has a beta version ready, if you mail him, he'll surely send it to you.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
timer303
Posts: 4
Joined: Mon Jan 28, 2008 1:15 pm

Post by timer303 »

wow!

that was fast :)

thanks garvin again!
Post Reply