Million Dollar Script doesn’t have a built in way to add new pages. However this isn’t very hard to do with a little work.
First you must create a new file in the root path (same folder as the MDS config.php) with the following content:
<?php // set the root path define( "MDSROOT", dirname( __FILE__ ) ); // initialize require_once MDSROOT . "/include/init.php";
// header require_once MDSROOT . "/html/header.php"; ?> YOUR CONTENT (can include HTML) <?php
// footer require_once MDSROOT . "/html/footer.php"; ?>
You can add your stuff where it says YOUR CONTENT (can include HTML) and as suggested your code can include HTML. If you don’t know HTML you search for a visual HTML editor, there are plenty of free ones available online. Be sure not to edit anything before or after that line but you can add as many lines in between the ?> and <?php lines as you want.
For example:
<?php // set the root path define( "MDSROOT", dirname( __FILE__ ) ); // initialize
require_once MDSROOT . "/include/init.php";
// header
require_once MDSROOT . "/html/header.php"; ?> <h1>Hello World!</h1> <p>This is my page content.</p> <?php // footer
require_once MDSROOT . "/html/footer.php";
?>
Next you must create a menu item to link to this page. For this you must edit the file located at html/header.php. Find the section near the bottom that looks like this:
<div class="menu-bar">
<a href='<?php echo BASE_HTTP_PATH; ?>index.php'>Home</a>
<a href='<?php echo BASE_HTTP_PATH; ?>users/'>Buy Pixels</a>
<a href='<?php echo BASE_HTTP_PATH; ?>list.php'>Ads List</a>
</div>
What you want to do is copy and paste one of the lines so it looks like this:
<div class="menu-bar">
<a href='<?php echo BASE_HTTP_PATH; ?>index.php'>Home</a>
<a href='<?php echo BASE_HTTP_PATH; ?>users/'>Buy Pixels</a>
<a href='<?php echo BASE_HTTP_PATH; ?>list.php'>Ads List</a>
<a href='<?php echo BASE_HTTP_PATH; ?>hello.php'>Hello</a>
</div>
Notice I’ve changed the link to the new file I created above and adjusted the menu text to Hello.
This is a similar process for the other menu further down in the file which shows up when users are logged in.
One last thing you may want to do is adjust styles for the page. You can edit styles in the CSS file located at css/main.css. There are various tutorials for editing CSS online. In short, you can right click and inspect the page and find which element you’d like to change and find or add the appropriate class selector in the CSS file and modify it to your liking.
Once you save your file it should appear on your site once you refresh your page.
Alternatively you can use the WordPress integration to add custom pages through WordPress and customize the look there instead.