The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How to grab Username from inside a Plugin
I am using a template with $includedphp in it.
My plugin is as follows (a form which inserts info into the database).. I need it to include their Username but it isn't grabbing anything PHP Code:
How do I call the username? |
#2
|
|||
|
|||
I don't think there's any html <text> tag. I think you either want <textarea> or <input type="text"...
Edit: Also I don't know if you can put a php variable in there when you're in html mode (outside the <?php ... ?> tags), so you might have to do something like Code:
<?php echo($vbulletin->userinfo['username']); ?> |
#3
|
|||
|
|||
Woohoo, it worked, thank you!!
Also, it was <text> because I didn't want them to be able to edit their username. Changed it to input type="text" and added readonly property. You're awesome! |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|