The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Check post title and text before posting
Hello
I just want to make modification that will be check title and text before add new thread or post. If check will be posotove post/thread will be add, if not that post/thread not will be add and user will see message (like when try to add new thread with to short topic or text) I have question - where I should put plugin ? In witch hook I will be possible to cactch title, post text and prevent add post to database if check will be negative. i will be very grateful for any help |
#2
|
|||
|
|||
I think you should be able to use newpost_process and check $post['title'] and $post['message']. If you detect an error you can add an error phrase name to the error list like this:
PHP Code:
Of course you should chnage 'error_phrase_name' to the actual name of your phrase. The error phrase should be in group "Error Messages". |
#3
|
|||
|
|||
works perfect
Thank you very much and send possitive vibrations peace |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|