MyBB 1.8.x Mod MyBB PHP page without plugin
#1
Bug 
MYBB PHP page without plugin

1. Create your MyBB template.
- Admin CP --> Templates & Style --> Templates --> Global Templates --> Add Template
- Name your template whatever you like.
- "Template Set" should be "Global Templates"
- Create your template as normal.

PHP Code:
<html>
<
head>
<
title>Your Site</title>
{
$headerinclude}
</
head>
<
body>
{
$header}
  Use 
whatever MyBB Markup you want.
{
$footer}
</
body>
</
html


2. Create a new PHP file and copy/paste the following lines of code:
PHP Code:
<?php
define
("IN_MYBB",1);
include(
"global.php");
eval(
"\$page .= \"".$templates->get("your-template-name-goes-here")."\";");
output_page($page);    
?>

3. Move your new page into your MyBB root directory.
This is the same directory where "global.php" is located

Nota: Crear el template debe ser con el Panel de Administración de MYBB, si deseas observar un ejemplo real, puedes observar el Plugin de XML Database League, MyBB to generate a League Stats




Referencias:
[Image: 51.jpg]
We11World [ Winning Eleven ] , Blog , Archive Forums
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)