MyBB Support
Show profile name on upgrade?
Submitted by Zenith, 29-01-2016, 07:35 AM, Thread ID: 17533
Thread Closed
Not really a "Mybb" problem. But the Upgrades section only has an "Example" character right now.
How do I make it so it says the username of the mybb user
**note that this is a different page and not a part of a theme**
Images:
What it looks like:
What I want it to look like:
Thank you
How do I make it so it says the username of the mybb user
**note that this is a different page and not a part of a theme**
Images:
What it looks like:
What I want it to look like:
Thank you
RE: Show profile name on upgrade?
fetch the username or simply use {$mybb->user['username']} in place of example.
would u mind sharing the upgrade.php code ?
would u mind sharing the upgrade.php code ?
RE: Show profile name on upgrade?
Yeah. no problem.
Code:
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Upgrade</title>
<base href="https://*notsaying*.com" >
<meta content="text/html;charset=UTF-8">
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta name="keywords" content="Vanforums, Vanissery, Youtube">
<meta name="description" content="Vanforums is a great general discussion forum which is based on multiple and various topics!">
<link href="https://*notsaying*/css_js/realv2.css?v=18" rel="stylesheet">
<link href="https://cdn.nefortix-assets.com/fa.min.css" rel="stylesheet">
<link rel="icon" type="image/png" sizes="64x64" href="favicon.ico">
<script type="text/javascript" src="https://*notsaying*/jscripts/jquery.js?ver=1804"></script>
<script type="text/javascript" src="https://*notsaying*/jscripts/jquery.plugins.min.js?ver=1804"></script>
<script type="text/javascript" src="https://*notsaying*/jscripts/general.js?ver=1804"></script>
<script type="text/javascript" src="https://*notsaying*/jscripts/load.min.js"></script>
<script type="text/javascript">
lang.unknown_error = "An unknown error has occurred.";
lang.select2_match = "One result is available, press enter to select it.";
lang.select2_matches = "{1} results are available, use up and down arrow keys to navigate.";
lang.select2_nomatches = "No matches found";
lang.select2_inputtooshort_single = "Please enter one or more character";
lang.select2_inputtooshort_plural = "Please enter {1} or more characters";
lang.select2_inputtoolong_single = "Please delete one character";
lang.select2_inputtoolong_plural = "Please delete {1} characters";
lang.select2_selectiontoobig_single = "You can only select one item";
lang.select2_selectiontoobig_plural = "You can only select {1} items";
lang.select2_loadmore = "Loading more results";
lang.select2_searching = "Searching";
var cookieDomain = ".*notsaying*";
var cookiePath = "/";
var cookiePrefix = "";
var deleteevent_confirm = "Are you sure you want to delete this event?";
var removeattach_confirm = "Are you sure you want to remove the selected attachment from this post?";
var loading_text = 'Loading. <br />Please Wait..';
var saving_changes = 'Saving changes..';
var use_xmlhttprequest = "1";
var my_post_key = "b95d69052e9bc7119aa7e6c7432358c7";
var rootpath = "*notsaying*.net";
var imagepath = "https://*notsaying*/images";
var yes_confirm = "Yes";
var no_confirm = "No";
var MyBBEditor = null;
var spinner_image = "https://*notsaying*/images/spinner.gif";
var spinner = "<img src='" + spinner_image +"' alt='' />";
var modal_zindex = 9999;
</script>
<style>.v2stuff {display:none!important}</style>
</head>
<body>
<style>
.tossy-desc {
background: rgba(0,0,0,0.5);
border-radius: 2px;
padding: 6px;
color: #a0a0a0;
}
.newcheck-yas {
color: #2ECC71;
}
.newcheck-nay {
color: #F64747;
}
.buyking {
background: #05BBED;
padding: 10px;
border-radius: 2px;
opacity: 0.9;
color: #fff;
font-size: 12px;
font-weight: 400;
}
.buyember {
background: #D56DF8;
padding: 10px;
opacity: 0.9;
border-radius: 2px;
color: #fff;
font-size: 12px;
font-weight: 400;
}
.buysponsor {
background: #14CE00;
padding: 10px;
opacity: 0.9;
border-radius: 2px;
color: #fff;
font-size: 12px;
font-weight: 400;
}
.sponsor {
color:#14CE00;text-shadow: 0px 0px 8px #FFF;font-weight:500;
}
.upgrade-border-bottom-sponsor {
border-bottom: 5px solid #14CE00;
padding: 0px;
margin: 0px;
}
</style>
<div class="navigation">
<a href="http://vanissery.x10host.com/index.php">VanForums</a>
>
<span class="active">Upgrade</span>
</div>
<br />
<table border="0" cellspacing="1" cellpadding="2" class="tborder-staff">
<tr>
<td>
<table width="100%" border="0" align="center">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="10" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Upgrade</strong></td>
</tr>
<div class="wrap">
<td class="trow1">
<div align="center">
<div class="upgrade-border">
<div class="upgrade-price">
<div class="upgrade-text">
$10 Lifetime<br>
</div>
</div>
<br />
<div class="upgrade-border-text"><span class="VIP" style="color: #00ff6c; text-shadow: 1px 1px 5px #00ff6c; background: transparent url(http://i656.photobucket.com/albums/uu288/angel-45/backround6.gif)">VIP</span></div>
<img src="http://i.imgur.com/ULtS5To.png">
<br />
<div class="upgrade-border-bottom-sponsor">
</div>
<br />
<div class="upgrade-features">
<div class="float_left">Username style</div>
<span class="VIP" style="color: #00ff6c; text-shadow: 1px 1px 5px #00ff6c; background: transparent url(http://i656.photobucket.com/albums/uu288/angel-45/backround6.gif); float:right;">Example</span>
<br />
<div class="float_left">Private messages</div>
<div class="float_right">1000</div>
<br />
<div class="float_left">Attachment Size</div>
<div class="float_right">3000KB</div>
<br />
<div class="float_left">Reputation</div>
<div class="float_right">+10 / -10 reputation</div>
<br />
<div class="float_left">Username Changes</div>
<div class="float_right">5x (ask admin)</div>
<br />
<div class="float_left">Custom usertitle</div>
<i class="float_right newcheck-nay fa fa-times"></i>
<br />
<div class="float_left">Image Usernames</div>
<i class="float_right newcheck-nay fa fa-times"></i>
<br />
<div class="float_left">VIP Section</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Change Username Color</div>
<i class="float_right newcheck-nay fa fa-times"></i>
<br />
<div class="float_left">Change Userbar Color</div>
<i class="float_right newcheck-nay fa fa-times"></i>
<br />
<div class="float_left">Rep As Staff</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Lifetime</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<br />
<a href="https://www.paypal.me/Vanissery/10usd"><div class="buysponsor">Purchase</div></a>
</div>
</div>
<div class="upgrade-border">
<div class="upgrade-price">
<div class="upgrade-text">
$35 Lifetime<br>
</div>
</div>
<br />
<div class="upgrade-border-text"><span class="ember" style="color: #d56df8; text-shadow: 0px 0px 5px #9b59b6; background: transparent url(http://i656.photobucket.com/albums/uu288/angel-45/backround6.gif);">VIP</span></div>
<img src="http://i.imgur.com/g616cGg.png">
<br />
<div class="upgrade-border-bottom-ember">
</div>
<br />
<div class="upgrade-features">
<div class="float_left">Username style</div>
<span class="ember" style="float:right; color: #d56df8; text-shadow: 0px 0px 5px #9b59b6; background: transparent url(http://i656.photobucket.com/albums/uu288/angel-45/backround6.gif);">{$mybb->user['username']}</span>
<br />
<div class="float_left">Private messages</div>
<div class="float_right">5000</div>
<br />
<div class="float_left">Attachment Size</div>
<div class="float_right">6000KB</div>
<br />
<div class="float_left">Reputation</div>
<div class="float_right">+25 / -25 reputation</div>
<br />
<div class="float_left">Username Changes</div>
<div class="float_right">10x (ask admin)</div>
<br />
<div class="float_left">Custom usertitle</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Image Usernames</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Ember Section</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Change Username Color</div>
<i class="float_right newcheck-nay fa fa-times"></i>
<br />
<div class="float_left">Change Userbar Color</div>
<i class="float_right newcheck-nay fa fa-times"></i>
<br />
<div class="float_left">Rep As Staff</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Lifetime</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<a href="https://www.paypal.me/Vanissery/35usd"><div class="buyEmber">Purchase</div></a>
<br />
<a href="https://www.paypal.me/Vanissery/25usd"><div class="buyEmber">From VIP</div></a>
</div>
</div>
<div class="upgrade-border">
<div class="upgrade-price">
<div class="upgrade-text">
$50 Lifetime<br />
</div>
</div>
<br />
<div class="upgrade-border-text"><span class="Aesthetic" style="color: #1E90FF; text-shadow: 0px 0px 3px #1E90FF; background: transparent url(http://i656.photobucket.com/albums/uu288/angel-45/backround6.gif);">Aesthetic</span></div>
<img src="http://i.imgur.com/2WfbeU9.png">
<br />
<div class="upgrade-border-bottom-king">
</div>
<br />
<div class="upgrade-features">
<div class="float_left">Username style</div>
<span class="sponsor" style="color: #1E90FF; text-shadow: 0px 0px 3px #1E90FF; background: transparent url(http://i656.photobucket.com/albums/uu288/angel-45/backround6.gif); float:right;">Example</span>
<br />
<div class="float_left">Private messages</div>
<div class="float_right">10000</div>
<br />
<div class="float_left">Attachment Size</div>
<div class="float_right">9000KB</div>
<br />
<div class="float_left">Reputation</div>
<div class="float_right">+50 / -50 reputation</div>
<br />
<div class="float_left">Username Changes</div>
<div class="float_right">Unlimited at will</div>
<br />
<div class="float_left">Custom usertitle</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Image Usernames</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Aesthetic Section</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Change Username Color</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Change Userbar Color</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Rep As Staff</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<div class="float_left">Lifetime</div>
<i class="float_right newcheck-yas fa fa-check"></i>
<br />
<br />
<a href="https://www.paypal.me/Vanissery/50usd"><div class="buyking">Purchase</div></a>
<br />
<a href="https://www.paypal.me/Vanissery/40usd"><div class="buyking">From VIP</div></a>
<br />
<a href="https://www.paypal.me/Vanissery/15usd"><div class="buyking">From Ember</div></a>
<br />
</div>
</div>
</div>
</div>
<br />
<div style="width: 99%;">
<div class="tborder">
<div class="thead"><strong>Terms of Service & FAQ</strong></div>
<div class="trow1" style="padding: 10px;">
<div class="tossy-desc"><i style="color: #446CB3; margin-right: 10px;" class="fa fa-star"></i> After purchasing an upgrade, PM <a href="http://vanissery.x10host.com/member.php?action=profile&uid=1"><span style="color: #f90; text-shadow: 1px 1px 5px #000;">Vanissery</span></a> with the transaction ID and a picture of the purchasing page.</div><br>
<div class="tossy-desc"><i style="color: #446CB3; margin-right: 10px;" class="fa fa-star"></i> Although you've purchased an upgrade, you still have to follow the same rules as every other member does, upgraded or not.</div><br>
<div class="tossy-desc"><i style="color: #446CB3; margin-right: 10px;" class="fa fa-star"></i> It can take up to 48 hours to give your upgrade, as this is done manually. </div><br>
<div class="tossy-desc"><i style="color: #446CB3; margin-right: 10px;" class="fa fa-star"></i> If it's been over 48 hours, message an admin. </div><br>
<div class="tossy-desc"><i style="color: #446CB3; margin-right: 10px;" class="fa fa-star"></i> We do not refund upgrades. </div><br>
<div class="tossy-desc"><i style="color: #446CB3; margin-right: 10px;" class="fa fa-star"></i> If you happen to charge back, your account will be banned. </div><br>
<div class="tossy-desc"><i style="color: #446CB3; margin-right: 10px;" class="fa fa-star"></i> Upgraded accounts cannot be shared, if we see an account being shared, it'll be banned.</div>
<br />
<div class="tossy-desc"><i style="color: #446CB3; margin-right: 10px;" class="fa fa-star"></i>We do not accept Bitcoin at this time.</div>
</div>
</div>
</div>
</td>
</table>
<br />
</div>
<br />
<br />
</td>
</tr>
</table>
</td>
</tr>
RE: Show profile name on upgrade?
29-01-2016, 09:02 AM
#4 :3. That variable won't work on a page which isn't connected with myBB. make template based page - http://community.mybb.com/thread-116225.html - then use that variable in template
RE: Show profile name on upgrade?
29-01-2016, 09:02 AMQuanity Wrote: :3. That variable won't work on a page which isn't connected with myBB. make template based page - http://community.mybb.com/thread-116225.html - then use that variable in template
I followed everything he said. and got this
:(
RE: Show profile name on upgrade?
29-01-2016, 09:13 AM
#6 29-01-2016, 09:08 AMZenith Wrote:29-01-2016, 09:02 AMQuanity Wrote: :3. That variable won't work on a page which isn't connected with myBB. make template based page - http://community.mybb.com/thread-116225.html - then use that variable in template
I followed everything he said. and got this
:(
meh. lemme find a solution
RE: Show profile name on upgrade?
29-01-2016, 09:13 AMQuanity Wrote:29-01-2016, 09:08 AMZenith Wrote:29-01-2016, 09:02 AMQuanity Wrote: :3. That variable won't work on a page which isn't connected with myBB. make template based page - http://community.mybb.com/thread-116225.html - then use that variable in template
I followed everything he said. and got this
:(
meh. lemme find a solution
Okay wait. I did it wrong at first. fixed it.
Thank you though
RE: Show profile name on upgrade?
29-01-2016, 10:05 AM
#8 29-01-2016, 09:18 AMZenith Wrote:29-01-2016, 09:13 AMQuanity Wrote:29-01-2016, 09:08 AMZenith Wrote:29-01-2016, 09:02 AMQuanity Wrote: :3. That variable won't work on a page which isn't connected with myBB. make template based page - http://community.mybb.com/thread-116225.html - then use that variable in template
I followed everything he said. and got this
:(
meh. lemme find a solution
Okay wait. I did it wrong at first. fixed it.
Thank you though
lol. :3 so it worked. Cool
Enjoy
Users browsing this thread: 5 Guest(s)