Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#37 2006-03-04 02:09:51

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

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

In action at http://mediumnyc.com/submissions/meghan-groves

tcm_rating_num appears to be broken though, even with the C version… it always says “no ratings”

Offline

#38 2006-03-08 23:54:57

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

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

can someone please post their code for implementing this plugin cause I get weird things. for example when I use the atributes for this tag tcm_rating_num it only spits out the first word I have entered, it just stops at the first space. I’ll have to confirm this, cause it’s tested on my XAMPP which is not really what you could call stable, it messes up easily.

Offline

#39 2006-03-08 23:59:54

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

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

could you give more information, for instance, code samples, etc, what string your are trying to use? judging by your websites, it might be a character that preg_replace is choking on, etc.

Offline

#40 2006-03-09 00:16:03

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

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

In a moment, I am testing on a separate section right now, but I have thought of that too, and it did the exact same thing when I used your examples from the plugin help. Right now I haven’t added any attrbutes to the plugin tag and it output “This article hasn’t been rated” before the doctype.

Offline

#41 2006-03-09 00:19:32

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

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

Now it spits out “Niko još nije glasao” before the doctype, and here’s the code i am using as an “rating” form:
<code>
<txp:title />

<txp:body />

<txp:tcm_rating_num noratings=“Niko još nije glasao” hasbeen=“Glasalo je %r osoba” />

<txp:tcm_rating_form />
</code>

Offline

#42 2006-03-09 01:46:10

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

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

Dragan, your example code works perfectly on my installation (for both rated and unrated articles.) I’m thinking that XAMPP & Windows UTF support is the problem, not the plugin code, but I can’t be sure.

Offline

#43 2006-03-09 01:48:53

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

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

Oh, wait, are you using the latest version?

Offline

#44 2006-03-09 09:06:00

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

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

probably not, I have downloaded it a week or two ago. It has worked once on my localhost. I’ll give this a whirl and let you know, ok.

Offline

#45 2006-03-09 09:12:05

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

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

yeah, I guess it works now, in the admin panel for the plugin is it supposed to count votes in dashes? i have “——” in the votes column. (and there is a grade of 4 on the article.)

Offline

#46 2006-03-09 13:22:51

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

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

it appears it doesn’t work after all… :( again it spits the info on ratings before the doctype, it only accepts the first word, and when I click to rate it always shifts me to the top of the page (my guess is because of the rating info before the doctype).

Offline

#47 2006-03-16 02:35:03

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

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

I am getting the same info as Dragan: “This article hasn’t been rated” before the DOCTYPE. The script is working for me though. I am just getting that message.

Offline

#48 2006-03-16 02:46:43

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

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

oh, alright. I just found the difference between my dev version & the compiled one.

for the time being, search for
<pre><code>echo $noratings;</code></pre>

and replace it with

<pre><code>return $noratings;</code></pre>

Offline

Board footer

Powered by FluxBB