SSI Help

Started by eddie_1973, July 16, 2010, 11:01:41 PM

Previous topic - Next topic

eddie_1973

I am using SMF 2.0 RC3. I am having problems displaying the recent topics. Here is what I have done.

Before the head I have

<?php require("./forums/SSI.php"); ?>

Where I want to display it I have

<!--#include virtual="./forums/SSI.php?ssi_function=recentTopics" -->

also tried
<?php ssi_recentTopics(); ?>
All attempts have an error.
Fatal error: Call to undefined function ssi_recenttopics() in /home/flyakaco/public_html/lib/skins/_SKIN/frontpage_main.tpl  on line 33

Any help would be appreciated!

JBlaze

Quote from: eddie_1973 on July 16, 2010, 11:01:41 PM
Fatal error: Call to undefined function ssi_recenttopics() in /home/flyakaco/public_html/lib/skins/_SKIN/frontpage_main.tpl  on line 33
There's your problem right there.

Functions are case-sensitive. Instead of ssi_recenttopics(); you need to use ssi_recentTopics();
Jason Clemons
Former Team Member 2009 - 2012

eddie_1973

I don't know why its printing with a lowercase "T"

I have it like this with the caps on the T

<!--#include virtual="./SSI.php?ssi_function=recentTopics" -->
<?php ssi_recentTopics(); flush(); ?>


Advertisement: