![]() |
Cannot get username
Hello, I'am new in VB4.
I try to create a plugin that add a field in postbit for showing a score from a game. This field is stored in a custom table in db. This is code for plugin: Code:
$name = $vbulletin->userinfo['username']; How can get the username? |
Try including..
Code:
global $vbulletin; |
Thanks now work
--------------- Added [DATE]1310732424[/DATE] at [TIME]1310732424[/TIME] --------------- Yes now work but $name return my username, not the username of author of thread. How can get the username of author of thread? --------------- Added [DATE]1310734332[/DATE] at [TIME]1310734332[/TIME] --------------- OK, I have solved using varible $post[userid] |
All times are GMT. The time now is 11:39 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|