The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hey, i want a form to submit the username in a hidden feild:
Code:
<font face='arial' size=2><b>All fields marked with a * are required:<br> <form enctype='multipart/form-data' action='REMOVED' method='post'> <table border=1 bordercolor='#000000'> <table width='50%' border=0> <tr><td> Name<font color='#ff0000'>*</font></td> <td> <input type="text" name="Name" size="20"></td></tr> <tr><td> Comments<font color='#ff0000'>*</font></td> <td> <textarea name='Comments' rows=4 cols=31></textarea></td></tr> <input type="hidden" name="forumname" value="$vbulletin->userinfo[username]"> </table> </td></tr></table> <input type='submit' value='Submit Form'> <input type=reset value='Clear Form'></form> |
|
#2
|
||||
|
||||
|
Quote:
|
|
#3
|
|||
|
|||
|
Quote:
Is there anything i need to include etc?? Becuase that is the whole file, just the form, nothing else. |
|
#4
|
|||
|
|||
|
Where are you putting this? In a template for a default vbulletin style or a new file?
|
|
#5
|
|||
|
|||
|
Quote:
if you get what i mean |
|
#6
|
|||
|
|||
|
bump
|
|
#7
|
|||
|
|||
|
If it is in a .php file it should be $vbulletin->userinfo['username'], if it is in a template for a php file it should be $bbuserinfo[username]. This looks like you are using a template because you aren't saving it in a variable, hope that helps...
|
![]() |
|
|