![]() |
vB Variables On Other Pages
I have been searching around and have yet to find a definitive answer to the "How can I use vB variables on non-vb pages."
Here's what I'm trying to do. I have a page (actually it's a wordpress blog) that I am trying to integrate with vB. Nothing fancy, I would just like to be able to pull the logged in user's username into the document, and I'd love to be able to use a few group based conditional statements throughout the page. Do I just need to require(); something so I can start pulling variables? Please, point me in the right direction. |
When you include/require 'globals.php' then you can access the userinfo through the array $vbulletin->userinfo
Such as... $vbulletin->userinfo['userid'] $vbulletin->userinfo['username'] $vbulletin->userinfo['usergroupid'] ...etc |
Thank you :) That's exactly what I was looking for.
|
All times are GMT. The time now is 05:26 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:
|