vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Forms (https://vborg.vbsupport.ru/showthread.php?t=99608)

question? 10-29-2005 01:22 PM

Forms
 
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>

Doesn't work. Any ideas?

Colin F 10-29-2005 02:24 PM

Quote:

Originally Posted by question?
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>

Doesn't work. Any ideas?

Try using $bbuserinfo[username] instead of $vbulletin->userinfo[username]

question? 10-29-2005 02:30 PM

Quote:

Originally Posted by Colin F
$bbuserinfo[username]

I was told that was for 3.0.9 :S

Is there anything i need to include etc?? Becuase that is the whole file, just the form, nothing else.

Guest190829 10-29-2005 02:48 PM

Where are you putting this? In a template for a default vbulletin style or a new file?

question? 10-29-2005 04:40 PM

Quote:

Originally Posted by Danny.VBT
Where are you putting this? In a template for a default vbulletin style or a new file?

In a new file to make into a vBadvanced module

if you get what i mean

question? 11-05-2005 12:53 PM

bump

msgotit 11-05-2005 05:09 PM

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...


All times are GMT. The time now is 07:08 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
  • Page Generation 0.01070 seconds
  • Memory Usage 1,726KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete