The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Thread/Post Title Characters Details »» | |||||||||||||||||||||||||||||||||
Overview: This simple product allows you to define what chracters will be permitted in thread/post titles using regex. You may elect to use HTML5 form validation when the user's browser supports it, but if you choose not to use this method, or the user's browser doesn't support it, then a message will be displayed above the editor block advising the user that they have illegal characters in their thread/post title if applicable. They will not be allowed to submit their post until the title has the illegal characters removed. You may define the CSS applied to the error message. If a user has illegal characters in their thread/post title, and you have HTML5 form validation on and the user's browser supports the validation, then when they attempt to preview or submit their post, they will see something like: Otherwise, they will see something like: Compatibility: Tested and working on VB 4.2.x and may work on all 4.x versions of vBulletin. Backup/Warning: This product does not alter your database, however it is always good practice to make regular backups and you should make a backup before installing ANY new mod. As always, products are USE AT YOUR OWN RISK. I will provide support and do my best to help but no absolute guarantee is offered. To Install:
Support for this product can be found here: Download Now
Screenshots
Supporters / CoAuthors Show Your Support
|
Благодарность от: | ||
Seven Skins |
Comments |
#12
|
||||
|
||||
I've set Require Threads to have a Prefix to No and the MOD doesn't get triggered. We have only one forum where I had this requirement, which is why I hadn't noticed this before this. All our other forums don't have this as a requirment.
All Thread Prefixes I created are encased in [], so I thought it was those characters triggering the MOD (they aren't in the defined approved character list). I added them to the approved characters, but that forum was still being triggered by the MOD if I had Require Threads to have a Prefix set to Yes, even when the Thread Title contained only alpha-numeric characters. Can you suggest what I might want to examine to help why this is happening on our site and not yours? |
#13
|
||||
|
||||
My prefixes are also wrapped in square brackets, and I did not add the brackets to the approved character list, and I changed one of my forums to require a prefix, and the title did not cause an error, unless there were illegal characters actually in the title.
At the moment, I have no idea why you are getting this issue on your site. |
#14
|
||||
|
||||
For the time being I'm keeping the Require Threads to have a Prefix in the affected forum set to No, and have unchecked the two Prefix sets.
Something else I noticed. Adding ' to the character set and clicking on Post New Thread resulted in the entire site page not loading; just a blank page. 1st image: Preview of new thread when Thread Prefix is required. 2nd image: Preview of new thread when Thread Prefix is not required. 3rd image: MOD settings. 4th image: Affected forum Features settings. 5th image: Our installed products (1st page) 6th image: Our installed products (2nd page) |
#15
|
||||
|
||||
You will have to escape that character...add \' to the allowed characters. You will also need to escape the dash and the forward slash. Use:
[a-zA-Z0-9\,\-\/\' ] |
#16
|
||||
|
||||
My brother-in-law and I were just discussing this issue, and he asked if I had escaped any of the non-alphanumeric characters. I hadn't, but didn't think I needed to (should have known better -- Regular Expression rules ya know).
Just escaped them and no false triggering of the MOD. Interestingly, it also answers (I think) why the MOD was being triggered when the title contained only alpha-numeric characters; it was triggered because I had unescaped characters in the MOD list! At least, that's what I think is/was the cause, as with those characters now properly escaped, a title with only alpha-numeric characters doesn't trigger the MOD. Thank you very much.:up: |
#17
|
||||
|
||||
Glad to hear all is well now!
|
#18
|
|||
|
|||
Is there any mod acts like this when users registering?
I mean I don't want my guest be allowed to register with non-English letters (only a-z capital and small, and 0-9) |
#19
|
||||
|
||||
Quote:
AdminCP -> Options -> Settings -> User Registration Options Find the setting "Username Regular Expression" and enter there: Code:
^[A-Z0-9 ]+$ |
Благодарность от: | ||
Inna |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|