MyBB Community Forums

Full Version: [Without Plugin] Making an Upgrade Page
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Create a php file and name it "upgrade"

<?php 

define('IN_MYBB', 1); require "./global.php";

add_breadcrumb("Upgrade", "upgrade.php"); 

eval("\$html = \"".$templates->get("upgrade")."\";"); 

output_page($html);

?>

Now go to ACP > Themes & templates > Templates > Global Templates > Add template.

You will need to write your own content.

<html>
<head>
<title>Upgrade</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><span class="smalltext"><strong>Upgrade</strong></span></td>
</tr>
<tr>
<td class="trow1">

Add here your custom messages.

</td></tr></table>
{$footer}
</body>
</html>

You can edit that however you wish. But make sure you call the template "upgrade" since the php file is called that as well.

If you have any questions, feel free to hit me up.
Hmm. But its more like how to create a new page, similar to Pratik's (c4cs) one.
http://community.mybb.com/thread-116225.html

Upgrade page sounds there will be paypal checkout or newpoints exchange or some kind of payment process which this tutorial failed to deliver.
You've to add your own PayPal Checkout Button, from the merchant option.
Button can be added anywhere, what this page is for? Only show?
Can you implement PayPal IPN Checkout in this page?
Ya thats the point of the plugin having Paypal IPN.