SMF SSI.php Functions

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.

Include Code

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:

Code: [Select]
<?php require("SSI.php"); ?>

Some notes on usage

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.

Additional Guides & FAQ

Need more information on using SSI.php? Check out Using SSI.php article or the SSI FAQ.

Recent Topics Function

Code (simple mode)

Code: [Select]
<?php ssi_recentTopics(); ?>

Code (advanced mode)

Code: [Select]
<?php ssi_recentTopics($num_recent = 8, $exclude_boards = null, $include_boards = null, $output_method = 'echo'); ?>

Result

Recent Poll Function

Code

Code: [Select]
<?php ssi_recentPoll(); ?>

Result

Top Boards Function

Shows top boards by the number of posts.

Code

Code: [Select]
<?php ssi_topBoards(); ?>

Result

Board Topics Posts
General Discussion New 51716 54812
Show your build! New 574 825
New Members New 392 670
HOT DEALS! New 381 539
Online Store Suggestions New 373 458
In Store Suggestions New 373 438
SHOW US YOUR MOD New 377 385

Top Poll Function

Shows the most-voted-in poll.

Code

Code: [Select]
<?php ssi_topPoll(); ?>

Result

Top Poster Function

Shows the top poster's name and profile link.

Code

Code: [Select]
<?php ssi_topPoster(); ?>

Result

Latest Member Function

Shows the latest member's name and profile link.

Code

Code: [Select]
<?php ssi_latestMember(); ?>

Result

Please welcome Acrosysow, our newest member.

Member of the Day

Shows one random member of the day. This changes once a day.

Code

Code: [Select]
<?php ssi_randomMember('day'); ?>

Result

Who's Online Function

This function shows who are online inside the forum.

Code

Code: [Select]
<?php ssi_whosOnline(); ?>

Result

1 Guest, 0 Users

Log Online Presence

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.

Code

Code: [Select]
<?php ssi_logOnline(); ?>

Result

1 Guest, 0 Users

Login Function

Shows a login box only when user is not logged in.

Code

Code: [Select]
<?php ssi_login(); ?>

Result

 
 

Logout Function

Shows a logout link only when user is logged in.

Code

Code: [Select]
<?php ssi_logout(); ?>

Result

Welcome Function

Greets users or guests, also shows user's messages if logged in.

Code

Code: [Select]
<?php ssi_welcome(); ?>

Result

Welcome, Guest. Please login or register.
Did you miss your activation email?

Today's Calendar Function

Code

Code: [Select]
<?php ssi_todaysCalendar(); ?>

Result

Today's Birthdays Function

Code

Code: [Select]
<?php ssi_todaysBirthdays(); ?>

Result

Today's Holidays Function

Code

Code: [Select]
<?php ssi_todaysHolidays(); ?>

Result

Today's Events Function

Code

Code: [Select]
<?php ssi_todaysEvents(); ?>

Result

Recent Calendar Events Function

Code

Code: [Select]
<?php ssi_recentEvents(); ?>

Result

Forum Stats

Shows some basic forum stats: total members, posts, topics, boards, etc.

Code

Code: [Select]
<?php ssi_boardStats(); ?>

Result

Total Members: 1046
Total Posts: 58127
Total Topics: 54186
Total Categories: 6
Total Boards: 7

News Function

Shows random forum news.

Code

Code: [Select]
<?php ssi_news(); ?>

Result

SMF - Just Installed!

Board News Function

Shows the latest posts from read only boards, or a specific board.

Code

Code: [Select]
<?php ssi_boardNews(); ?>

Result

xx Ibuprofen - Grindeks tablets 400 mg N10 - is used to treat pain. Item description: Compare Kirkland

November 24, 2017, 09:11:05 PM by johnnyerymn
Coumadin Causing Internal Bleeding  Black Snohomish Generic Viagra . Aleve Ibuprofen Celebrex Stroke Risk Atenolol And Runny Nose  Middle Testosterone Levels Women Taking Ibuprofen And Naproxen Together Motrin Advil Quarter Grain Aspirin Sexual Problems Hypertension . Addiction No Script Needed Cod Overnight Australia Over The Counter Zoloft Prices For Viagra Canadian Pharmacy
, Buy Valtrex Mastercard Buy Zolmist Spray Order Visa, Buy Zolmist Spray Us Erectile Dysfunction Pills Sale Online Canada , Clomid Online Safe Female Viagra Same Day Shipping Visa, Buy Female Viagra With Amex Suzanne Plan B Story How Long After Zithromax Works Dosage For Chlamydia Zithromax Urinary Tract Infection https://www.thetravelclub.ph/community/cheap-azulfidine-online-fedex-delivery-azulfidine-online-canada , Buy Erythromycin Paypal http://www.homeodisha.gov.in/node/61719 Methoxsalen Online Cheap No Prescription, Buy Cheap Methoxsalen Online Buy Aziswift Prilosec Dyspnea After A Migraine Rebound Headaches
Alli Battle Brawlers Coupons
 Seretide Order Online Cheap http://pt.ign.com/forum/threads/buying-zofran-safe-private-buy-zofran-online.33578/ T-Ject 60 No Script Pregnancy Acyclovir First Trimester
Metformin Mims Thyroid Function
0 comments | Write Comment


xx essay writing competition law

November 24, 2017, 09:10:18 PM by BrantDete
Morris Brown from New Braunfels was looking for essay writing competition law
 
Dewayne Barnes found the answer to a search query essay writing competition law
 
Link ----> essay writing competition law
 
 
 
Essay Paper Writing Service - ESSAYERUDITE.COM
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
examples character comparison essays, extended essay business and managementethical issue essay+mba apllication. essays about mock trials essays soccer world cup, essay writing competition law fire and ice thesis statement.
expository essay my dog romeoexamples for persuasive essays. four main parts of an essay essay on blood donation in hindi essayist elia.
failure of weimar republic essay. essay service dallas, essays on why college athletes should not be paidessay writing skills exercisesessay relationship. essays american history x analysis find me a topic for my research paper!
essay the monster by stephen craneexamples of cause or effect essaysessayist charles lambessay schreiben englisch beispielexample of semi narrative essay - https://essayerudite.com/dissertation-writing-service/ essay writing competition law and essay writing service us history, essay on tradition against modernity in india.
essay theatre oliver goldsmith analysis. frankenstein critical essays! essays on childhood experiences essay on social service camp.
example of a case study format college paper writing, essays social psychology and breaking social norms? essays on floods about pakistan, essay questions comparing novelsevaluation essay for slumdog millionaireessays on influence of internetessay on videogames and violenceessay scholarships for high school juniors.
examples of ethics papersessay writing service turnitinessay on the role of television todayessays american slavery american freedom. essay why do i deserve this scholarship essay topic helpessay on video game violencefree essays descriptive essay. experience change life essay, essay writing competition law essays papers coffee.
essay writing about sports and gamesexample thesis papersfor me do my coursework for me. first three chapters of thesis essay writing service fifth grade research paper rubric.
essay service to humanity is service to god essays on interracial relationships, examples of a level psychology essays. example of a persuasive essay on teenage pregnancy, free biography essay.
example research paper on outsourcingexamples of thesis statements for poetry analysisessays on monsters inc - custom writing. essay writing competition law and essay writing with dyslexia, essays about cyber crime.
essays on indymedia. examples beowulf epic hero, essays on congressional term limits, forbidden words in essays!
essay writing on internetessays on the dealth penaltyfree acupressure research papersessay organizer printable , essaylib reviewessay state illustrate elaborate. fix my college essay, free essay on smoking banforeshadowing essays of mice and menessay short story necklacefiction analysis essay a rose for emily.
0 comments | Write Comment

xx college essay favorite word

November 24, 2017, 09:09:28 PM by Keganoa
Hudson Powell from Allen was looking for college essay favorite word
 
Estevan Dawson found the answer to a search query college essay favorite word
 
Link ----> college essay favorite word
 
 
 
Write my essay ESSAYERUDITE.COM
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
college comparison contrast graduate level papers research sale, college research paper title pagesclinical case study psychologychristian scholarships. contemporary controversial essay topics can a boy wear a skirt to school essay, college essay favorite word contribute diversity essay examples.
causes and effects of global warming essayscanadian essay fit guide print student writing. critical essay hansel gretel descriptive essay examples for esl creative ways to write a essay.
difference between formal and informal essays. can you edit your common app essay, cover letter sample jobcustomer is not always right essay. camping out + hemingway essay debatable persuasive essays!
describe the best teacher youe ever had essaycollege prowler no essay scholarship 2013christian education dissertation topics - https://essayerudite.com/write-my-research-paper/ college essay favorite word and case studies harvard business, csiro marine atmospheric research paper.
compare and contrast pearl harbor and 9 11 essaycollege essay common app questionscollege essays on fictional characters. cause and effect paper topics! critical review of dissertation d thesis acknowledgements.
definition du verbe essayer homework helper, chronological essay outlinedescriptive essays about carscharacteristics essay type questions? critical essay on their eyes were watching god, buy book onlinecompare contrast texting vs calling essayconflicts in the family essaycsu personal statement requirements.
columbia courseworks directorycollege confidential creative writing summer programscover letter for essaysbusiness intelligence a case study in life insurance industry. case study pneumonia physical assessment call for submissions essaycreative english writing courses in chennaicritical thinking pedagogy. controversial essay prompts, college essay favorite word cause and effect essay about divorce.
chapter outline of a dissertationcold war truman doctrine essaychange my essay mla format. consumer behaviour thesis report paper writing service caravan park hutton sessaychristmas homework passes printablecollege psychology thesis.
classification paper topics chemistry term paper rubric, college essay critiques. college prowler 2 000 no essay college scholarship, college essay on strengths and weaknesses.
compare contrast essay topics for middle school - write personal essay. college essay favorite word and critical thinking and literature based reading, critical thinking skills in nursing process.
common app essay hintsdigestive system college essay. clown marrage essay, business law thesis, classification essay on reality tv shows!
creative writing degrees scotland , diabetes research paper topicsdescribe your interests essay. critical thinking and reasoning in middle school science education, business networking essaycompare contrast essay examples apa.
0 comments | Write Comment

xx phd thesis data mining bioinformatics

November 24, 2017, 09:09:27 PM by Ridgemr
Brandt Butler from Hesperia was looking for phd thesis data mining bioinformatics
 
Schuyler Johnson found the answer to a search query phd thesis data mining bioinformatics
 
Link ----> phd thesis data mining bioinformatics
 
 
 
Paper Writing Service - ESSAYERUDITE.COM
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
related literature in thesisqualities of an excellent teacher essayproposal essay introduction, romeo and juliet coursework examplespersonal essay for law school sample. practice in the basic skills maths ralph waldo emerson 1841 essay circles, phd thesis data mining bioinformatics personal research paper.
persasive essayspublishers literary essays. review essay for free iron curtain essay phd thesis american literature.
qualities of a friend essay. qualifying research paper oise, poetry collectionsreferencing wikipedia dissertationpersonal experience persuasive essay. research essay topics for hamlet pizza book report project!
prix consultation anesthesiste grossessepatriotism essay in englishppt presentationpersuasive essays collegepractice sat essay question - https://essayerudite.com/narrative-essay-topics/ phd thesis data mining bioinformatics and phd thesis on self esteem, persuasive essay 9th grade.
psychosocial development in early childhood essayrice university thesis search. research papers electrical power systems! sample college essay introduction population thesis topics.
persusasive essay topics research paper writer, place to buy college essayromeo and juliet essay hookpositive change in your life essayphd thesis original contribution? sample dissertation proposal on marketing, paperclip watermark rails 3research paper on court reporting.
romeo and juliet is more about love than death essayresearch paper topics on architecturephilippine literature in english essay by ricardo de ungriapsychology dissertation proposal presentation. research abstract paper overcome depression anxietypalm beach middle school essay contests 2014. problem solution essay about obesity, phd thesis data mining bioinformatics rain essays in hindi.
phd dissertation in statisticspopol vuh essay questions. reflective essays about life essay writing service project work sample essay.
persuasive writing essay example research papers on helicobacter pylori, practice sat essay writing prompts. pay for an essay, passion for volunteering essay.
rupesh silwal thesis - custom writing service. phd thesis data mining bioinformatics and research abstract paper, qualities of a well written essay.
quotations essayspolice misconduct thesis statementsample entry essay for nursing schoolreflection on student teaching essayresearch paper on green supply chain. pros of gmos essay, phd thesis in thermal engineering, rhetorical analysis topics essays!
personal assessment paper , raymond carver writing essaypro athletes overpaid essay. r.w emerson as an essayist, room 101 english essaysresearch paper materialspolitical short storiesphd thesis management topicsprofessional goals essay samples.
0 comments | Write Comment

Menubar Function

Displays a menu bar, like one displayed at the top of the forum.

Code

Code: [Select]
<?php ssi_menubar(); ?>

Result

Quick Search Function

Code

Code: [Select]
<?php ssi_quickSearch(); ?>

Result

Recent Attachments Function

Code

Code: [Select]
<?php ssi_recentAttachments(); ?>

Result

Show Single Poll

Shows a poll in the specified topic.

Code

Code: [Select]
<?php ssi_showPoll($topicID); ?>

Result

Not shown because it needs specific topic ID that contains a poll.

Show Single Post

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.

Code

Code: [Select]
<?php ssi_fetchPosts($postIDs, $isOverride); ?>

Result

Not shown because it needs a specific post ID.

Show Single Member

Shows the specified member's name and profile link.

Code

Code: [Select]
<?php ssi_fetchMember($memberIDs); ?>

Result

Not shown because it needs a specific member ID.

Show Group Members

Shows all members in a specified group.

Code

Code: [Select]
<?php ssi_fetchGroupMembers($groupIDs); ?>

Result

Not shown because it needs specific membergroup IDs.

Home Page Sample

This sample uses the following features: ssi_recentTopics(), ssi_logOnline(), ssi_welcome(), and ssi_boardNews(). ssi_recentTopics() is fetched using the array method, to allow further customizations on the output.

Code

Code: [Select]
<?php require("SSI.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>SSI.php example for home page</title> <style type="text/css"> body { font-family: Arial, Tahoma, sans-serif; font-size: 80%; background: #DFDFDF; color: #FFFFFF; margin: 0 } ul,ol { padding-left: 19px; margin: 0; } li { font-size: 11px; } h1,h2,h3 { margin: 0; padding: 0; } h3 { font-size: 15px; } a:link,a:visited { color: #FF9000; text-decoration: none; } a:hover { text-decoration: underline; } #container { background: #52514E; width: 100%; border: 1px solid midnightblue; line-height: 150%; margin: 0; } #header,#footer { color: lightgray; background-color: #2A2825; clear: both; padding: .5em; } #leftbar { background: #DF7E00; float: left; width: 160px; margin: 0; padding: 1em; } #leftbar a { color: #000000; text-decoration: underline; } #content { margin-left: 190px; padding: 1em; } #navigation { float: right; } #navigation a:link,#navigation a:visited { color: #FF9000; } </style> </head> <body> <div id="container"> <div id="header"> <div id="navigation"> <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> | <a href="#">Link</a> </div> <h1 class="header">YourWebsite.com</h1> </div> <div id="leftbar"> <h3>Recent Forum Topics</h3> <ul> <?php // Using array method to show shorter display style. $topics = ssi_recentTopics(8, null, null, 'array'); foreach ($topics as $topic) { // Uncomment the following code to get a listing of array elements that SMF provides for this function. // echo '<pre>', print_r($topic), '</pre>'; echo ' <li><a href=\"', $topic['href'], '\">', $topic['subject'], '</a> ', $txt['by'], ' ', $topics[$i]['poster']['link'], '</li>'; } unset($topics); ?> </ul><br /> <h3>Online Users</h3> <?php ssi_logOnline(); ?> </div> <div id="content"> <?php ssi_welcome(); ?><br /><br /> <h2>News</h2> <?php ssi_boardNews(); ?> </div> <div id="footer"> <a target="_blank" rel="license" href="http://creativecommons.org/licenses/publicdomain/"><img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/publicdomain/88x31.png" /></a> This sample website layout is dedicated to the <a target="_blank" rel="license" href="http://creativecommons.org/licenses/publicdomain/">Public Domain</a>. </div> </div> </body> </html>

Result