The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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: |
#2
|
||||
|
||||
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 |
#3
|
||||
|
||||
Xenon is a PHP God.. Cant forget hellsatan though. And arunan. And all them others :OI
|
#4
|
|||
|
|||
Quote:
thanks though, I'll give it a shot. Edit: gave it a shot, got this: PHP Code:
|
#5
|
|||
|
|||
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.
|
#6
|
||||
|
||||
instead of just
PHP Code:
PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|