1
28 September
2007

Code was added here to allow postings to be rated by visitors. This is AJAX based, so rating an item does not cause a page reload unless it's clicked before the page has finished loaded (in which case the required javascript may not have been launched).

It can be obtained here as an XML file for Zope. WARNING: THE VERSION HERE WILL NOT WORK IF YOUR ZOPE IS BEHIND AN APACHE SERVER ON A DIFFERENT MACHINE. I fixed the software to handle this case, but have not prepared a xml archive yet. [ Nov. 2007]


Posted by dudek at 16:30 September 28, 2007 | Read (3) or Leave a comment | permalink link to this entry |
Rate item 79: Rating: 8.6/10 (10 votes cast)
Comments
Re: Added rating bar for COREBlog and Zope

great idea - i also like the idea of distributing the XML export and not the .zexp file ;)

seems rating is not allowed for anonymous (contrary to your article text):

> Error Type: Unauthorized
> Error Value: Your user account does not have the required permission. Access to 'manage_changeProperties' of (Products.COREBlog.Entry.Entry object at 0x2b118c0) denied.
> Your user account, Anonymous User, exists at /acl_users. Access requires one of the following roles: ['Manager']. Your roles in this context are ['Anonymous']."

Posted by: d2m at November 15,2007 00:53
Re: Added rating bar for COREBlog and Zope

Good point. To allow anonymous users to post ratings, the db.php method needs proxy roles, which I forgot to set when I migrated to a new server recently. (That would explain why nobody ever seemed to rate anything.) It should be fixed.

For people installing this: give db.php proxy roles.

Posted by: dudek at November 15,2007 10:45
Not working behind proxy

The rating bar on this site is currently not working because I moved my site behind a proxy server, and the rating bar can't detect where the clicks are coming from.

Posted by: dudek at November 15,2007 10:53
Trackbacks
Please send trackback to:/blog/79/tbping
elcaol

acellitr

Posted by: vardronroc at May 18,2009 18:52
trtroclet

lachielt

Posted by: chidelsi at May 20,2009 02:27
Post your own response


(Some kind of name is required, will be visible)

Required, whatever you enter will be visible to other users.


(Optional, used for "mailto" link)

Your email address is not required, but if you insert it it will be displayed so people can contact you.


(Optional, will appear as a link)

Leave an URL if you want to provide a relevant link that relates to your comment or identifies you.



The title for your comment.



Your comment goes here. All relevant comments are welcome, except for those that simply promote an irrelevant product or else are used to fraudulently inflate the link count to an irrelevant web page. Don't forget to also fill in the captcha below or your text will be rejected!

You must answer this question to prove you are human
what is 16 plus 4?

Answer this question correctly to demonstrate that you are not a dumb spambot.







Science Blogs - Blog Top Sites Science Blogs - Blog Catalog Blog Directory Science Blogs - Blog Top Sites Science Blogs - Blog Catalog Blog Directory