Simple Machines Community Forum

Customizing SMF => Graphics and Templates => Topic started by: 127.0.0.1 on March 15, 2004, 02:01:27 AM

Title: Simple template question
Post by: 127.0.0.1 on March 15, 2004, 02:01:27 AM
how do i get smf into my sites template? for yabbse i just put "<?php require ('../forum.php');?>" into the template.php which was in the yabbse dir. cant figure out how to do it with smf.
Title: Re: Simple template question
Post by: [Unknown] on March 15, 2004, 02:12:41 AM
There are a few methods... number one:

Open Themes/yourtheme/index.template.php, and look for:
function template_main_above()
{


Just after that, put:
include('../top.php');
(this file should contain everything above the main content..)

Next, look for:
function template_main_below()
{


Now look for the end of that function, and put this:
include('../bottom.php');
(same idea.)

-[Unknown]