Needs review
Project:
Simple Review
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
20 Jan 2008 at 12:55 UTC
Updated:
25 Jan 2008 at 03:01 UTC
I would like to create a Restaurant Review Content Type for my site. I enabled this module but it allows users to create reviews for ALL content types, not just the desired content type. For example, users can now write reviews for Events, Blogs, Forums, etc. I only want users to be able to write reviews for "Restaurant Review" content type.
How can this be achieved? I don not want to turn off comments for the other content types.
thanks
Comments
Comment #1
smk-ka commentedThis has yet to be developed. When I was publishing the module I was pretty sure that this feature request would come up sooner or later. Shouldn't be too hard to implement. Would you be able to do it? Or are you able to sponsor its development for a small fee?
Comment #2
tnguyen85 commentedi cannot implement this feature myself. how much would it cost?
thanks
Comment #3
smk-ka commentedNo big deal, say 50 bucks?
Comment #4
tnguyen85 commentedI can pay $50. Tell me how I can pay. Thanks
Comment #5
smk-ka commentedCode is now in CVS.
Comment #6
tnguyen85 commenteddoes this new version allow me to select the content type to provide a rating?
thanks
Comment #7
smk-ka commentedYes, of course! As I wrote in my email before: just open Content management -> Content types, edit a content type and check the box in the workflow settings named "Enable simple review functionality".
Comment #8
tnguyen85 commentedI get the following errors after i write a comment. the vote and comments get saved but these errors appear. Seems to be a problem with the DB tables.
warning: Invalid argument supplied for foreach() in /home/content/t/n/g/tnguyen85/html/viet/modules/node/node.module on line 521.
warning: implode(): Bad arguments. in /home/content/t/n/g/tnguyen85/html/viet/modules/node/node.module on line 525.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/content/t/n/g/tnguyen85/html/viet/includes/database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in /home/content/t/n/g/tnguyen85/html/viet/modules/node/node.module on line 521.
warning: implode(): Bad arguments. in /home/content/t/n/g/tnguyen85/html/viet/modules/node/node.module on line 525.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/content/t/n/g/tnguyen85/html/viet/includes/database.mysql.inc on line 172.
user warning: Column count doesn't match value count at row 1 query: INSERT INTO activity VALUES (5, 49, 'votingapi', '1', 'mark', 'a:6:{s:7:\"user-id\";s:2:\"49\";s:9:\"user-name\";s:6:\"btrinh\";s:7:\"node-id\";s:3:\"343\";s:10:\"node-title\";s:10:\"Huong Viet\";s:12:\"rating-value\";s:2:\"40\";s:11:\"rating_type\";s:7:\"percent\";}', 1201055818) in /home/content/t/n/g/tnguyen85/html/viet/includes/database.mysql.inc on line 172.
warning: Invalid argument supplied for foreach() in /home/content/t/n/g/tnguyen85/html/viet/modules/node/node.module on line 521.
warning: implode(): Bad arguments. in /home/content/t/n/g/tnguyen85/html/viet/modules/node/node.module on line 525.
user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE in /home/content/t/n/g/tnguyen85/html/viet/includes/database.mysql.inc on line 172.
Comment #9
smk-ka commentedCVS is updated. This has been fixed by moving the node loading to the proper locations.
Comment #10
tnguyen85 commentedI updaetd the module with your latest version and get the following when i create a review:
user warning: Column count doesn't match value count at row 1 query: INSERT INTO activity VALUES (6, 1, 'votingapi', '1', 'mark', 'a:6:{s:7:\"user-id\";s:1:\"1\";s:9:\"user-name\";s:9:\"tnguyen85\";s:7:\"node-id\";s:3:\"343\";s:10:\"node-title\";s:10:\"Huong Viet\";s:12:\"rating-value\";s:2:\"20\";s:11:\"rating_type\";s:7:\"percent\";}', 1201141639) in /home/content/t/n/g/tnguyen85/html/viet/includes/database.mysql.inc on line 172.
Comment #11
smk-ka commentedThis isn't related to Simple Review. Look at the database table name: do you have Activity installed? From the error message it looks like your database schema is outdated. Did you perhaps update that module recently and forgot to visit update.php?
Comment #12
tnguyen85 commentedyes, i have been having trouble with the Activity module and had to revert back to an older version. that must be it, thanks!
one thing i did notice was that Simple Review allowed me to vote more than once. I voted in a comment, and then replied to someone else's comment and voted again.
Comment #13
smk-ka commentedNormally, the first bit of the overridden theme_comment() should remove the 'reply' link:
Thus, you shouldn't be able to reply at all. Just to be sure: you did copy that function to your template.php, named it accordingly and didn't remove above lines?
Comment #14
tnguyen85 commentedyes, i did exactly as prescribed in the README file. it seems that the "reply" link is only removed from the comments that I created. I can still reply to comments that other people write.