three star ratings in RatingsMacro and rating Summary

24 views
Skip to first unread message

Alex Hough

unread,
Nov 5, 2009, 12:04:30 PM11/5/09
to TiddlyWiki
Hello there,

I've changed the ratings array in the plugin
I didn't know how to change it in a zzConfigTweeks

The ratings are now;
  ratings: ["not relevant","relevant", "highly relevant"],

This works fine, but the RatingSummary gives an error when the array is changed - see MTC [1]

TypeError: cTids[rate] is undefined

Questions - (probably for Tobias)
1) I'd prefer to add my changes to zzConfigTweeks, how?
2) What changes to RatingSummary have to be made?

Best Wishes

Alex
[1] https://dl-web.getdropbox.com/get/3starRating.html?w=97aadd61


--
http://www.multiurl.com/g/64

Tobias - http://tbGTD.tiddlyspot.com

unread,
Nov 6, 2009, 8:40:33 AM11/6/09
to TiddlyWiki
Hi Alex,

For one, I can't access yout mtc... I get this from dropbox...

"Oops! (403) It seems you don't belong here! You should probably try
logging in?"

But that's ok, got the bug anyways. It was due to me not checking
preexisting ratings. So it's fixed Get the new version of
RatingSummary. I also added a parameter to its beginning where you can
define the output format for a tiddler called 'tidderFormat'...
default is '[[%0]]', where %0 is the tiddlerName. Especially with
QuickOpenTagPlugin it is worthwile replacing that with '<<tag [[%1]]
>>'.


So now you can change your source...
ratings: ["none","poor", "below average", "average", "above average",
"excellent"],

into something like this...
ratings: ["none","low", "medium", "high"],


Enjoy,
Tobias.

Alex Hough

unread,
Nov 6, 2009, 10:03:21 AM11/6/09
to tiddl...@googlegroups.com
Tobias,

Thanks Tobais, it works great.
There is one other problem to solve.

I am using RatingSummary in a TW with TiddlersBarPlugin and want to display the results in a tiddler with a space in-  'Pathology Summary'. I've tried transclusion, but with TiddlersBarPlugin, the transcluded tiddler does not refresh. I really need the refresh feature too.

I have looked at the documentation [1] and made a MTC [2]

I've tried refreshing another tiddler in the span thus:
<span macro="rating =here TiddlerSummary" >

Something like <span macro="rating =here [[Tiddler Summary]]" > would be good.

... and had TiddlerSummary contain the same scipt as RatingSummary.

At the moment the solution is satisfactory, but i would like to have some other title to the RatingSummary.

Thanks again

Alex
(ps I am devastated that my MTC didn't work.)

[1] http://lastfm.tiddlyspot.com/#RatingMacro

[2] https://dl.dropbox.com/u/1316865/TiddlyWiki/TiddlyWikiTestCases/TiddlersBarRatingTransclusion.html
or
http://tinyurl.com/ydf6afo







--
http://www.multiurl.com/g/64

Måns

unread,
Nov 6, 2009, 5:14:17 PM11/6/09
to TiddlyWiki
Hi Tobias

Is it possible to make the stars appear as stars and not just as small
rectangles in Google Chrome?

YS Måns Mårtensson

On 6 Nov., 14:40, "Tobias - http://tbGTD.tiddlyspot.com"

Alex Hough

unread,
Nov 7, 2009, 3:19:53 AM11/7/09
to tiddl...@googlegroups.com
Anyone - do the stars work in IE?
I've got that sinking feeling again ;(

Alex

2009/11/6 Måns <huma...@gmail.com>



--
http://www.multiurl.com/g/64

Tobias - http://tbGTD.tiddlyspot.com

unread,
Nov 7, 2009, 3:39:23 PM11/7/09
to TiddlyWiki
Hi Mans. What about chrome?

For me it looks like this in chrome:
http://bit.ly/406yAn

and like this in ie7 (Avant Browser using ie7 rendering engine):
http://bit.ly/1jJcg4

Is that a charset-problem of your localisation of chrome? I have no
idea. However I have replaced the star in the code with its unicode
counterpart, maybe that solved it for you. Please, try again... and
also note that you can replace the star with any other character that
works for you.

Last but not least, there also is an image version of it... though not
working in ie as that doesn't allow for embedded images using
'data'... http://bit.ly/1yyHtD
...however you could replace those with valid image paths.


Tobias.

Tobias - http://tbGTD.tiddlyspot.com

unread,
Nov 7, 2009, 3:46:22 PM11/7/09
to TiddlyWiki
Hi Alex

As far as I can observe, this has nothing to do with naming of
tiddlers. It's not even a problem in Rating-Macro but rather in how
Tiddlersbar is hiding tiddlers from display, and them not receiving
the refresh events on updates. I have found that to be an issue with
it as well... and added in one of my tiddlywikis a refresh to the
tiddler every time I click on a tab... though honestly, that's not
what I want! However doing so may cause problems if the tiddler was in
edit mode... then TiddlersBar might not be able to access it as it
can't refresh a tiddler in edit mode.

Right now I am lacking the knowledge of how to get around this. Anyone
has a clue? Eric? ;-)

Tobias.

Måns

unread,
Nov 7, 2009, 4:27:36 PM11/7/09
to TiddlyWiki

You are probably right - however this is what I see on
lastfm.tiddlyspot.com/#RatingMacro:
http://tinyurl.com/yfwrkwl

Måns

On 7 Nov., 21:39, "Tobias - http://tbGTD.tiddlyspot.com"
<beertob...@googlemail.com> wrote:
> Hi Mans. What about chrome?
>
> For me it looks like this in chrome:http://bit.ly/406yAn
>
> and like this in ie7 (Avant Browser using ie7 rendering engine):http://bit.ly/1jJcg4
>
> Is that a charset-problem of your localisation of chrome? I have no
> idea. However I have replaced the star in the code with its  unicode
> counterpart, maybe that solved it for you. Please, try again... and
> also note that you can replace the star with any other character that
> works for you.
>
> Last but not least, there also is an image version of it... though not
> working in ie as that doesn't allow for embedded images using
> 'data'...http://bit.ly/1yyHtD

Måns

unread,
Nov 7, 2009, 4:51:56 PM11/7/09
to TiddlyWiki
and IE: http://tinyurl.com/yf7kcbz

Måns

On 7 Nov., 22:27, Måns <humam...@gmail.com> wrote:
> You are probably right - however this is what I see on
> lastfm.tiddlyspot.com/#RatingMacro:http://tinyurl.com/yfwrkwl
>
> Måns
>
> On 7 Nov., 21:39, "Tobias -http://tbGTD.tiddlyspot.com"

Måns

unread,
Nov 7, 2009, 4:56:13 PM11/7/09
to TiddlyWiki
It's fine in FF: http://tinyurl.com/ylm52zf

Måns

Alex Hough

unread,
Nov 8, 2009, 1:59:21 AM11/8/09
to tiddl...@googlegroups.com
Tobias,

You are right: the name of the tiddler in which rating summary lives has no baring. But the tiddler to which the results are sent can't have spaces in their title.

A single word tiddler will suit me for the moment.

I broader question relating to summary tables and one to satisfy curiocity: how do you get them to auto refresh? I am impressed how ratingSummary does this

Alex




--
http://www.multiurl.com/g/64

Tobias - http://tbGTD.tiddlyspot.com

unread,
Nov 8, 2009, 9:25:18 AM11/8/09
to TiddlyWiki
Anyone who has an understanding of (language.specific?!?) Unicode-
related problems... please check this out and see if you can help out.

Tobias - http://tbGTD.tiddlyspot.com

unread,
Nov 8, 2009, 9:40:56 AM11/8/09
to TiddlyWiki
Hi Alex,

Well, the results aren't really sent anywhere. Instead the tiddler
(transcluded or not) that fiddle with rating information like
RatingSummary are being 'refreshed' (update their contents). This is
what the 'update' function in RatingMacro is for and 'refresh' sure
would have been a more appropriate name for it. It loops over all
those tiddlers which you specified for being updated (aka 'refreshed')
which I stored in the 'rel' attribute of the rating wrapper. Somewhere
in the loop it does just the following:

story.refreshTiddler(tids[i],null,true);
refreshDisplay(tids[i]);

...which I assume doesn't work with TiddlersBar as for now, since all
tiddlers except the currently visible are 'display:none' and therefore
presumably skipped by the core 'refresh' handler. So I am not sure if
this is something the core could be amenable to or whether TiddlersBar
requires some more tinkering with.

Anyone around with a more indepth understanding of the process or an
idea on how to refresh hidden content?


Tobias.

dickon

unread,
Nov 9, 2009, 6:28:11 AM11/9/09
to TiddlyWiki, Jonathan Lister
I am following this thread with great interest but only understanding
small parts of it from a technical point of view.

Can I ask a question about the *application* of this function, once it
is up and running, though? Am I right in thinking that in a TiddlyWeb
you could use this to allow multiple users to provide feedback on the
usefulness of particular tiddlers - that could be gathered up in a
separate 'bag', and which might then help refine the content in the
document over time? I am thinking in particular of how it might be
used in the treatment manual that is slowly growing at
http://imp.peermore.com/imp/recipes/editorial/tiddlers.wiki

Cheers,

Dickon



On Nov 8, 2:40 pm, "Tobias - http://tbGTD.tiddlyspot.com"

jnthnlstr

unread,
Nov 10, 2009, 12:43:50 PM11/10/09
to TiddlyWiki
Dickon,

If I understand correctly, Tobias' plugin works on the tiddler itself
to add a rating, so you'd need an expansion of this plugin to work
with multiple people rating tiddlers.

You might also be interested in this TiddlyWeb discussion about a
voting system:
http://groups.google.com/group/tiddlyweb/browse_thread/thread/3bbedd8c41b52e5d


J.

On Nov 9, 11:28 am, dickon <dickon.beving...@googlemail.com> wrote:
> I am following this thread with great interest but only understanding
> small parts of it from a technical point of view.
>
> Can I ask a question about the *application* of this function, once it
> is up and running, though?  Am I right in thinking that in a TiddlyWeb
> you could use this to allow multiple users to provide feedback on the
> usefulness of particular tiddlers - that could be gathered up in a
> separate 'bag', and which might then help refine the content in the
> document over time?  I am thinking in particular of how it might be
> used in the treatment manual that is slowly growing athttp://imp.peermore.com/imp/recipes/editorial/tiddlers.wiki
>
> Cheers,
>
> Dickon
>
> On Nov 8, 2:40 pm, "Tobias -http://tbGTD.tiddlyspot.com"
>
>
>
> <beertob...@googlemail.com> wrote:
> > Hi Alex,
>
> > Well, the results aren't really sent anywhere. Instead the tiddler
> > (transcluded or not) that fiddle withratinginformation like
> > RatingSummary are being 'refreshed' (update their contents). This is
> > what the 'update' function in RatingMacro is for and 'refresh' sure
> > would have been a more appropriate name for it. It loops over all
> > those tiddlers which you specified for being updated (aka 'refreshed')
> > which I stored in the 'rel' attribute of theratingwrapper. Somewhere
Reply all
Reply to author
Forward
0 new messages