PDA

View Full Version : script running on newthread_post_start


ageurtse
02-17-2014, 05:11 PM
Hello,

Is it possible to run some kind of scipt on the hook location newthread_post_start.
after this script is returns true the post should be posted

if the script returns false the post should be canceld.

i don't know how to do this, so any kind of advise would be helpful.

ozzy47
02-17-2014, 05:16 PM
I would say the hook, newpost_process would be the best bet, if x is true, allow it to post, if x is false, throw up a error.

ageurtse
02-17-2014, 05:23 PM
oke, but is there a way to filter it for a certain forum and usergroup and only when there is a new thread started.

so there are some condintion's to be checked.

and only when these condition's are true the script has to be run.

ozzy47
02-17-2014, 05:30 PM
If you want certain groups to be able to read forums on your site, but not post in them, why not use the Access Masks already built into vBulletin.

ageurtse
02-17-2014, 05:53 PM
Sounds pretty complicated, all user should be able to post but only certain users need to do an extra thing (payment) to post a new thread.