Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 918851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:26:40+00:00 2026-05-15T18:26:40+00:00

I need to implement a message board with rating system. Something similar to stack

  • 0

I need to implement a message board with rating system. Something similar to stack overflow, but much simpler.

I need to rate both questions / answers and compute the rating for each user.

I’m looking modules in Drupal to implement it. Could you give me some tip ?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T18:26:41+00:00Added an answer on May 15, 2026 at 6:26 pm

    Fivestar, and User Points could be used for the purpose, but you only get something similar to Stack Overflow.
    The first module (which requires Voting API) can be used to allow the users to vote, and the second module can be used to transform the votes in points for the users who voted (among other things — the module is not limited to this). To integrate the two modules, there is another module, but I am not sure it’s part of “User Points”, or User Points Contributed modules.

    The problem with Fivestar is that users are allowed to give a vote from 1 to X (I think the maximum vote can be changed), which is different from the voting system used by Stack Overflow, where users can simply report “I like it”, or “I don’t like it”. With Fivestar there would be only positive votes, and nobody would be able to down vote a comment, or a node; it would be possible to lower the average by giving the minimum vote.

    Between the modules I listed, there isn’t a module that allows to give points to the author of the node / comment; using “Voting API”, and “User Points” it would possible to do that, but no module I looked allows to do it (this means that you could probably write a custom module).

    If you look at the list of the modules included in the installation profile ArrayShift, you can get an idea of the modules you can use to reach the same purpose.
    The list of modules includes

    • Node comments, which transforms comments in full nodes; with this module, in example, is possible to use a voting module that works only for nodes with comments too.
    • Voting API.
    • Vote UP/Down that allows users to up vote, or down vote.
    • User Points.
    • ArrayShift Support Modules; it is probable that this module contains code that allows node authors to get points every time a node they created is voted.

    In particular, a module that is part of ArrayShift Support Modules (as_tweaks) contains the following code:

    /**
     * Below, a bunch of simple hook implementations that award userpoints based
     * on various events that happen. In theory, Rules module and various other tools
     * could be used to do these things, but most of those modules don't have easy
     * to export/import configuration data.
     */
    
    // VotingAPI hook. When a user casts a vote on a node, the author should
    // get/lose points..
    function as_tweaks_votingapi_insert($votes) {
      foreach ($votes as $vote) {
        if ($vote['content_type'] == 'node' && ($node = node_load($vote['content_id']))) {
          // Award the points
          userpoints_userpointsapi(array(
            'uid'         => $node->uid,
            'points'      => $vote['value'] * 10,
            'operation'   => 'vote up',
            'entity_id'   => $node->nid,
            'entity_type' => 'node',
          ));
        }
      }
    }
    
    // VotingAPI hook. When a user casts a vote on a node, the author should
    // get/lose points..
    function as_tweaks_votingapi_delete($votes) {
      foreach ($votes as $vote) {
        if ($vote['content_type'] == 'node' && ($node = node_load($vote['content_id']))) {
          // Award the points
          userpoints_userpointsapi(array(
            'uid'         => $node->uid,
            'points'      => $vote['value'] * -10,
            'operation'   => 'vote up',
            'entity_id'   => $node->nid,
            'entity_type' => 'node',
          ));
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to IMPLEMENT(not to use some library/open source) an event/message system. I have
I need to implement portable code, but I do not know how to deal
I need to implement the following but I'm not shure what the best way
I need to implement a text link that triggers a message box. Premises :
I need to implement mouse drag events which look something like this: class MouseDragEvent
Any one know how to implement auto send message using MFMessageComposer....i mean No need
I need to implement a simple message bus: One process only thus no need
I need to implement inter-process communication system for processes (in machine-wide) in Win32 using
I need to implement a heartbeat-mechanism that sends a 'touch'-message to an external service
I'm trying to save to a db, and I need to implement a system

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.