Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#87 2007-05-23 12:32:35

sthmtc
Member
From: CGN, GER
Registered: 2005-01-17
Posts: 586
Website

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

feragnoli wrote:

This article hasn’t been rated message

this can be fixed quite easily

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

#90 2007-07-18 18:36:20

ilpalmo
Member
From: Stockholm, Sweden
Registered: 2007-07-02
Posts: 14
Website

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

#91 2007-07-19 22:12:51

feragnoli
Member
From: the hague
Registered: 2005-02-10
Posts: 150

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

something like that should work but you have to specify a form for the article too.
not sure 100% but I guess the tag will accept most of the attributes of article_custom


what was that again…?

Offline

#92 2007-07-19 22:23:24

ilpalmo
Member
From: Stockholm, Sweden
Registered: 2007-07-02
Posts: 14
Website

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

Thanx for your answere, but still a no show.
Getting this errormessage when in debug-mode:

tag_error <txp:tcm_rating_articles limit="10" section="foodcourt" form="default" /> ->  Textpattern Warning: Unknown column 'txp_tcm_rsum.ratings' in 'field list'
select *, txp_tcm_rsum.ratings, txp_tcm_rsum.average, unix_timestamp(Posted) as uPosted from `foodtextpattern`,`foodtxp_tcm_rsum` where 1 and Status='4' and Posted < now() and Section = 'foodcourt' and foodtxp_tcm_rsum.parent_id = foodtextpattern.ID order by foodtxp_tcm_rsum.average desc limit 0, 10
textpattern/lib/txplib_misc.php(534) : eval()'d code:834 startRows()  on line 84

textpattern/lib/txplib_db.php:84 trigger_error()
textpattern/lib/txplib_db.php:284 safe_query()
textpattern/lib/txplib_misc.php(534) : eval()'d code:834 startRows()
textpattern/lib/txplib_misc.php(534) : eval()'d code:789 safe_rows_start_joined()
textpattern/publish.php:963 tcm_rating_articles()
processTags()
textpattern/publish.php:922 preg_replace_callback()
textpattern/publish/taghandlers.php:2315 parse()
textpattern/publish.php:963 if_article_list()
processTags()

Don't know what to do about this...

Offline

#93 2007-07-21 11:15:37

feragnoli
Member
From: the hague
Registered: 2005-02-10
Posts: 150

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

I’m using this and it works <txp:tcm_rating_articles section="extra" form="by_vote" limit="9999" />
check the context of your tag too, is it a page form the tag is in?
what version of textpattern are you using?
last but not least: if no article has been voted for, no article will show up; only articles which have already been rated will be output by the tag


what was that again…?

Offline

#94 2007-07-21 12:02:54

ilpalmo
Member
From: Stockholm, Sweden
Registered: 2007-07-02
Posts: 14
Website

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

I’m using textpattern 4.0.5 and I’m using the tag in a search form for a side column on the main site.
As far as I know there are votes for several articles.
What’s bothering me is that it looks as if the tables aren’t created correctly in the db? or am I wrong?

Offline

#95 2007-07-21 17:55:41

feragnoli
Member
From: the hague
Registered: 2005-02-10
Posts: 150

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

mmm search form?
not sure what you mean with that. you want to search for articles and sort them by rating?
hard to do it with this plugin.
did you check the site for detailed installation?
anyway, the tables installed by this plugin will report only articles somebody did vote for.
the tcm_articles tag will therefore output a list of articles arranged according to the rating as reported by the tables.
articles ‘eligible’ for rating but not rated yet simply don’t show up in the database and will not appear, hence: no article rated = no articles output.


what was that again…?

Offline

#96 2007-07-22 10:39:08

ilpalmo
Member
From: Stockholm, Sweden
Registered: 2007-07-02
Posts: 14
Website

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

feragnoli wrote:

mmm search form?
not sure what you mean with that. you want to search for articles and sort them by rating?

What I do is that in the right column of the page I output a form that contains a search field where you can search articles and a tag cloud. Beneath them I would like to have a “or view top 10 rated articles” type of thing… so there are no <txp:article />-tag on that page. Does it have to be?

Last edited by ilpalmo (2007-07-22 10:39:24)

Offline

Board footer

Powered by FluxBB