News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Simple template question

Started by 127.0.0.1, March 15, 2004, 02:01:27 AM

Previous topic - Next topic

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:
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]

Advertisement: