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(); ?>

[SMF 1.x Support] Move problem by [n3rve] Today at 05:31:31 PM
[SMF Coding Discussion] Automatically Code a Link by Rohan_ Today at 05:31:21 PM
[Ελληνικά (Greek)] Πρόβλημα με δημιουργία backup της Sql βάσης μέσω SMF 2.0 Rc2 by leonpadi Today at 05:31:07 PM
[SMF Coding Discussion] [WIP] SMF Intergrated Wiki Mod .. by Colonel Sorck Today at 05:30:15 PM
[SMF 2.x Support] Language Dropdown? by 1ondon Today at 05:30:02 PM
[Feature Requests] Limit smileys per post & limit bbc code per board by Stüldt Håjt Today at 05:29:59 PM
[Install and Upgrade Help] Help please by AnG3L Today at 05:28:30 PM
[SMF 1.x Support] Possible Hack...how can Guest Post? by lextalionis Today at 05:25:56 PM

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

[SMF 1.x Support] Re: Move problem by [n3rve] Today at 05:31:31 PM
[SMF Coding Discussion] Re: Automatically Code a Link by Rohan_ Today at 05:31:21 PM
[Ελληνικά (Greek)] Πρόβλημα με δημιουργία backup της Sql βάσης μέσω SMF 2.0 Rc2 by leonpadi Today at 05:31:07 PM
[SMF Coding Discussion] Re: [WIP] SMF Intergrated Wiki Mod .. by Colonel Sorck Today at 05:30:15 PM
[SMF 2.x Support] Language Dropdown? by 1ondon Today at 05:30:02 PM
[Feature Requests] Re: Limit smileys per post & limit bbc code per board by Stüldt Håjt Today at 05:29:59 PM
[Install and Upgrade Help] Re: Help please by AnG3L Today at 05:28:30 PM
[SMF 1.x Support] Re: Move problem by hariS. Today at 05:26:52 PM

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


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

Board Topics Posts
SMF 1.x Support New 68,737 418,113
SMF Online Manual 0 170,734
Modifications and Packages New 1,516 165,197
Türkçe Bölümü (Turkish) New 23,063 158,891
Español (Spanish) New 16,127 92,989
SMF Coding Discussion New 14,957 90,223
Chit Chat New 5,211 73,327
Install and Upgrade Help New 11,473 72,024
Graphics and Templates New 9,752 60,754
Modifikasyonlar New 5,149 49,505

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

Views Replies
nneonneo's Shoutbox 1,056,188 5,715
SMF Arcade 728,210 4,145
Pretty URLs 1.0RC 599,737 4,583
Ad Management mod 573,363 4,441
Aeva 7.0.705 with HD YouTube (Auto-Embed Video & Audio) 522,018 454
Custom Profile Field Mod 464,267 2,800
SMFShop- Version 3.1.4 Now SMF 2.0 RC2 Support! 423,890 2,019
Integrated Chat Mod 413,546 1,862
SMF Media Gallery (SMG) - 2.0.3 is out! (November 14) 408,316 5,123
Themes (Skins) 405,196 115

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

Views Replies
nneonneo's Shoutbox 1,056,188 5,715
SMF Media Gallery (SMG) - 2.0.3 is out! (November 14) 408,316 5,123
Aeva 6.9.99 and earlier (old) 12,190 5,030
AjaxChat Integration (latest version 3.2.1) 332,639 4,610
Pretty URLs 1.0RC 599,737 4,583
Ad Management mod 573,363 4,441
SMF Arcade 728,210 4,145
SimplePortal - 2.3.1 Released! 328,581 2,881
Custom Profile Field Mod 464,267 2,800
SMF Gallery 2.0.9 Released Now with SMF 2.0 RC2 Support! 357,700 2,446

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 yucesoy24, our newest member.

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

Raicuparta


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

Total Members: 202,792
Total Posts: 2,228,169
Total Topics: 286,613
Total Categories: 13
Total Boards: 173

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

973 Guests, 160 Users (11 Hidden)
sangwe11, robinrobin, Powerbob, Norv, JUANI, [n3rve], akai1412, emrex2, Rohan_, Bloc, NoExit, DeLiGeNnC, leonpadi, Tristan Perry, MFox08, bolubeyi61, Juan Carlos, Colonel Sorck, Destral, moparisthebest, Gazmanafc, 1ondon, RadicH, pompeybrum, Elsje20, sombra, Thantos, amartin, Antechinus, Gökhan | Brestgerfich, hadesflames, BlackBlex, Nas, AnG3L, hariS., Hondenfora, david090366, Tiribulus, alan081954, kullanici62, Arveles, Jerry, aspire5630, stikkki, SONSiVRi, Welb, Andrés zc, lextalionis, Calumks, victor60, ardd, Gibbo99, lfma, NukeGaming, Utech22, el bar ®, lucas-ruroken, Darkness_, Niko, Tridrac, yucesoy24, Gear-Monkey, Caelum, mpglivecarlo, SuSKuN_23, The Burglar!, Kcmartz, nnolund, Minare, digit, B, Sabre™, wladymeer, okayok, Walnut, Aäron, NCSurfer, maximus23, TioLoco, Mdog, menderesliyiz, FragaCampos, tumbleweed, Spoogs, basesoft, SingingCrane, Jed C, arzum, timned88, DarkCo0oL, julia_yl, pєКєя `|®|, Guesty, SlammedDime, kevinhannan, sempoo, Hackun, arisch, ebender33, vch88, vbgamer45, smitch6, Axodious, Wkr, Trekkie101, baduong, Eclipse16V, nulilly, casulop, Pinball Nation, aS! MeLeq, poluxgreece, Tenma, Krip, Sarke, pheadrus, dschwab9, Bigguy, dj ju@n, tripl3r, nwobhm, Aliencowfarm, Yigal, Atoa, Antes, Pentaxian, charlottezweb, sumolari, spica, Usu, replaaa, Wankel, jindroush, king kratos, DMR20, int2str, manfred, winrules, Zerobala, SCOOTERMAN, pSeudo, Astral2000, alexandreperei, sremick, tonnybarros, atokar, Norbert, Sverre, Letha

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

974 Guests, 160 Users (11 Hidden)
sangwe11, robinrobin, Powerbob, Norv, JUANI, [n3rve], akai1412, emrex2, Rohan_, Bloc, NoExit, DeLiGeNnC, leonpadi, Tristan Perry, MFox08, bolubeyi61, Juan Carlos, Colonel Sorck, Destral, moparisthebest, Gazmanafc, 1ondon, RadicH, pompeybrum, Elsje20, sombra, Thantos, amartin, Antechinus, Gökhan | Brestgerfich, hadesflames, BlackBlex, Nas, AnG3L, hariS., Hondenfora, david090366, Tiribulus, alan081954, kullanici62, Arveles, Jerry, aspire5630, stikkki, SONSiVRi, Welb, Andrés zc, lextalionis, Calumks, victor60, ardd, Gibbo99, lfma, NukeGaming, Utech22, el bar ®, lucas-ruroken, Darkness_, Niko, Tridrac, yucesoy24, Gear-Monkey, Caelum, mpglivecarlo, SuSKuN_23, The Burglar!, Kcmartz, nnolund, Minare, digit, B, Sabre™, wladymeer, okayok, Walnut, Aäron, NCSurfer, maximus23, TioLoco, Mdog, menderesliyiz, FragaCampos, tumbleweed, Spoogs, basesoft, SingingCrane, Jed C, arzum, timned88, DarkCo0oL, julia_yl, pєКєя `|®|, Guesty, SlammedDime, kevinhannan, sempoo, Hackun, arisch, ebender33, vch88, vbgamer45, smitch6, Axodious, Wkr, Trekkie101, baduong, Eclipse16V, nulilly, casulop, Pinball Nation, aS! MeLeq, poluxgreece, Tenma, Krip, Sarke, pheadrus, dschwab9, Bigguy, dj ju@n, tripl3r, nwobhm, Aliencowfarm, Yigal, Atoa, Antes, Pentaxian, charlottezweb, sumolari, spica, Usu, replaaa, Wankel, jindroush, king kratos, DMR20, int2str, manfred, winrules, Zerobala, SCOOTERMAN, pSeudo, Astral2000, alexandreperei, sremick, tonnybarros, atokar, Norbert, Sverre, Letha

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

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

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

We are looking for people to help us with documentation! See this post for information on how you can help

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

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

307 comments | Write Comment

xx Smiley Contest: THE WINNERS!!
November 02, 2009, 05:55:27 AM by Runic
Two months ago we launched a competition to look for more smiley sets. We received many applications. However many used copyrighted images, which we cannot permit. After much work we shortlisted four sets from all the submissions that met the guidelines.
An SMF team and charter vote has finally given us a winner. Before we announce the winner, we wish to thank Spektral, SoLoGHoST and islam2hamy for making it through to the final.  Your smileys are now on the long awaited "Smiley of the moment" feature in the admin panel. We would love to see more smileys in future from all of you!
However there must be only one winner.  After counting the scores we are happy to announce that first prize goes to:
 
SoLoGhOsT with his Solosmileys Non Animated
 
The Winning Entry
98 comments | Write Comment

xx SMF 2.0 Release Candidate 2 is out for Charter Members!
October 03, 2009, 05:39:28 PM by Aäron
Simple Machines is proud to announce the immediate release of SMF 2.0 RC2 to Charter Members. 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.

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 Classic and Babylon themes have been removed from the package and are now only available by the theme site.

Major changes since the last release:

Simple Machines would like to thank its Charter Members for their continued support for SMF.

Regards,

Simple Machines
430 comments

xx Simple Machines Smiley Contest
August 13, 2009, 06:06:16 PM by Fustrate
Simple Machines would like to announce the opening of our first Smiley Contest, to give our community members the challenge to create some new and exciting smileys.

We are looking to introduce a new smiley set into SMF 2.0, and we have a few concepts that our team members have developed, but we want to see what our community can contribute. We also want to increase the number of smileys available on our modifications site, and start using the "Smileys of the moment" feature in every SMF install. Your work could be broadcast round the SMF ecosystem!

To enter just submit a smiley set to the modifications site and include somewhere in the description "for the Smiley Contest". Alternatively, email them to smile@simplemachines.org in a zipped file. The competition will run for one month, at the end of which voting will be presented to the SMF Team, the Charter Members and the Beta Testers.

Prizes:
First prize will win a Simple Machines Charter Membership. (Worth $50!)
Runners up (and first place) will have their entries broadcast to every SMF forum with our "Smileys of the Moment" feature.


Smileys Required
angel angry cheesy cool cry embarrassed
grin huh kiss lipsrsealed rolleyes sad
shocked smiley tongue undecided wink blank

Not Required, But Preferred
afro police azn laugh evil

Terms and Conditions:

Good Luck!

Feel free to post any questions, any examples or work in progress art. Multiple entries are allowed.
147 comments

clip SMF 1.1.10 and 2.0 RC1.2 released
July 14, 2009, 07:05:19 PM by Compuart
Simple Machines announces the release of SMF 1.1.10 and 2.0 RC1.2, addressing a few vulnerabilities found in SMF 1.1.9 and 2.0 RC1-1. Also for those still using the SMF 1.0.x branch, an upgrade to 1.0.18 was released. We strongly recommend that all users upgrade as soon as possible.

Please note that SMF 2.0 RC1.2 is not the second release candidate for SMF 2.0, but merely a security-updated version of the first release candidate. RC2 is not quite ready yet, and the new Curve theme is still scheduled for SMF 2.0 RC2, as announced earlier. For more information read the latest developers blog entry about progress towards RC2's release.

Users running 2.0 RC1 will need to upgrade to 2.0 RC1-1 BEFORE upgrading to 2.0 RC1.2.

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 this page for all versions.

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
128 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(); ?>

Slim-x (31), JB (36), df3rry (31), Cecilia (49), phantomk (25), satshow12 (41), Ðyєgσv (22), HForever (20), Scubasjl18 (23), clarkkent93 (39), violette (33), alerosanero (39), J.Hillier (50), rmaccara (51), yacom (38), Supreme Master Axy, LaDDy (25), ikrabbe (2), gewusel (49), majarm (46), toratek (28), l1nux1ngtgb (20), turtle_moon (18), Ianelgroso (14), Tim (27), Gagus (31), Dee, vfloyd, waz (45), Naki-BoT (24), SunZeroX (18), kaancinkaya (26), C®αzувσу (24), CryptoN (19), RamaSethu2001 (54), reynierpm (26), stoecki (25), Glendalough (32), dahaxer74 (19), amaz1 (31), ezcruci (24), Lavarinth (24), By_XxLarge (15), clas1071 (18), Solen Senshure (24), espenf (40), KingIdol68 (41), austinderrick2 (22), fab (32), EdwinK (43), Tineke (51), WildJoker (48), KeMoT (32), russena (41), {ShineWonder} (38), tmyoungjr (30), Kastroman (25), Pramila (29), Quaquaversal (22), Jose7up (31), Rohcodom (30), euroemy (40), illustrasyon (28), V.i.s.u.a.l.k.e.i.6.6.6 (15), andreidanielb (24), d-light (31), Chad (37), ralphjohnson (56), aragorn231 (35), mogadishu (30), copter (22), Uexplode (45), Derelict Titan, Zetan (34), kaung (22), xkai_666x (31), Krasilnikov (28), jaen (29), Jerry Daniels (61), geo_t74 (22), cool110 (16), spearfish (18), Nitro (44), Eugene (22), Glenn Sand (62), firepuk (27), on4ya (58), minmax (43), Mustinet (23), ruigato (30), 编号0013 (26), Fire Kitten (17), Phasar (50), Asier (30), Master of Oblivion (43), PetrusCorporated (23), Yhamuna (27), yoeri (24), vivid (35), phiLLi (23), Paddy (26), Janus.GU (23), Atalay35 (32), lechelers (56), Raziinz (15), saaam (27), cognac (19), Fatiga07 (20), wmcintosh (45), drifter_08 (20), Dharshan (24), Trekkie101 (20), swishewk (60), aedris (39), frheimen (36), Cladestino (43), modestof (48), efeko (25), Limun (41), CROCY (33), German_AC (32), nrenou (31), stanni (17), AntonT (25), SilverFairy

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


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


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

Upcoming Birthdays: Slim-x (31), JB (36), df3rry (31), Cecilia (49), phantomk (25), satshow12 (41), Ðyєgσv (22), HForever (20), Scubasjl18 (23), clarkkent93 (39), violette (33), alerosanero (39), J.Hillier (50), rmaccara (51), yacom (38), Supreme Master Axy, LaDDy (25), ikrabbe (2), gewusel (49), majarm (46), toratek (28), l1nux1ngtgb (20), turtle_moon (18), Ianelgroso (14), Tim (27), Gagus (31), Dee, vfloyd, waz (45), Naki-BoT (24), SunZeroX (18), kaancinkaya (26), C®αzувσу (24), CryptoN (19), RamaSethu2001 (54), reynierpm (26), stoecki (25), Glendalough (32), dahaxer74 (19), amaz1 (31), ezcruci (24), Lavarinth (24), By_XxLarge (15), clas1071 (18), Solen Senshure (24), espenf (40), KingIdol68 (41), austinderrick2 (22), fab (32), EdwinK (43), Tineke (51), WildJoker (48), KeMoT (32), russena (41), {ShineWonder} (38), tmyoungjr (30), Kastroman (25), Pramila (29), Quaquaversal (22), Jose7up (31), Rohcodom (30), euroemy (40), illustrasyon (28), V.i.s.u.a.l.k.e.i.6.6.6 (15), andreidanielb (24), d-light (31), Chad (37), ralphjohnson (56), aragorn231 (35), mogadishu (30), copter (22), Uexplode (45), Derelict Titan, Zetan (34), kaung (22), xkai_666x (31), Krasilnikov (28), jaen (29), Jerry Daniels (61), geo_t74 (22), cool110 (16), spearfish (18), Nitro (44), Eugene (22), Glenn Sand (62), firepuk (27), on4ya (58), minmax (43), Mustinet (23), ruigato (30), 编号0013 (26), Fire Kitten (17), Phasar (50), Asier (30), Master of Oblivion (43), PetrusCorporated (23), Yhamuna (27), yoeri (24), vivid (35), phiLLi (23), Paddy (26), Janus.GU (23), Atalay35 (32), lechelers (56), Raziinz (15), saaam (27), cognac (19), Fatiga07 (20), wmcintosh (45), drifter_08 (20), Dharshan (24), Trekkie101 (20), swishewk (60), aedris (39), frheimen (36), Cladestino (43), modestof (48), efeko (25), Limun (41), CROCY (33), German_AC (32), nrenou (31), stanni (17), AntonT (25), SilverFairy

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


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

File Posted by Downloads Filesize
last.PNG Akyhne 353 30.3kB
quotes.PNG Akyhne 208 113.09kB
pinky_brain copy copy.jpg Runic 210 44.59kB
pinky_brain.png Antechinus 250 42.44kB
pinky_brain copy.jpg Runic 249 45.59kB
servers2.jpg dschwab9 210 415.61kB
servers1.jpg dschwab9 227 584.88kB
smf_patch_1.0.18_1.1.10-2.0-RC1.2.zip Compuart 4646 10.13kB
modified_2-0-RC1-1_2-0-RC1-2.zip Compuart 4004 64.38kB
modified_1-1-9_1-1-10.zip Compuart 6339 118.36kB

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.1697 seconds to load.
*ssi_examples.php last modified on 09/28/08