![]() |
forms on main page
hey guys. I got a request for a hack, I searched for it but came up with nothing. Sorry if it's out there, if it is link me please.
on my main page, I have forms, and one of the input fields is name. I think it would be cool if a memeber is loged in, or a session is found, inside that field is their username. If you understood that... :smoke: |
have you requiread your global.php in your mainpage?
if yes, just use $bbuserinfo[username] as the default value of the form. if no, reuire it first and then do as above |
Xenon is a PHP God.. Cant forget hellsatan though. And arunan. And all them others :OI
|
Quote:
thanks though, I'll give it a shot. Edit: gave it a shot, got this: PHP Code:
|
Hmm, don't see why you're getting that error. From what I understand of Xenon's post you shouldn't have actually edited the global.php file. Only added $bbuserinfo[username] into the forumhome_xxxx template.
|
instead of just
PHP Code:
PHP Code:
|
All times are GMT. The time now is 04:22 PM. |
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:
|