2012-02-10, 10:41 AM
Hi,
How can I set the value of {$name}?
This is the template:
This is the code in php file:
Please help me, I am stuck in it.
How can I set the value of {$name}?
This is the template:
<html>
<head>
<title>{$mybb->settings[bbname]}</title>
{$headerinclude}
</head>
<body>
{$header}
<br />
<table width="100%" border="0">
<thead>
<tr>
<th>RULES</th>
</tr>
<tbody>
<tr>
<td>Our rules {$name}</td>
</tr>
</tbody>
</table>
{$footer}
</body>
</html>
This is the code in php file:
<?php
define('IN_MYBB', 1); // (1a)
require "./global.php"; // (1b)
global $name;
add_breadcrumb("Rules page", "rules.php"); // (2)
eval("\$rules = \"".$templates->get("rules")."\";"); // (3)
$name = 'abc';
output_page($rules); // (4)
?>
Please help me, I am stuck in it.