PDA

View Full Version : Memberinfo Php script


darkblade25
11-27-2008, 02:02 AM
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?

Dismounted
11-27-2008, 03:33 AM
Most likely, member_complete, would be the best option.

Bilderback
11-27-2008, 03:36 AM
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

darkblade25
11-27-2008, 03:43 AM
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.

Bilderback
11-27-2008, 03:46 AM
$this->profile->userinfo[$userid];
possibly
edit- that may only be for blocks

$vbulletin->userinfo['userid'] doesnt work?

darkblade25
11-27-2008, 04:00 AM
I got to work with $vbulletin->GPC['userid']. Thanks for everything.