Quote:
Originally Posted by Tralala
I did, and it posted to a thread just fine. Thanks for that customization.
My variables are set thusly:
Code:
// Use $postusername if posting as a guest, use $postuserid if posting as a user
//$postusername = 'admin';
$postuserid = $vbulletin->userinfo['userid'];
And so the post was made by the new member him/herself.
When I tried using $postusername instead, upon registration, new members would get a screen that said: " No Users Matched Your Query" (instead of "Thank you for registering, blank. An email has been dispatched to blank@blank.com with details...") This happened even if I changed "admin" to the username of a real admin on the forum, like "tralala."
Ideally I'd like for these new posts to be made by one of our admins, or maybe a "welcome bot" account, or perhaps even the member who referred their friend to our forum in the first place. Flexibility here would be ideal. Given the nature of our invite system, it seems awkward for the new member to "announce" their arrival in this way. I'd prefer it to be an existing member (or bot) making the welcome announcement.
And of course, I'd very much appreciate the posting of these to be made AFTER the new accounts are approved by moderators. Looking forward to more details on that.
|
If you want to post it as a specific user in your forum, change
PHP Code:
$postuserid = $vbulletin->userinfo['userid'];
to
PHP Code:
$postuserid = '1';
(Or whatever userid of the person you want the post to be made as...)
If you want the post to be made by an unregistered guest, make sure to comment out the $postuserid section like this:
PHP Code:
// Use $postusername if posting as a guest, use $postuserid if posting as a user
$postusername = 'Hey Im teh welcome bot!';
//$postuserid = $vbulletin->userinfo['userid'];
EDIT: ^^ Be sure the $postusername is NOT the name of a person already on the forum...