Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
davej wrote:
Can’t seem to get this to work on 4.0.4 either.
so it’s not working at all for you guys? that’s strange because i’m using it just fine on two 4.0.4 installations…
Last edited by sthmtc (2007-02-08 08:59:17)
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
sthmtc wrote:
so it’s not working at all for you guys? that’s strange because i’m using it just fine on two 4.0.4 installations…
Ah, got it sorta working now, it was something stupid on my end.
It seems to be working ok but I’m getting this error…
Notice: Unknown tag attribute: id in /hsphere/local/home/dave/mydomain.com/textpattern/lib/txplib_misc.php on line 582
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
If I dont have any ratings for a article I see the following text before any of the template code:
“This article hasn’t been rated”
in the plugin code you have:
echo $noratings;
is’t that an error? shouldn’t it be
return $noratings;
?
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Seeing this when I post:
1024: Unknown tag attribute: id in /home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php at line 582
Backtrace:
myErrorHandler(1024,Unknown tag attribute: id,/home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php,582,Array)
/home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php:trigger_error(Unknown tag attribute: id) at line 582 in /home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php
/home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php(512) : eval()’d code:lAtts(Array,Array) at line 350 in /home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php(512) : eval()’d code
/home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php(512) : eval()’d code:tcm_rating_form(Array) at line 295 in /home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php(512) : eval()’d code
tcm_rating_pt(pretext)
/home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php:call_user_func(tcm_rating_pt,pretext) at line 548 in /home/gemal/private/dev/mads.gemal.dk/textpattern/lib/txplib_misc.php
/home/gemal/private/dev/mads.gemal.dk/textpattern/publish.php:callback_event(pretext) at line 190 in /home/gemal/private/dev/mads.gemal.dk/textpattern/publish.php
/home/gemal/private/dev/mads.gemal.dk/textpattern/publish.php:preText(,Array) at line 105 in /home/gemal/private/dev/mads.gemal.dk/textpattern/publish.php
/home/gemal/private/dev/mads.gemal.dk/index.php:include(/home/gemal/private/dev/mads.gemal.dk/textpattern/publish.php) at line 33 in /home/gemal/private/dev/mads.gemal.dk/index.php
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Please add a urlonly parameter to the
<txp:tcm_rating_js_tag />
tag so that I can get the JS url by doing:
<txp:tcm_rating_js_tag urlonly=“1” />
thanx. Love you plugin!
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Is it possible to use this plugin to add ratings to files? I have mp3’s and movies on my site that I’d like to have rated by visitors. Anyone have an idea about how I could go about doing this? Thanks a lot.
Andrew
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
I have it working (my site, 4.0.4), but the installation process is pretty confusing.
The in-plugin help also seems incomplete.
I also get the “Unknown tag attribute: id…” error, but it goes away if you put the textpattern mode to ‘Live’ instead of ‘Testing’.
Any my stars are weirded up. I get list bullets across the stars, and when I mouseover (as if to vote) the new stars appear BELOW the current stars and over the words.
Offline
#83 2007-05-23 10:49:24
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
hello, I was reading the help in the plugin but cannot see what tags I’m supposed to use…
there it only says:
- – output the number of ratings submitted for an article.
- Options
- noratings=”Text to show if something hasn’t been rated”
- hasbeen=”Text to show when something has been rated.”
- Format: %r = number of ratings
- (singular words/plural words)
- Example: This has been rated %r (time/times)
- alpha=”true” if you want to use number words (e.g. “one” instead of “1”)
- – clone of doArticles but sorts articles by average rating rather than posted time.
- – the input and output plugin for tcm_rating
I seem to understandand there are three tags:
- one
<txp:tcm_rating . . . />to output the rating - one
<txp:tcm_rating . . . />to output a list of articles - and one
<txp:tcm_rating . . . />to input the rating (what does the input and output plugin for tcm_rating mean ?)
help?!
Last edited by feragnoli (2007-05-23 10:53:12)
what was that again…?
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
feragnoli, the documentation is a bit messed up in the plugin itself but all the necessary info is available on the authors website.
Last edited by sthmtc (2007-05-23 10:54:18)
Offline
#85 2007-05-23 11:35:28
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
@sthmtc yes, thanks very much!
I see actually that he had mentioned that on the first post too.
I’m having trouble with tcm_rating_articles, though. does it accept all the attributes of txp:article or txp:aricle_custom?
what was that again…?
Offline
#86 2007-05-23 12:30:37
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
ok, I think this is something wrong:
tcm_rating_num injects a This article hasn’t been rated message preceded by a <body> tag just before the generated
<script src="http://localhost:8888/4.0.4/ratingjs" type="text/javascript"></script> and doing so breaks my <head> in the middle.
every meta, script or style tag that follows This article hasn’t been rated ends up in the <body>
also: the names in the provided stylesheet do not match the ones the plugin will spit out:
unit-rating is actually star-rating and the row of .unit-rating a.r1-unit should be .unit-rating a.one-stars, .unit-rating a.two-stars etc…
what was that again…?
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Offline
#88 2007-05-23 13:07:21
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
yep, it does it, thought would be something like that but really couldn’t figure where it was.
thank you
what was that again…?
Offline
#89 2007-06-27 18:19:01
- feragnoli
- Member
- From: the hague
- Registered: 2005-02-10
- Posts: 150
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
well, it works but… is there a way to display all articles by vote?
right now it displays only the ones that have been rated.
how can I output a list of all the articles, including the ones with vote 0?
thank you!
what was that again…?
Offline
Re: [plugin] [ORPHAN] tcm_rating v2 beta release
Hi!
Is this thread dead?
Was looking for some info on how to use the <txp:tcm_rating_articles />-tag.
Couldn’t find it anywhere… sorry if I overlooked it…
I output the following code on my site:
<txp:tcm_rating_articles limit="10" section="foodcourt" />
I’ve also tried just outputting the <txp:tcm_rating_articles />-tag as it is, but it just displays nothing.
Anyone who can help me with this?
thanx
Offline