# Help with SSI for SMF

**URL:** <https://forum.phpvms.net/t/help-with-ssi-for-smf/3070>\
**Category:** General\
**Created:** [July 17, 2010, 2:58am UTC](https://forum.phpvms.net/t/help-with-ssi-for-smf/3070 "2010-07-17T02:58:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyalaska](https://forum.phpvms.net/user_avatar/forum.phpvms.net/flyalaska/32/14_2.png) [@flyalaska](https://forum.phpvms.net/u/flyalaska)\
**Post date:** [July 17, 2010, 2:58am UTC](https://forum.phpvms.net/t/help-with-ssi-for-smf/3070/1 "2010-07-17T02:58:03Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [July 17, 2010, 7:51am UTC](https://forum.phpvms.net/t/help-with-ssi-for-smf/3070/2 "2010-07-17T07:51:44Z")

</div>

I had that same problem while i was doing that.

Perpahs, i’ll do some seraching around and maybe see if i can get it.

---

<div class="post-metadata">

**Author:** ![Jeff](https://forum.phpvms.net/user_avatar/forum.phpvms.net/jeff/32/78_2.png) [@Jeff](https://forum.phpvms.net/u/Jeff)\
**Post date:** [July 17, 2010, 3:16pm UTC](https://forum.phpvms.net/t/help-with-ssi-for-smf/3070/3 "2010-07-17T15:16:34Z")

</div>

Lorenzo made me a code for that. It worked perfectly for SMF 1.1 but as soon as I updated to v 2.0 it just showed a blank space.

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [July 17, 2010, 5:02pm UTC](https://forum.phpvms.net/t/help-with-ssi-for-smf/3070/4 "2010-07-17T17:02:24Z")

</div>

> Lorenzo made me a code for that. It worked perfectly for SMF 1.1 but as soon as I updated to v 2.0 it just showed a blank space.

I need that for 1.1.

But i got the error…

```
Warning: Invalid argument supplied for foreach() in /home/flyiceni/public_html/lib/skins/ObsessBlue/frontpage_main.tpl on line 548

```

What is wrong?

---

<div class="post-metadata">

**Author:** ![Jeff](https://forum.phpvms.net/user_avatar/forum.phpvms.net/jeff/32/78_2.png) [@Jeff](https://forum.phpvms.net/u/Jeff)\
**Post date:** [July 17, 2010, 10:31pm UTC](https://forum.phpvms.net/t/help-with-ssi-for-smf/3070/5 "2010-07-17T22:31:36Z")

</div>

> I need that for 1.1.
> 
> But i got the error…
> 
> Warning: Invalid argument supplied for foreach() in /home/flyiceni/public\_html/lib/skins/ObsessBlue/frontpage\_main.tpl on line 548
> 
> What is wrong?

Kyle, you didn’t read the bottom post

---

<div class="post-metadata">

**Author:** ![Kyle](https://forum.phpvms.net/letter_avatar_proxy/v4/letter/k/848f3c/32.png) [@Kyle](https://forum.phpvms.net/u/Kyle)\
**Post date:** [July 17, 2010, 11:58pm UTC](https://forum.phpvms.net/t/help-with-ssi-for-smf/3070/6 "2010-07-17T23:58:59Z")

</div>

Still didn’t work.
