MyBB Community Forums

Full Version: Username code?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm making a custom upgrade page, and then I want it to be "Username : USERNAME" but I can't figure out what code to insert there?

I know that UID is {$mybb->user['uid']}, what is username?
{$mybb->user['username']}...
lol fail of me.

Anyways, I'm trying to insert the code in a AlertPay Code, but obviously it doesn't work without the php tags.

Where could I possibly insert them? this is how it should look.

<form method="post" action="https://www.alertpay.com/checkout" >
<input type="hidden" name="ap_purchasetype" value="service"/>
<input type="hidden" name="ap_merchant" value="[email protected]"/>
<input type="hidden" name="ap_itemname" value="VIP Upgrade from {$mybb->user['username']}"/>
<input type="hidden" name="ap_currency" value="USD"/>
<input type="hidden" name="ap_returnurl" value="http://www.minecraftstation.net"/>
<input type="hidden" name="ap_quantity" value="1"/>
<input type="hidden" name="ap_description" value="VIP Upgrade at Minecraft Station"/>
<input type="hidden" name="ap_amount" value="6"/>
<input type="hidden" name="ap_cancelurl" value="http://www.minecraftstation.net"/>

<label><strong>Username:</strong> {$mybb->user['username']}
{$mybb->user['uid']}</label><br style="margin-bottom:5px;" />
<b>Upgrade Cost</b>: 6 $ (USD)<br /><br>
<input type="image" name="ap_image" src="https://www.alertpay.com//PayNow/29B8C86C4F674BE78C0A9BB0A89EFDC1b0en.gif"/>
</form>