vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=327067 |
I've extended user profile site with a PHP-Module, which includes a php file. In this file I need to compare two variables.
First variable is userid from user, who visits the profile. Second is whos profile you watch. In my script, second variable is empty. How can I get access to user profiles userid in my included PHP-Script? --------------- Added 01 Feb 2019 at 17:05 --------------- 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.
|
Quote:
Because profile userid is available in $vbulletin->scriptpath, my solution was:
Kind of the same way, but also differently. |
What does scriptpath return? Can you give an example?
|
Quote:
|
All times are GMT. The time now is 08:37. |
Powered by vBulletin® Version 3.8.14
Copyright © 2022, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.