Current Version: 2.0
This file is used to demonstrate the capabilities of SSI.php using PHP include functions. The examples show the include tag, then the results of it.
To use SSI.php in your page add at the very top of your page before the <html> tag on line 1 of your php file:
<?php require(""); ?>
All the functions have an output method parameter. This can either be "echo" (the default) or "array"
If it is "echo", the function will act normally - otherwise, it will return an array containing information about the requested task. For example, it might return a list of topics for ssi_recentTopics.
This functionality can be used to allow you to present the information in any way you wish.
Need more information on using SSI.php? Check out Using SSI.php article or the SSI FAQ.
<?php ssi_recentTopics(); ?>
<?php ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo'); ?>
Shows top boards by the number of posts.
<?php ssi_topBoards(); ?>
Shows top topics by the number of replies or views.
<?php ssi_topTopicsViews(); ?>
<?php ssi_topTopicsReplies(); ?>
<?php ssi_topPoster(); ?>
Shows the latest member's name and profile link.
<?php ssi_latestMember(); ?>
Shows one random member of the day. This changes once a day.
<?php ssi_randomMember('day'); ?>
This function shows who are online inside the forum.
<?php ssi_whosOnline(); ?>
This function logs the SSI page's visitor, then shows the Who's Online list. In other words, this function shows who are online inside and outside the forum.
<?php ssi_logOnline(); ?>
Shows a login box only when user is not logged in.
<?php ssi_login(); ?>
Shows a logout link only when user is logged in.
<?php ssi_logout(); ?>
Greets users or guests, also shows user's messages if logged in.
<?php ssi_welcome(); ?>
<?php ssi_todaysCalendar(); ?>
<?php ssi_todaysBirthdays(); ?>
<?php ssi_todaysHolidays(); ?>
<?php ssi_todaysEvents(); ?>
Shows some basic forum stats: total members, posts, topics, boards, etc.
<?php ssi_boardStats(); ?>
Shows the latest posts from read only boards, or a specific board.
<?php ssi_boardNews(); ?>
Shows a poll in the specified topic.
<?php ssi_showPoll($topicID); ?>
Fetches a post with a particular IDs. By default will only show if you have permission to the see the board in question. This can be overriden by passing the 2nd parameter as true.
<?php ssi_fetchPosts($postIDs, $isOverride); ?>
Shows the specified member's name and profile link.
<?php ssi_fetchMember($memberIDs); ?>
Shows all members in a specified group.
<?php ssi_fetchGroupMembers($groupIDs); ?>