Customizing SMF > Graphics and Templates

Simple template question

(1/1)

127.0.0.1:
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.

[Unknown]:
There are a few methods... number one:

Open Themes/yourtheme/index.template.php, and look for:

--- Code: ---function template_main_above()
{
--- End code ---

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

Next, look for:

--- Code: ---function template_main_below()
{
--- End code ---

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

-[Unknown]

Navigation

[0] Message Index

Go to full version