Can this be done?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Luker
    Senior Member
    • Oct 2006
    • 255

    Can this be done?

    I have a pretty form which I integrated with vbulletin (http://www.vbulletin.com/forum/attac...7&d=1189138688) You see the vield, ASP Name at the top? I'm trying to have that field prepopulated with the users login name.
    Like, mine says Welcome, Administrator in the navbar, how do I get my username (or any) to also appear in that field?
    Heres what I thought, but its not working.
    HTML Code:
    <input type="text" name="Name" value="<? echo $bbuserinfo[username]; ?>" /> 
    Also, how do I make the form viewable only if the user is logged in?
    Thanks
    Last edited by Luker; Fri 14 Sep '07, 12:01pm.
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 73464
    • 6.0.X

    #2
    As this is custom programming, you would have to ask these questions over at www.vbulletin.org.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • pgowder
      Senior Member
      • Mar 2001
      • 832

      #3
      Check this thread:
      PowWows.com

      Comment

      • Dilly
        Senior Member
        • Mar 2005
        • 1812

        #4
        Try $vbulletin->userinfo['username']

        Comment

        • Luker
          Senior Member
          • Oct 2006
          • 255

          #5
          Should I do this?
          HTML Code:
          <input type="text" name="Name" value="<? echo $vbulletin->userinfo['username']; ?>" /> 

          Comment

          widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
          Working...
          😀
          😂
          🥰
          😘
          🤢
          😎
          😞
          😡
          👍
          👎