2017-08-20, 08:02 PM
Hi! I have created a custom page here the code
(support.php)
(support.php)
<?php
define('IN_MYBB', 1);
require_once("global.php");
if($mybb->user['uid'] == 0)
error_no_permission();
add_breadcrumb("Support", $_SERVER['PHP_SELF']);
eval("\$page = \"".$templates->get("help_index")."\";");
output_page($page);
?>
How can i create a variable $views that i can put in page template and shows the amount of views?