![]() |
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']; 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. |
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:
|
Quote:
Because profile userid is available in $vbulletin->scriptpath, my solution was: PHP Code:
|
What does scriptpath return? Can you give an example?
|
Quote:
|
All times are GMT. The time now is 01:01 AM. |
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:
|