The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Userid in PHP-Module
I've extended user profile site with a PHP-Module, which includes a php file. In this file I need to compare two variables.
Code:
$vbulletin->userinfo['userid']; $vbulletin->page['userid']; In my script, second variable is empty. How can I get access to user profiles userid in my included PHP-Script? --------------- Added [DATE]1549044317[/DATE] at [TIME]1549044317[/TIME] --------------- Frustrating. |
#2
|
||||
|
||||
The userid of the profile being viewed is not available in the $vbulletin variable. Just extract and parse it from the current profile URL.
PHP Code:
|
#3
|
||||
|
||||
Quote:
Because profile userid is available in $vbulletin->scriptpath, my solution was: PHP Code:
|
#4
|
||||
|
||||
What does scriptpath return? Can you give an example?
|
#5
|
||||
|
||||
/member/123-username
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|