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 4115212
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T22:33:11+00:00 2026-05-20T22:33:11+00:00

At my website there is Login or register to post comments.. I want to

  • 0

At my website there is “Login or register to post comments..”

I want to change the message to:
“Login or register to post comments(comments will be moderated)..”

Because plenty of spammers are just creating logins to post spam comments.
Although all comments are moderated now. Putting this message will give clear info that spamming may not be possible and spammers will not create logins.

  • 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-20T22:33:12+00:00Added an answer on May 20, 2026 at 10:33 pm

    Assuming you are using Drupal 6, the code that creates the comment form is in the file comments.module in the Drupal module directory. Fortunately, the function allows for theming.

    What you can do is copy and paste the function theme_comment_post_forbidden($node) and place it in the template.php file in your theme directory. You will also need to rename the function, replacing ‘theme’ with your theme name.

    For example, say your theme name is ‘utilitiesindia’. Then you will rename your function to utilitiesindia_comment_post_forbidden.

    So, in your template.php file in a theme named utilitiesindia, use this function:

    /**
     * Theme a "you can't post comments" notice.
     *
     * @param $node
     *   The comment node.
     * @ingroup themeable
     */
    function utiltiesindia_comment_post_forbidden($node) {
      global $user;
      static $authenticated_post_comments;
    
      if (!$user->uid) {
        if (!isset($authenticated_post_comments)) {
          // We only output any link if we are certain, that users get permission
          // to post comments by logging in. We also locally cache this information.
          $authenticated_post_comments = array_key_exists(DRUPAL_AUTHENTICATED_RID, user_roles(TRUE, 'post comments') + user_roles(TRUE, 'post comments without approval'));
        }
    
        if ($authenticated_post_comments) {
          // We cannot use drupal_get_destination() because these links
          // sometimes appear on /node and taxonomy listing pages.
          if (variable_get('comment_form_location_'. $node->type, COMMENT_FORM_SEPARATE_PAGE) == COMMENT_FORM_SEPARATE_PAGE) {
            $destination = 'destination='. rawurlencode("comment/reply/$node->nid#comment-form");
          }
          else {
            $destination = 'destination='. rawurlencode("node/$node->nid#comment-form");
          }
    
          if (variable_get('user_register', 1)) {
            // Users can register themselves.
            return t('<a href="@login">Login</a> or <a href="@register">register</a> to post comments(comments will be moderated)', array('@login' => url('user/login', array('query' => $destination)), '@register' => url('user/register', array('query' => $destination)))
    );
          }
          else {
            // Only admins can add new users, no public registration.
            return t('<a href="@login">Login</a> to post comments', array('@login' => url('user/login', array('query' => $destination))));
          }
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to develop a website like file manager. Where user register and will
There is a web-site to crawl, with POST-authentication. How can I, having login and
Just wondering if there's a website out there that allows you to hotlink to
I want to set an alert service for my website users for there tasks.
there is login for my website. 3 pages which are used while logging into
I am trying to create a login form on my ASP.NET website. Currently, there's
  I have some website, and I am planning register/login using MySQL for it. My
Okay, I got a website where you can register yourself and login. You can
Just want to ask if there is some way to add automatic email confirmation
I already have an advanced user login/register system on my website ( colemansystems.psm2.co.uk ).

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.