I wanted to use drupal 7 five star rating in my non drupal php website. How can i implement it.

I have installed the drupal 7 in my website root and I have added the five star rating module it works fine, If I navigate to localhost/mysite/drupal/ but I want those five star rating functionality to be implemented in my index.php file which is in localhost/mysite/index.php.


The easiest perhaps way to do it is to create a custom module, that calls and returns the rating widget, and display it either in a iFrame, or via REST service. I would probably go with the REST. You will also need to move css and images for styling the REST code from the Fivestar module.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.