SMF SSI.php Functions

Current Version: 2.0 RC1

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. Examples are separated by horizontal rules.


To use SSI.php in your page add at the very top of your page before the <html> tag on line 1:
<?php require("SSI.php"); ?>


Recent Topics Function: <?php ssi_recentTopics(); ?>

[Español (Spanish)] Ayuda con algunos mods by 130860 Today at 12:29:03 PM
[İpuçları ve Hileler] Düzenli İstatistikler Top 10 ve Son Konular Top 10 by grafitus... Today at 12:28:40 PM
[Chit Chat] What does your desktop look like? by Akyhne Today at 12:28:08 PM
[Modifikasyonlar] Konu Aç butonunu nasıl değiştirebilirim ? by Mid Today at 12:26:07 PM
[Español (Spanish)] Problemas con sitemap by 130860 Today at 12:25:16 PM
[Français (French)] Réponse rapide by GravuTrad Today at 12:24:50 PM
[Install and Upgrade Help] Error telling me to upgrade database by purpleathame Today at 12:24:10 PM
[Français (French)] Language Drop Down by GravuTrad Today at 12:24:02 PM

Recent Posts Function: <?php ssi_recentPosts(); ?>

[Español (Spanish)] Re: Ayuda con algunos mods by 130860 Today at 12:29:03 PM
[İpuçları ve Hileler] Re: Düzenli İstatistikler Top 10 ve Son Konular Top 10 by grafitus... Today at 12:28:40 PM
[Chit Chat] Re: What does your desktop look like? by Akyhne Today at 12:28:08 PM
[Español (Spanish)] Re: Ayuda con algunos mods by puchitus Today at 12:26:20 PM
[Modifikasyonlar] Re: Konu Aç butonunu nasıl değiştirebilirim ? by Mid Today at 12:26:07 PM
[Español (Spanish)] Re: Problemas con sitemap by 130860 Today at 12:25:16 PM
[Français (French)] Re: Réponse rapide by GravuTrad Today at 12:24:50 PM
[Install and Upgrade Help] Re: Error telling me to upgrade database by purpleathame Today at 12:24:10 PM

Recent Poll Function: <?php ssi_recentPoll(); ?>


Top Boards Function: <?php ssi_topBoards(); ?>

Board Topics Posts
SMF 1.x Support New 71,063 434,103
SMF Online Manual 0 240,273
Modifications and Packages New 1,595 173,347
Türkçe Bölümü (Turkish) New 23,530 161,435
Español (Spanish) New 17,530 101,099
SMF Coding Discussion New 15,587 96,068
Chit Chat New 5,479 77,701
Install and Upgrade Help New 11,941 75,582
Graphics and Templates New 10,162 63,536
SMF 2.x Support New 9,307 60,796

Top Topics by View Function: <?php ssi_topTopicsViews(); ?>

Views Replies
nneonneo's Shoutbox 1,181,786 5,857
SMF Arcade 784,372 4,295
Pretty URLs 1.0RC 694,833 4,903
Ad Management mod 2.6.3.1 Released SMF RC2 Support! 645,367 4,933
Aeva Media 1.0 (Feb 6, 2010) (Gallery & auto-embedder for YouTube etc.) 590,526 1,379
Custom Profile Field Mod 509,871 2,863
SMF Media Gallery (SMG) - 2.0.5 is out! (December 2) 500,055 5,473
SMFShop- Version 3.1.5 Now SMF 2.0 RC2 Support! 460,639 2,202
Integrated Chat Mod 437,794 1,866
AjaxChat Integration (latest version 3.2.1) 425,429 5,088

Top Topics by Replies Function: <?php ssi_topTopicsReplies(); ?>

Views Replies
nneonneo's Shoutbox 1,181,786 5,857
SMF Media Gallery (SMG) - 2.0.5 is out! (December 2) 500,055 5,473
AjaxChat Integration (latest version 3.2.1) 425,429 5,088
Aeva 6.9.99 and earlier (old) 17,243 5,030
Ad Management mod 2.6.3.1 Released SMF RC2 Support! 645,367 4,933
Pretty URLs 1.0RC 694,833 4,903
SMF Arcade 784,372 4,295
SimplePortal - 2.3.1 Released! 378,140 3,017
Custom Profile Field Mod 509,871 2,863
SMF Gallery 2.0.12 (Jan 22) Released Now with SMF 2.0 RC2 Support! 398,393 2,501

Top Poll Function: <?php ssi_topPoll(); ?>


Top Poster Function: <?php ssi_topPoster(); ?>

[Unknown]

Topic's Poll Function: <?php ssi_showPoll($topic); ?>


Latest Member Function: <?php ssi_latestMember(); ?>

Please welcome purpleathame, our newest member.

Member of the Day: <?php ssi_randomMember('day'); ?>

wilcon


Board Stats: <?php ssi_boardStats(); ?>

Total Members: 211,363
Total Posts: 2,350,771
Total Topics: 300,227
Total Categories: 14
Total Boards: 179

Who's Online Function: <?php ssi_whosOnline(); ?>

1,188 Guests, 145 Users (10 Hidden)
Am', alfzer0, hhy89, mmunro, hygron, jeroenenagnes, Pinball Nation, rajt, live627, omafia, eg208, Captain Uhman, puchitus, riderracer, grafitus..., CeeMoo, Linda.V, YogiBear, MultiformeIngegno, Lewis Padgett, HOLG, Paul_Pauline, view, Brack1, Lord High Warlock, SN, Ensiferous, 57grad, Roman, feydr, Akyhne, chanman, Tapsa2, Albert de Lotus, giveaway365.com, Dismal Shadow, fiver, vbgamer45, Bob Mueller, Avicennasis, watchhorse, Runevald, Dzonny, Mid, anorth_uk, Morp, xnathansxdadx, taavi71, Bulqr4eto, GravuTrad, shumilica, curlin, Garou, Nas, purpleathame, grisha, Antes, mariusfv, painterforum20, onurkarali, CarpeDiem, Filipina, geert, Tamsin, D..., snoopy_virtual, Bigguy, Logicbloke, José Ángel Galiano, busterone, madfitz, zero_te_educa, perfects, {••тєηηιѕєя••}, (F.L.A.M.E.R), josan, truhe, Inflikted, neverhurry, tumbleweed, SONSiVRi, lakestclair, Kindred, DivaksH, Orstio, echobeam, Nerd3D, sherwinaval, kinyur, dixonclk, Andre_, victorsr, Nao, Do², AlphaHot1, Lucer, eng_HK, Horthon Gorthy, M*I*B, cy83r54rk, rudeboy1991, kevinem, aishaweb, DVDRiper, Bloc, redwrangler, LOVELORD, justntym, Magic-Onno, Exochat, killer5570, VT, tjn3kds, Chemistry[™], two72, quantumeventgames, rwoonacott, ProtomanP1, Achilles., illori, Gendji, Tomkinss, BlueDevil, Kcmartz, woodruff, B, Bugo, ZonaHacking, ivana2901, Harry33, distante, SlammedDime, ggs234, Acer1, Reiuji

Log Online Presence + Who's Online Function: <?php ssi_logOnline(); ?>

1,188 Guests, 145 Users (10 Hidden)
Am', alfzer0, hhy89, mmunro, hygron, jeroenenagnes, Pinball Nation, rajt, live627, omafia, eg208, Captain Uhman, puchitus, riderracer, grafitus..., CeeMoo, Linda.V, YogiBear, MultiformeIngegno, Lewis Padgett, HOLG, Paul_Pauline, view, Brack1, Lord High Warlock, SN, Ensiferous, 57grad, Roman, feydr, Akyhne, chanman, Tapsa2, Albert de Lotus, giveaway365.com, Dismal Shadow, fiver, vbgamer45, Bob Mueller, Avicennasis, watchhorse, Runevald, Dzonny, Mid, anorth_uk, Morp, xnathansxdadx, taavi71, Bulqr4eto, GravuTrad, shumilica, curlin, Garou, Nas, purpleathame, grisha, Antes, mariusfv, painterforum20, onurkarali, CarpeDiem, Filipina, geert, Tamsin, D..., snoopy_virtual, Bigguy, Logicbloke, José Ángel Galiano, busterone, madfitz, zero_te_educa, perfects, {••тєηηιѕєя••}, (F.L.A.M.E.R), josan, truhe, Inflikted, neverhurry, tumbleweed, SONSiVRi, lakestclair, Kindred, DivaksH, Orstio, echobeam, Nerd3D, sherwinaval, kinyur, dixonclk, Andre_, victorsr, Nao, Do², AlphaHot1, Lucer, eng_HK, Horthon Gorthy, M*I*B, cy83r54rk, rudeboy1991, kevinem, aishaweb, DVDRiper, Bloc, redwrangler, LOVELORD, justntym, Magic-Onno, Exochat, killer5570, VT, tjn3kds, Chemistry[™], two72, quantumeventgames, rwoonacott, ProtomanP1, Achilles., illori, Gendji, Tomkinss, BlueDevil, Kcmartz, woodruff, B, Bugo, ZonaHacking, ivana2901, Harry33, distante, SlammedDime, ggs234, Acer1, Reiuji

Welcome Function: <?php ssi_welcome(); ?>

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

News Function: <?php ssi_news(); ?>

SMF 2.0 RC2 public has been released! Find out more!

Board News Function: <?php ssi_boardNews(); ?>

xx Recent Travails of SMF Team and Friends
January 28, 2010, 01:46:02 PM by Kindred
We are pleased to announce that negotiations have opened in an attempt to reach a mutually satisfactory solution to the recent disputes between the current SMF team management and the SMF Friends group.

The discussion will be chaired by Kindred (Operations Manager for the SMF team).
He was selected because he is recognized as fair and objective by both parties to the negotiations.

The negotiators for the SMF team are:

Compuart (Lead Developer)

SleePy (Site Manager)

The negotiators for the SMF Friends are:

Douglas

Eren Yasarkurt


Please note that while we are cautiously optimistic that such a solution is possible it will not happen overnight. Regular updates will be made public as discussions proceed, but we do ask that the negotiators are left to do their jobs without undue public pressure.

All of them also have other things to take care of in their work lives and private lives so a reasonable amount of time must be allowed for them to do this job as well.

Thank you in advance for your understanding.
382 comments

xx Simple Machines Restructuring
January 19, 2010, 01:12:18 PM by CoreISP
Dear Community Members,

Over the last few years, Simple Machines has grown significantly, and with growth come new challenges to overcome.  Our commitment and dedication to ensuring a professional, high quality, and stable release requires us to occasionally take a step back and look at what is and is not working.  In order to address those challenges and improve our workflow, we are restructuring our team to better prepare for our future endeavors and place people within the organization where they are best suited to achieve our goals.

We aim to make this transition as efficient as possible to the general public; however as with any reorganization, we expect a few speed bumps along the way and we ask for your patience and understanding.  This move will allow us to improve our development process and get back on track for releasing the Gold Release of SMF 2.0 as soon as possible, as well as allow our core developers to concentrate on the future of Simple Machines and producing quality products beyond a bulletin board system.

2010 is going to be a great year for Simple Machines, SMF and this community. Already with some changes in place, we have many exciting announcements to be made, and a lot of impressive work to show. We have positioned ourselves to ensure the continuation of the Simple Machines project against personal advancement and individual gain, ensuring we are protecting the very foundation of what we are, a team driven project.



We know some of you may have some questions, so below is a quick Q&A.

Question: Will SMF go paid, or is it in the works?
Answer: No, SMF will ALWAYS be FREE.

Question: Why are Simple Machines not embracing the free software movement, with licenses and an open structure?
Answer: We are always looking to improve our operation. Part of the recent proceedings have been to put the appropriate people in place to properly research and evaluate moves to less restrictive licensing, and more open structuring. We hope to post our findings and evaluate later on.


Thank you,
The Simple Machines Team
167 comments

xx Server Maintenance 12/31/09
December 30, 2009, 09:39:39 PM by dschwab9
Just wanted to give everyone a heads up that I will
be at the datacenter tomorrow, 12/31/09 around 2PM EST to do a little server maintenance. The site will probably be down for 45 minutes or so.
20 comments

clip SMF 1.1.11 released
December 01, 2009, 05:59:19 PM by SleePy
Simple Machines announces the release of SMF 1.1.11, addressing multiple vulnerabilities found in SMF 1.1.10. Also for those still using the SMF 1.0.x branch, an upgrade to 1.0.19 was released. We strongly recommend that all users upgrade as soon as possible.

Upgrade automatically by visiting your administration center, where a notice will be displayed prompting you to upgrade. Click the link, confirm the changes and your forum will be up to date again. Additionally, you can upgrade using the package manager by downloading the attached patch, uploading it to the package manager, and applying it as prompted. For help with this refer to the Package Manager section of the Online Manual.

If you cannot upgrade using the package manager, please follow the instructions posted in the Online Manual about installing and upgrading. If you experience a session verification error when inputting FTP details for updating process, please see this topic.

It may be necessary to apply the upgrade manually if mod conflicts mean that you cannot install the patch through the package manager. Instructions for doing this can be found on manual upgrades page for SMF 1.1.11 and 1.0.19.

Finally - please do not use this topic for any support requests. You will get a much more prompt response by visiting the relevant support board!

Regards,
Simple Machines
188 comments

xx SMF 2.0 Release Candidate 2 Public is out!
November 08, 2009, 07:10:03 PM by Aäron
Simple Machines is proud to announce the release of SMF 2.0 RC2 Public. This is the long awaited second Release Candidate for 2.0 and is one of the last steps towards 2.0 going gold. Literally hundreds of bugs that were reported after the release of RC1 have been fixed and improvements have been made to security, stability, and performance. We recommend that all users of earlier development versions upgrade as soon as possible.

As promised, 2.0 RC2 boasts our new Curve theme, which has been made the new default theme. The previous default theme has been renamed Core. Please note that the Classic and Babylon themes have been removed from the package and are now only available on the theme site.

Major changes since the last public release:
Those interested in the detailed changelog may like to download it on our download page.

Finally - please do not use this topic for any support requests. You will get a much more prompt response by visiting the relevant support board!

Regards,

Simple Machines

328 comments

Menubar Function: <?php ssi_menubar(); ?>


Quick Search Function: <?php ssi_quickSearch(); ?>


Login Function: <?php ssi_login(); ?>

 
 

Log Out Function: <?php ssi_logout(); ?>


Today's Birthdays Function: <?php ssi_todaysBirthdays(); ?>

madpole (30), Pumpkined (22), miguel (39), pdip (48), ruffus (26), fararg (39), NiCr0 (25), Nomina (34), Pierre29200 (55), borbosha (25), streekhosting (44), duzins (35), confused.com (29), Modboy (31), aeropause (35), Ellipsis (16), jraabe (67), purper (42), joshuam08 (14), Amendoim (18), MaddiN (32), Xylometer (29), Bembe (50), WayneRichmond (59), COOLover (25), misscalais (37), Captain Sparky (46), MedRescue (28), CrazyCreator (39), argenli (27), Sirjump (39), sims2ustasi (15), e7andy (33), nsrvphocas_nl (23), wichaith (28), woodybear, Niggaz (28), NumNum (44), holyone (28), iiSimplyDo (16), SparkieGeek (29), richardhall (29), Dawgy (20), Jayden (23), Jazhawk (42), sengsara (37), Shedman (30), ElvenJedi (22), bigredpaul (44), jlgreer1 (59), CuTe_MaN (25), mladen (21), ZeHoS (28), MarkDalzell, eat_me (25), Simon Halliday (48), Mish (29), piki dotcom (29), f9cator (36), LiamS94 (16), 2more (24), Ivories (16), Lacrymosa (21), taogem (53), evetsmd (66), renandchi2 (16), Jason212 (39), GGPassion (38), snork13 (37), tannnk (31), dennis.ayala (39), astralan (57), DeadNote.net (20), C4 FORUMS 4 ALL (44), shakasan (30), miregrobar (26), fireandsalt (36), Kalandor (29), UKAF (38), UXOVS (40), Russell Howard (37), finnya (30), Wolfenrook (35), Skunkie (27), NickInTheNorth (48), DRuMLiNe (26), FROZEN VIRUS® (25), robotman321 (21), ScousePete, monkeyangst (36), nebi (20), The Crusader (30), kikeuntercio (28), eLeS (31), Remmie (20), Ch4ng3r (20), Tyrsson™ (35), Faded Glory (56), Shay (23), NukeWorker.com (39), Venom (33), m33pstah (34), MrTorrance (33), Henry_n (22), Punisher01 (23), Tanshaydar (21), elwizard (36), West Side (17), zeroark (21), thor69ar (30), BlindProphet (21), henri.bourme (21), ZorkFox (34), white scorpion (31), kimeramakers (18), djinnmaster (51), MikeLight (19), Spartan117 (28), my S-M-F mods (31), genius31 (27)

Today's Holidays Function: <?php ssi_todaysHolidays(); ?>

Valentine's Day

Today's Events Function: <?php ssi_todaysEvents(); ?>


Today's Calendar Function: <?php ssi_todaysCalendar(); ?>

Valentine's Day
Upcoming Birthdays: madpole (30), Pumpkined (22), miguel (39), pdip (48), ruffus (26), fararg (39), NiCr0 (25), Nomina (34), Pierre29200 (55), borbosha (25), streekhosting (44), duzins (35), confused.com (29), Modboy (31), aeropause (35), Ellipsis (16), jraabe (67), purper (42), joshuam08 (14), Amendoim (18), MaddiN (32), Xylometer (29), Bembe (50), WayneRichmond (59), COOLover (25), misscalais (37), Captain Sparky (46), MedRescue (28), CrazyCreator (39), argenli (27), Sirjump (39), sims2ustasi (15), e7andy (33), nsrvphocas_nl (23), wichaith (28), woodybear, Niggaz (28), NumNum (44), holyone (28), iiSimplyDo (16), SparkieGeek (29), richardhall (29), Dawgy (20), Jayden (23), Jazhawk (42), sengsara (37), Shedman (30), ElvenJedi (22), bigredpaul (44), jlgreer1 (59), CuTe_MaN (25), mladen (21), ZeHoS (28), MarkDalzell, eat_me (25), Simon Halliday (48), Mish (29), piki dotcom (29), f9cator (36), LiamS94 (16), 2more (24), Ivories (16), Lacrymosa (21), taogem (53), evetsmd (66), renandchi2 (16), Jason212 (39), GGPassion (38), snork13 (37), tannnk (31), dennis.ayala (39), astralan (57), DeadNote.net (20), C4 FORUMS 4 ALL (44), shakasan (30), miregrobar (26), fireandsalt (36), Kalandor (29), UKAF (38), UXOVS (40), Russell Howard (37), finnya (30), Wolfenrook (35), Skunkie (27), NickInTheNorth (48), DRuMLiNe (26), FROZEN VIRUS® (25), robotman321 (21), ScousePete, monkeyangst (36), nebi (20), The Crusader (30), kikeuntercio (28), eLeS (31), Remmie (20), Ch4ng3r (20), Tyrsson™ (35), Faded Glory (56), Shay (23), NukeWorker.com (39), Venom (33), m33pstah (34), MrTorrance (33), Henry_n (22), Punisher01 (23), Tanshaydar (21), elwizard (36), West Side (17), zeroark (21), thor69ar (30), BlindProphet (21), henri.bourme (21), ZorkFox (34), white scorpion (31), kimeramakers (18), djinnmaster (51), MikeLight (19), Spartan117 (28), my S-M-F mods (31), genius31 (27)

Recent Calendar Events Function: <?php ssi_recentEvents(); ?>


Recent Attachments Function <?php ssi_recentAttachments(); ?>

File Posted by Downloads Filesize
LMfinally2.JPG Amacythe 129 55.22kB
CurrentBalanceSheet.pdf Amacythe 115 6.92kB
smf_patch_1.0.19_1.1.11.zip SleePy 5463 11.56kB
smf_patch_1.0.18_1.1.10-2.0-RC1.2.zip Compuart 5564 10.13kB
modified_2-0-RC1-1_2-0-RC1-2.zip Compuart 4735 64.38kB
modified_1-1-9_1-1-10.zip Compuart 7185 118.36kB
modified_1-0-17_1-0-18.zip Compuart 3452 44.16kB
Feiertage_2.0b3.1p.zip noex 519 3.5kB
feiertage_smf2.0b3.txt noex 400 44.01kB
feiertag.sql.txt MrPM 488 26.22kB

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.


This page took 0.5163 seconds to load.
*ssi_examples.php last modified on 09/28/08