The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
build_new_post posting with wrong userid??
I was trying to have a thread auto created. This was working fine, but the other day is created the post with the wrong userid.
PHP Code:
I thought maybe $userid was being updated elsewhere in some other script and just happened to mess up my script. So I figured I would change the userid to something unique. PHP Code:
The old code works fine except for the one time when it posted under the wrong user name. So I am trying to understand what the problem could have been. Any ideas? Thanks Jake |
#2
|
||||
|
||||
The new code, for some reason, always uses $bbuserinfo to get the posterid - no matter what you pass it.
I solved this for myself by making the post and then immediately updating the post, thread, and forum info with the correct userid and username. Check my automatic thread on registration mod to see what I mean. Amy |
#3
|
||||
|
||||
The old code should work - if this is for vBulletin 3.0.X.
For vBulletin 3.5, you must overwrite $vbulletin->userinfo instead of $bbuserinfo |
#4
|
|||
|
|||
This if for 3.0.7.
If I need to update the thread and post after I make the message, how can I get their respective id numbers? Thanks |
#5
|
||||
|
||||
it's in the post[postid] and post[threadid] values after the post is made.
|
#6
|
|||
|
|||
ok, thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|