The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Anyway to get the poster's username in the threadbit_display hook?
$post[username] doesn't work.
|
#2
|
|||
|
|||
try $this->registry->post[username]
|
#3
|
||||
|
||||
That actually caused a fatal error when trying to view the forum.
Also I wasn't using $post[username] but $vbulletin->post[username] that wasn't working. |
#4
|
||||
|
||||
Have you tried $threadinfo[username]?
|
#5
|
||||
|
||||
Just did, it also comes up blank/isn't available.
|
#6
|
||||
|
||||
$vbulletin->userinfo[username]
|
#7
|
||||
|
||||
The problem with that is it shows the username of the user logged in, I'm looking for the username of the thread/post creator.
|
#8
|
||||
|
||||
Quote:
$thread['postusername'] |
#9
|
||||
|
||||
|
#10
|
||||
|
||||
The easiest way to find out things like this is to do a text search in the files for things like "threadbit_display". Once you find what files the hook is in, it is fairly easy to see how they are calling variables.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|