News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

I want to create a Tiny Portal esque home page; ussing SSI....

Started by <?netwire>, July 22, 2008, 12:47:03 PM

Previous topic - Next topic

<?netwire>

I have upgraded to 2.0 beta 3 and would like to create a home page that looks similar to Tiny Portal. I would like to use SSI to display certain post on this page. I would like for this page to display the theme a user has selected, just like the main page of my forum but instead of actually loading the forum on this page it would load whatever content I select via SSI. Could anyone point me in the right direction as to what files I need to change in order to make this happen?

BTW, I am using the following code:

<?php

$ssi_gzip 
true;

$ssi_ban true

$ssi_theme 1

ob_start(); 

require(
'/home/mijin/public_html/astralsociety/SSI.php'); //put the correct path here

global $context;

$context['page_title'] = "$mbname - Astral Society Portal"//needs to go above template_main_above(); to display Page Title



template_main_above();


template_main_below();



?>


And, I'm getting this error: "Fatal error: Call to undefined function template_main_above() in /home/mijin/public_html/astralsociety/index2.php on line 19"

c5Quad

I'm no expert but if you look in index.template.php for the theme you are using the calls to the templates have changed for 2.0.  They are now:

template_html_above();
template_body_above();
template_body_below();
template_html_below();


<?netwire>

Thanks; that worked like a champ. Now I just need to get it pleasing to the eye.

Advertisement: