The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Postbit PHP
I have a script I want to run in the postbit of every user to display information based on their User ID. So far I have nothing, basically the whole script revolves around the User ID of the user. How do I get $post[userid] or something similar to interact with my PHP plugin?
|
#2
|
||||
|
||||
Well, if you pick the correct hook locatatio (postbit_display_*) then $post[userid] is already available for use and you may do what you want with it.
|
#3
|
|||
|
|||
I'm using the postbit_display_complete hook location, but how do I get the $post[userid] to pass into my PHP script?
|
#4
|
||||
|
||||
Pass into *what* php script? The php script in the plugin? Perhaps you shoudl post your code because I'm not understanding what you want to do.
|
#5
|
|||
|
|||
I want the $post[userid] to become a variable in my PHP plugin.
Like $userid = $post[userid]; (but I know that doesn't work)...how do I get the poster's userid defined as a variable in my plugin. |
#6
|
||||
|
||||
Have you tried $this->post['userid'] ?
(If you look at the code in the php file where the hook is called, you'll see how variables are being called around that area.) |
#7
|
|||
|
|||
I got it, thank you very much for your help!
$this->post['userid'] worked perfectly! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|