The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
||||
|
||||
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.
|
#3
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|