char limited in post?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Nam
    Senior Member
    • Oct 2001
    • 212

    char limited in post?

    How can I set the limited char in the post. For example, I want to set at least 20 characters in the post to prevent some members who racing post by just posting "yes", "hehe"... words like that which are meaningess and annoying. thanks,
    My forum's vB3 version: 3.6.8
  • tubedogg
    Senior Member
    • Feb 2001
    • 13602

    #2
    Currently that's not possible. You may wish to visit http://www.vbulletin.org/ to discuss hacking in a solution.

    Comment

    • T´Pau
      New Member
      • Feb 2002
      • 1

      #3
      To set a minimum character limit into the users post, just open newpost.php and newthread.php

      find:
      Code:
      if (strlen($message)>$postmaxchars and $postmaxchars!=0) {
          eval("standarderror(\"".gettemplate("error_tooshort")."\");");
        }
      directly after that, insert the following:
      Code:
      } if (strlen($message)<20) {
          eval("standarderror(\"".gettemplate("error_tooshort")."\");");
        }
      Then go to your Admin cp and create a new Template called error_tooshort
      and insert:
      Code:
      Your Message is too short. 
      Please write at least 20 characters.
      You are done. Change the minimum characters (20) to your needs.

      Comment

      • tubedogg
        Senior Member
        • Feb 2001
        • 13602

        #4
        T'Pau, while I'm sure Nam appreciates your help, we request that hacking not be discussed here but rather at www.vbulletin.org . Thank you.

        Comment

        • Amasov
          Member
          • May 2001
          • 94

          #5
          Hey tubedogg.

          It's rather a simple modification. Everybody could imagine that this is a simple variable definition.

          It's not a "hack" so called. Please!

          I may understand your war against piracy, but this is not an delivery for those people. It's just a help.

          Regards,
          Chris.
          German:
          DCF: The matter of IT-Support

          Comment

          • tubedogg
            Senior Member
            • Feb 2001
            • 13602

            #6
            It actually has nothing to with piracy. Even if we didn't have a piracy problem we still want all code hacks posted at vbulletin.org - that has been the policy since vbulletin.org opened, driven purely by the fact that we do not support hacked boards here.

            We call any type of code modification 'hacking' for simplicity's sake. In this case he is adding an extra loop to the code, which is certainly more than a simple variable.

            Comment

            • Amasov
              Member
              • May 2001
              • 94

              #7
              Understood.
              German:
              DCF: The matter of IT-Support

              Comment

              • Nam
                Senior Member
                • Oct 2001
                • 212

                #8
                T ´Pau, I do really appreciate that, it has been a long time. I've posted request in vB.org but nobody did it for me. I think there is no hack like that in vB.org even until now. Again, thanks very much.
                My forum's vB3 version: 3.6.8

                Comment

                • Chen
                  Senior Member
                  • Jun 2001
                  • 8388

                  #9
                  I think there is a hack actually, that allows you to set a lower limit for posts length.
                  Chen Avinadav
                  Better to remain silent and be thought a fool than to speak out and remove all doubt.

                  גם אני מאוכזב מסיקור תחרות לתור מוטור של NRG הרשת ע"י מעריב

                  Comment

                  widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                  Working...