![]() |
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:
https://vborg.vbsupport.ru/external/2012/09/16.png How do I call the username? |
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']); ?> |
Woohoo, it worked, thank you!! :D
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! |
All times are GMT. The time now is 03:49 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|