The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to use datamanager to post as Guest ?
Hi,
How can I insert guest posts from a non-vb page using datamanager? (guest posting is enabled from cp) At the moment I use the following code (and it works) to add posts to a thread but only for registered users: PHP Code:
|
#2
|
|||
|
|||
What happens when you try to use it as a guest? Maybe try calling $tdm->pre_save() then check to see if there are any messages in the $tdm->errors array.
|
#3
|
|||
|
|||
Thanks for the response.
I figured it out. When you post as guest the user id must be set to 0 and you need to check that the guest username isn't already registered. HTML Code:
$tdm->set('userid', $user_id = 0); $tdm->set('username', 'Guest Username'); |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|