Not Solved [How To?] Make a new page with same HTML and CSS
#11
Not Solved
This user has been denied support. This user has been denied support.
(2015-06-20, 04:27 AM).m. Wrote: you can use OUGC Pages plugin

Come on, stop using plugins for every little new thing you want to add. That's uneccessary.

OP, create a new file called NAME.php:

<?php 
define('IN_MYBB', 1); 

require "./global.php";
add_breadcrumb("NAME", "NAME.php"); 

	
eval("\$html = \"".$templates->get("NAME")."\";"); 
output_page($html);
?>

Go to AdminCP > Templates & Style > Templates > Add New Template and name it like the file above (just without .php):

<html>
<head>
<title>{$mybb->settings['bbname']} - NAME</title>
{$headerinclude}
</head>
<body>
{$header}

Your content here

{$footer}
</body>
</html>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)