Hi,

because I wanted to allowed anonymous people to vote on my website, I could'nt user the nodereview module.

So, I created 2 contents type: Restaurant and evaluation.

On my Restaurant template, I added a link: rate this resto.

What I would like to do is the following:

take the NID of the restaurant and pass it on the Evaluation page to associate each evaluation with a restaurant. On the evaluation, I will create a Resto_nid and put the value in it.

I'm not a pro in PHP, is anyone have an idea how to do it?

OR

Do you know a way to allow anonymous user to vote with nodereview?

Thanks,

Roseline

Comments

Mojah’s picture

I had a look at nodereview and it is possible for anonymous users to submit reviews. You will have to set the access control for nodereview module to grant permissions to anonymous users in your access control admin page under site configuration.

To pass variables to you can embed the desired variable (nid in this case) into the url and call the variable from the evaluation page. This is not too difficult. Do a few google searches and search the forums here for examples. Check out the handbook in the theming section (http://drupal.org/node/45471) on how to embed the custom url in your tpl.php template files. There is also this (http://drupal.org/project/prepopulate ) which you can take a look at.