Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
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
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
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
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
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
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
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Oh, wait, are you using the latest version?
Offline
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
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
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
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