The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#2
|
|||
|
|||
![]() Quote:
All that just gets the html to show up on the form. To process it, I'd probably use hooks newthread_post_start/newreply_post_start to get the values and put them in the $newpost[] array, then use hook newpost_process to do something with them (they'll be in $post[] at that point), and if you detect an error at that point you just have to put an error message in $errors[] to stop the post from being saved. I know that's a really short explanation of something that's a bit complicated. If you know php I'd recommend searching for fetch_hook('hook_name') (using whatever hook name you're interested in) to see what's going on at that point in the code. Quote:
It depends on what hook location you're using. If you follow what I outlined above and use newpost_process to process your data, then everything about the post is in $post[]. The "current" (logged in) user's info is in $vbulletin->userinfo, but that could be different than the post if, say, an admin is editing someone else's post. I'm not sure if all the fields you mention are available. What I usually do if I'm wondering is I put in a print_r() to print the entire array into a file, then use it as a reference. |
Благодарность от: | ||
Lynne |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|