![]() |
Small Mod question
I'm making a small and simple mod for my site. Th users enters some data, the data is stored in a table and then every time the users access the page, the mod run a query and get the users data.
Problem: I can only get the script to run the query and echo the results if the user access the page like this: http://xxx.com/forum/mypage.php?username=xxxxxx Question: Is there any way to run the query as soon as the user enter the page? just by typing the page : http://xxx.com/forum/mypage.php I don't have PHP experience and any help will be appreciated. |
The script still needs to know which user to process. Do you mean you want to just fetch the current user? This can be done by using the $vbulletin->userinfo array.
|
Quote:
Quote:
I added this line: $username = $vbulletin->GPC['username']; (another user suggested) but it didn't work. thanks UPDATE: I used $username = $vbulletin->userinfo['username']; and it works, but for some reason only in that page, in the navbar I get: Your PM box is 50% full below the notifications. |
All times are GMT. The time now is 11:18 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:
|