Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-01-25 19:52:14

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [plugin] [ORPHAN] tcm_rating v2 beta release

fix works, but what should the image path be? ../images/3.gif for example?

Offline

#14 2006-01-25 19:54:13

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

Re: [plugin] [ORPHAN] tcm_rating v2 beta release

i prefer absolute paths, but basically upload one of the star images, and get it’s url from the image page. so it would be like /images/3.gif or .png

Offline

#15 2006-01-25 20:05:44

sekhu
Member
Registered: 2005-05-12
Posts: 428
Website

Re: [plugin] [ORPHAN] tcm_rating v2 beta release

hmm tried that and hit append but it didn’t append the path to the css, but also it didnt’ apply the star css to the main css.

gonna wait on other feedback and uninstall it for now, could just be me

Offline

#16 2006-01-25 20:18:07

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#19 2006-01-27 00:45:28

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

#23 2006-02-02 00:52:33

tmacwrig
Archived Plugin Author
Registered: 2004-03-06
Posts: 204
Website

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

Board footer

Powered by FluxBB