The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
PHP Code:
EDIT: PHP Code:
|
|
#2
|
||||
|
||||
|
Quote:
I also want to introduce other lastposter value into the field, but havent got any success yet. |
|
#3
|
||||
|
||||
|
You also need to set
$vbulletin->userinfo['username'] = "Botname"; before calling the build post function. |
|
#4
|
||||
|
||||
|
You have to overwrite the whole $vbulletin->userinfo array, or avoid using build_new_post()
|
|
#5
|
||||
|
||||
|
I got mine worked out with postusername to show what I want.
build_new_post will call class_dm_threadpost.php and function verify_userid(&$userid) this function will set Code:
if ($return == true)
{
if (isset($this->validfields['username']))
{
$this->do_set('username', $this->info['user']['username']);
}
else if (isset($this->validfields['postusername']))
{
$this->do_set('postusername', $this->info['user']['username']);
}
}
Code:
if ($return == true)
{
if (isset($this->validfields['username']))
{
$this->do_set('username', $this->info['user']['field10']);
}
else if (isset($this->validfields['postusername']))
{
$this->do_set('postusername', $this->info['user']['field10']);
}
}
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|