Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: jmd_rate: A CSS star rater
Works wonderfully in FireFox but not in IE6, but I think it must be something to do with my setup here at work.
Can I suggest a variation on the theme? A very useful one, I think.
The idea is to have the voting option as part of a comment form so that with each rating a user needs to add a comment too. Pretty much like you see on Amazon.
Offline
Re: jmd_rate: A CSS star rater
Are you getting styling errors in IE6? I don’t support IE6, but I imagine the fix for whatever error is height: 1%
:P.
I haven’t played too much with adding events to the comment form, but I’ll give it a shot.
Offline
Re: jmd_rate: A CSS star rater
jm, i’ve changed php to 5 and are having some problems.
Firstly, I’m not sure where the images should go. The links to the graphics you posted don’t work. I’ve got my own starts but I don’t know what to call them or where to place them.
Withotu stars I get a list of options more or less like this:
* Currently rated * 1/4 * 2/4 * 3/4 * 4/4The numbers are linked correctly (eg: http://www.domain.com/page?rating=1) but clikcing them will not register a vote – status doesn’t change from “his article hasn’t been rated”.
I haeb a feeling there is something extrenmely simple I am not doing.
Offline
Re: jmd_rate: A CSS star rater
Oops, I forgot to fix the link – the star image is here. For the HTML output, you’ll get a raw list if you don’t have any CSS linked to it.
- Head to Extensions>jmd_rate and create your CSS. Enter the path to your star image (or hotlink mine)
- Place the CSS in a CSS file
- Link to it in your
head
For the rating, are you redirected to /page?rating=1 (and then to /page)?
Last edited by jm (2008-03-31 16:59:44)
Offline
Re: jmd_rate: A CSS star rater
Got most of it working but the display of the current score doesn’t seem to work.
Also, i think the CSS conflicts with my extensive use of CSS for layout. I can’t place things where I want them to be.
I’ll give it a go when I have more time.
Thanks.
Last edited by lozmatic (2008-03-31 23:33:02)
Offline
Re: jmd_rate: A CSS star rater
That is strange – you should have <li class="current_rating" style="width: Xpx;">Currently rated Y</li>
immediately after the ul
in your source code. I’ll see if I can replicate it – can you post the jmd_rate section from your template?
Off topic: Any reason for using a span to wrap a ul? Might want to close some of those tags too :).
Offline
Re: jmd_rate: A CSS star rater
ah, i got rid of the ‘Currently rated’ bit because i wanted to have the stars fit nicely next to the page’s title.
Yeah, it’s all a bot messy there. I tried wrapping things in nasty nasty ways to try and position the stars.
Offline
Re: jmd_rate: A CSS star rater
Tsk, tsk! The li[class=current_rating] is responsible for the current score display (half-filled stars, etc). If the CSS and HTML is correct (and not too invalid), it’ll draw the stars and not display the text (text-indent: -9999px
). I suggest grabbing a new copy of the plugin :).
Offline
Offline
Re: jmd_rate: A CSS star rater
Ok, now it works wonderfully and beautifully – i’ve positioned elements exactly where I want them.
Thanks.
Offline
Re: jmd_rate: A CSS star rater
Cool – glad you got it working.
I’m planning on adding read-only display (for jmd_rate_article and jmd_article_cf use) next (probably this week), then I’ll work on Ajax (this weekend?).
Offline
Re: jmd_rate: A CSS star rater
Cool, well, as is… it’s very cool.
One thing I’ve noticed, though. When I rate using firefox the new rating only displays when I click shift and the refresh button. Until I do that I can continue voting… is this the case with anyone else?
Offline