Want to add Forum/Recent topics

Hi guys i have installed simple machine forums on my virtual airline now i wanted to add recent posts on my main virtual airline page or left menu how i can do that?

smf is easy to intergrate, they built most everything in. goto http://www.vpia.org/virtualairblue/Forum/ssi_examples.php and it will show all the examples of what you can do. Remeber to be logged into your forum if you have it so non-members cant see anything, as ssi will not display anything in that situation.

sim pilot thanks you your reply i have checked out examples but cannot figured out how it will work on my main page if you can tell me it will be gr8 then for me here is my code

header.tpl file

Cut the code out if you want to paste code, please use pastebin

if you can tell me where i have to do changings to work this addon.

thanks

Also, if you do a search, there are examples of this

nabeel i didnt find any example in forum help plz?

http://docs.simplemachines.org/index.php?topic=400.0

nabeel i did what ever mentioned in EXAMPLES actually i am not understanding how to give flile path in php code i did what i understood have a look on the code maybe you will understand where i did mistake.

Snipped

irfan

Irfan,

Don’t paste code into posts. If you have to paste code, goto www.pastebin.com, and paste it there, and post the link here.

For the SSI, extract that file into a path, then include that file. So

include '/path/to/ssi/file';

Obviously, replace the path

now i have 80% success before it was not showing me any thing in My link but now in examples it was showing me my recent posts but it was not showing me in main page of my website dont know why

code:

<div class=“mc01t2”>

Recent posts

</div>

<div class=“mc01cc”>

<ul>

<?php ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = ‘echo’); ?>

</ul>

</div>

ANY BODY please help

Follow their examples, I’m not sure how anyone can really help. Their examples page just copy paste wht they put.

http://www.simplemachines.org/community/ssi_examples.php

<?php ssi_recentTopics(); ?>