The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Memberinfo Php script
I have a php script that I store the output to a variable. I want to display that variable in the memberinfo template. Is there a way to call the script so that I can use the variable in Memberinfo template?
*edit: I a figured to use a plugin, but what is the best hook location to run the script? |
#2
|
||||
|
||||
Most likely, member_complete, would be the best option.
|
#3
|
||||
|
||||
It depends on where you want to hook the memberinfo for your variable to display.
...as a block? within a tab? https://vborg.vbsupport.ru/showthread.php?t=151254 https://vborg.vbsupport.ru/showthread.php?t=99570 |
#4
|
|||
|
|||
Thank you, I set it to member_complete, but now I have another problem, how can I get the userid of the member page, not your userid. I cant get userid from the url because I am using a url rewrite.
|
#5
|
||||
|
||||
$this->profile->userinfo[$userid];
possibly edit- that may only be for blocks $vbulletin->userinfo['userid'] doesnt work? |
#6
|
|||
|
|||
I got to work with $vbulletin->GPC['userid']. Thanks for everything.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|