![]() |
Variable scope issue
I have two plugins
Plugin 1 fires on hook: login_verify_success Plugin contents: global $tvbl; $tvbl["var"] = "test"; Plugin 2 fires on hook: forumhome_complete Plugin contents: global $tvbl; print_r($tvbl); and it never has any data in plugin 2. Is vB doing something after a successful login that is clearing all variables, etc? I've tried several things, but can't seem to carry a variable over from the login_verify_success (where I need it) hook, once they log in. |
Quote:
|
I kinda figured as much, thanks for the reply. I'm just writing out the data I need to the DB and rereading it when I need it at the moment. Might not be the best solution, but it's the only one I've been able to come up with so far.
|
All times are GMT. The time now is 01:36 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:
|