Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#49 2006-03-16 03:15:01

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

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

hi tmacwrig.

is there any chance to have a “rating-per-each-comment” system

I mean: each time a visitor adds a comment, it has: name, e-mail, message, rating.

Then, in the comments list, each comment will show the rating that each commenter have rate for the article.
Then, it can also be an “average” rating.

In case i’m not explaining myself: I’m not asking to rate each comments, but that each commenter can rate the article from the comment form.

Thanks, <small>and excuse my english</small>


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#50 2006-03-16 03:17:46

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

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

it is possible, and it will be possible in a while. (read a week or two)

Offline

#51 2006-03-16 04:52:30

peteb
New Member
Registered: 2004-10-19
Posts: 2

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

Thanks tmacwrig. Working now. BTW great plugin. Looking forward to the other features mantioned.

Offline

#52 2006-03-16 10:05:27

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

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

OOhhhh, verry cool! I will try this out ASAP and will post the results here! Thanx for fixing it man! :)

Offline

#53 2006-03-20 09:45:41

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

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

Have you updated the file so I can just download again or should I edit it myself with the fixes you mentioned a couple of replies before. (Sorry for the late reply, I have just now found the time to work on this.)

Offline

#54 2006-03-20 10:56:09

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

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

OK, I have got it to work, but it still has some issues. I get the status message twice if the arrticle hasn’t been rated (check out some unrated articles on http://herbiv.org), and here is an example of a rated one http://herbiv.org/blog/intervju-face-it

Now, why when I rate an article by clicking on a star, it throws me to the top of the page? I had to insert an ID after that anchor so it wouldn’t do that. While this is a minor issue, I’d really like to see the double messages for noratings=”“ fixed. (They appear doubled when I add the <code><txp:tcm_rating_num noratings=”<p>Niko još uvek nije ocenio ovaj članak</p>” hasbeen=”<p>Članak je ocenjen <strong>%r</strong> (put/puta)</p>” /></code> after the rating form)

Offline

#55 2006-03-20 15:15:33

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

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

Just set noratings=”“ in either tcm_rating_num or tcm_rating, and the messages wouln’t be doubled.

Offline

#56 2006-03-20 15:24:57

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

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

<code><div id=“rating-wrapper”>
<txp:tcm_rating_form />
<txp:tcm_rating_num noratings=”<p>Niko još uvek nije ocenio ovaj članak</p>” hasbeen=”<p>Članak je ocenjen <strong>%r</strong> (put/puta)</p>” />
</div></code>

There’s my code for the plugin, I have tried to remove the noratings=”“ alltogether from the code, but it is still called from the script (within the span), and still shows up twice even after i remove noratings=”“ from my plugin code in Single article form.

Here is also my altered plugin code, I had to translate some stuff since it forces these messages to appear even when I don’t call them from tags, and I had to clean up the HTML nad add an h4 element.

Offline

#57 2006-03-20 17:30:48

Dragan
Member
From: Novi Sad, Serbia
Registered: 2005-10-26
Posts: 100
Website

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

Just to let you know I have solved my doubled messages problem with getting rid of the $errorspan variable from the script. Now I don’t know if it is a bad thing, but it works now.

Another thing:
When I vote, (as I mentioned earlier) I am thrown to the top of the page when I click, can this be cured? I suppose the ideal case would be that no scrolling takes place after a click, and it really shouldn’t.

After I vote, the number of votes for that article doesn’t update untill the refresh of a page. It is weird when you are the first person to vote and you click, but it still says “no one has voted yet”. Can this be fixed too?

This is a great plugin, I am really happy I am finally able to use it, but if these few glitches would get ironed out, it would be excellent.

Offline

#58 2006-04-01 04:47:08

jamiew
Archived Plugin Author
From: NYC
Registered: 2005-01-08
Posts: 74
Website

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

I was having problems w/ tcm_rating_num not producing any results.

Solution is to put “global $pretext” inside tcm_rating_num(), after the “global $thisarticle”… approx. line #397

I’m running a fairly recent dev release, not sure what’s going on (thought id was for sure in $thisarticle… weird)

Offline

#59 2006-04-02 18:45:43

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

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

sorry, there’s going to be a delay for the next release. tons of school / business work is really filling my time.

Offline

#60 2006-04-06 16:26:48

marvix
Member
Registered: 2006-04-06
Posts: 27

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

“Go to the “Extensions” tab and it’ll install into your database automatically. “

Can any one tell me please where is this tab ?!

Offline

Board footer

Powered by FluxBB