Hello everyone,
When I was configuring the plugin MyBB I noticed there was a setting in the
Overview plugin
Quote:Hide overview from index page
If you don't want the overview to display on the index page, say yes. This is only useful if you make a custom overview page
I'm wondering how I can create this custom page? Can I do it in Page manager? I'm assuming so but I have no idea where to start.
Can anyone help?
Thanks!
Thank you so much.
Okay, I've followed the template but nothing is showing yet
Quote:<?php
define('IN_MYBB', 1); require "./global.php";
add_breadcrumb("Overview", "overview.php");
eval("\$html = \"".$templates->get("overview")."\";");
output_page($html);
?>
<html>
<head>
<title>Overview</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><span class="smalltext"><strong>Overview Page</strong></span></td>
</tr>
<tr>
<td class="trow1">
</td></tr></table>
{$footer}
</body>
</html>
Did I do something wrong?
add {$overview} between <td class="trow1"> and </td>
<td class="trow1">
{$overview}
</td>
Thanks!
I did that and now I get this message
Quote:
Fatal error: Call to a member function set_language() on a non-object in /home/xxx/public_html/forums/global.php on line 95
You need PHP in order to call the functions that actually build the overview.
Complete example:
<?php
define("IN_MYBB", 1);
define("NO_ONLINE", 1);
require("global.php");
global $plugins;
global $settings;
add_breadcrumb("Übersicht");
$settings['overview_max'] = 20;
$plugins->run_hooks("overview_start");
$plugins->run_hooks("overview_end");
eval("\$seite = \"".$templates->get("seite_overview")."\";");
output_page($seite);
?>
And in the template you can use {$overview}.
If page manager is able to run php code (the $plugins->run_hooks) then you should be able to use that, too.
Thanks for the reply.
But I'm still getting the error message, is there something wrong with my code?
<?php
define("IN_MYBB", 1);
define("NO_ONLINE", 1);
require("global.php");
global $plugins;
global $settings;
add_breadcrumb("Overview", "overview.php");
$settings['overview_max'] = 20;
$plugins->run_hooks("overview_start");
$plugins->run_hooks("overview_end");
eval("\$html = \"".$templates->get("overview")."\";");
output_page($html);
?>
<html>
<head>
<title>Overview</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><span class="smalltext"><strong>Overview Page</strong></span></td>
</tr>
<tr>
<td class="trow1">
{$overview}
</td>
</td></tr></table>
{$footer}
</body>
</html>
Sorry, I'm a complete PHP noob!
Do you get the same with
<?php
define("IN_MYBB", 1);
require("global.php");
?>
and otherwise empty PHP file? Then you have some issue on your board, not related to Overview. And I have no clue what that could be...
Quote:Do you get the same with
PHP Code:
<?php
define("IN_MYBB", 1);
require("global.php");
?>
and otherwise empty PHP file? Then you have some issue on your board, not related to Overview. And I have no clue what that could be...
I do get the same error with a blank page.
Quote:may be this: a quick search result for the referred issue
I have never used the MyBB integrator so I don't think thats what is causing it.
Any other ideas?