Announcement

Collapse
No announcement yet.

char limited in post?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

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

    Comment


    • #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


      • #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


        • #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


          • #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


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

              Comment


              • #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


                • #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...
                  X