2012-04-01, 02:47 PM
Pages: 1 2
2012-04-01, 03:05 PM
(2012-04-01, 02:47 PM)Lewes Wrote: [ -> ]Ok, I'll make a tutorial later and post the link here.
If it involves going to another site, don't bother. Save your time and mines.
2012-04-01, 03:07 PM
Its on MyBB:
http://community.mybb.com/thread-116043.html
Written by me, if you still cant get it to work, give me admin access on your forum (if you let me) and I'll set it up for you.
http://community.mybb.com/thread-116043.html
Written by me, if you still cant get it to work, give me admin access on your forum (if you let me) and I'll set it up for you.
2012-04-01, 04:04 PM
Its quite easy. Heres how you do.
First create, somepage.php file. Inside it, paste below code and save it:
Next, Themes & templates > Templates > Global Templates > Add template.
Add below example template:
And for title, give any title to it but make sure you enter same title name in the somename.php file where it is calling (evaluating evald) the template name. As in this example case, you should enter title as template_name since we entered and recalled same global template in somename.php file.
Save the global template and it should work fine now.
First create, somepage.php file. Inside it, paste below code and save it:
<?php
define('IN_MYBB', 1); require "./global.php";
add_breadcrumb("Title here", "somename.php");
eval("\$html = \"".$templates->get("template_name")."\";");
output_page($html);
?>
Next, Themes & templates > Templates > Global Templates > Add template.
Add below example template:
<html>
<head>
<title>Your title here</title>
{$headerinclude}
</head>
<body>
{$header}
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><span class="smalltext"><strong>Your title here.</strong></span></td>
</tr>
<tr>
<td class="trow1">
Add here your custom messages.
</td></tr></table>
{$footer}
</body>
</html>
And for title, give any title to it but make sure you enter same title name in the somename.php file where it is calling (evaluating evald) the template name. As in this example case, you should enter title as template_name since we entered and recalled same global template in somename.php file.
Save the global template and it should work fine now.
2012-04-01, 04:06 PM
Like that, my tutorial is more advanced but still works.
Pages: 1 2