Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
any debug feedback? this continues to work perfectly for me and barely at all for anybody else.
Offline
#17 2006-01-26 06:38:25
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
It seems OK !
I tried your debugged version (post #12) and the extension tab is now showing it’s content.
I’m trying the plugin now.
Thank you for the good job !
Nico
Offline
#18 2006-01-26 08:07:40
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
And it actually works like a charm !
Some perfectible points, about personalisation, for further versions (but it’s very cool like this anyway) :
I prefer a smaller star line (a 15px ratio instead of 25px). Almost all takes place in the CSS except this hardcoded line: $width = $precedent["average"] * 25; How about a $starsize=25 setting near the beginning of the code ? Or best : a setting in the Extension tab that could manage the CSS sizes too.
There is no locale translation area in the plugin code so the words to translate are dispatched all over the plugin code.
These 2 points are no real problems. They’ll just make updates longer for personalised installs.
Nico
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
i’ll work on adding some options to tcm_rating_form to specify star size, and comp out some alternate images. it’s not as simple as changing css width, because the stars are technically background images, and background-size is not implemented in any big browsers.
Offline
#20 2006-01-27 08:51:05
- Niconemo
- Member

- From: Rhône-Alpes, France
- Registered: 2005-04-18
- Posts: 557
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Yes. I understand. I didn’t really mean providing several all done sizes, just allow lighter personnalisation for those needs to. As the CSS is “pasted” by the script, I was thinking may be it was possible to set another default width that would serve both to calculate the css (as there are always multiples of the image size : 25, 50, 75…) and to set the hardcoded part. Up to the user to make is own stars at the good size (it’s a 2 minute job for a graphic designer, I can help on that point if needed).
But I’m just imaginating what would be easy to use… and I must admit I’m completely unable do define what is easy to code ! And I know it’s a lot of time.
Last edited by Niconemo (2006-01-27 08:52:53)
Nico
Offline
#21 2006-01-28 05:58:25
- Dawk
- Member
- Registered: 2005-02-22
- Posts: 74
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Working like a charm! ;)
I hate to hit you with a request right off the bat, but how hard to extend it for a 10star rating?
I can handle extending the css part & would be happy to whip out a couple image sets to contribute.
Where I’m using it, the rated subjects have a lot of variables & 1-5 is kinda narrow.
Thanks, this is awesome, best rating plugin I’ve seen!
cheers
Offline
#22 2006-02-02 00:23:31
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
1/ OK, I put the full URL in the images and pressed append and no image is showing, <code>www.XXXXX.com/blog/textpattern/ratings/4.gif</code>.
What else? Is there a manual way to do it? Where do I put it?
2/ Also, I believe that rating with the IP is a bad idea, it will prevent a whole lot of people from voting because of proxies(aol, colleges, universaties, and others = millions)(you should look into setting cookies with and admin settable time limit or something). Can I turn this feature off, or comment the whole thing or part that makes it function out?
Last edited by Champak (2006-02-02 00:41:54)
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
hi,
1. www.XXXXX.com/blog/textpattern/ratings/4.gif will not work
use http://www.XXXXX.com/blog/textpattern/ratings/4.gif or /blog/textpattern/ratings/4.gif. Since you have the wrong css in, you’ll need to delete from the comment /* star rating css*/ on down in your css.
2. this doesn’t come up much in practice. for instance, I use a college connection, but each student is assigned an IP. AOL and all real ISPs allow each connection an IP, unless you are using a DSL connection shared between computers within a household. Cookies are possible, and perhaps in later version it will use cookies, but they also add complexity and are easily overridden.
Offline
#24 2006-02-02 02:25:56
- Champak
- Member
- Registered: 2006-01-31
- Posts: 56
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Thanks, everything is straight now.
SOME colleges, yes you are right on that, but not all. “AOL….allow each connection an IP”, yes, but they are shared and rotated between people aren’t they? So day one, one person can vote, day two that person can vote again because they have a new IP put to them, and the next person can’t vote because they now have the IP of the person who voted yesterday. I know on a small scale likelihoods of that happening is small, but on a large scale with a company like AOL the likelihood becomes bigger. I have had that problem with polling systems which is the only reason I brought it up. But this is getting down into something I myself do not truly fully know about. Just a suggestion from experience——even if my explanation may be slightly incorrect/skewed. But, is there a sample way to comment out the IP blocking?
And thanks also, great work.
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
I installed the plugin and got the stars to show up for an article, but clicking on them doesn’t do anything except reload the page. (Go to # on this page.) Looks like it could be awesome. How can I make it work?
Mark
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
do you have a url or any more information you can give?
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Sorry, I’m just working on localhost for now. I’m using Textpattern 4.03. I installed version 0.6c of the plugin. Under Active in the Plugins tab it says Yes. Appending of stylesheet and image seemed to go well — I did get the stars, after all. I put the tags txp:tcm_rating_form and txp:tcm_rating_num at the end of an article, and they both show up to say the article hasn’t been rated.
That’s probably not very informative. Let me know if there is anything else I can tell you.
Mark
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
are you using clean urls?
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
no
Mark
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
at the moment, the plugin requires clean urls. this might change in the future, but it looks like over 90% of installations are using clean urls.
Offline