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

[Chit Chat] Have confusions about life? Ask sshahnawaz by Orstio Today at 12:44:23 PM
[Português (Portuguese)] Botão do Simple Portal 2.3.1 não aparece no meu tema by Costa Today at 12:44:17 PM
[News and Updates] Smiley Contest: THE WINNERS!! by Runic Today at 12:44:03 PM
[Modificações (Mods)] Mostrar grupos adicionais no perfil dos tópicos e perfil by Piteel™ Today at 12:42:49 PM
[Modificaciones (Mods)] MOD (Thank-O-Matic) Traducido al Español by Trampasj Today at 12:42:08 PM
[SMF 2.x Support] whene the last verison?? by Arantor Today at 12:37:55 PM
[SMF 2.x Support] how remove forum name and smf logo by aoz987 Today at 12:37:49 PM
[Tutoriais] [TUTORIAL] Administradores não ter limite de caracteres na Assinatura by Piteel™ Today at 12:37:46 PM

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

[Chit Chat] Re: Have confusions about life? Ask sshahnawaz by Orstio Today at 12:44:23 PM
[Português (Portuguese)] Re: Botão do Simple Portal 2.3.1 não aparece no meu tema by Costa Today at 12:44:17 PM
[News and Updates] Re: Smiley Contest: THE WINNERS!! by Runic Today at 12:44:03 PM
[Modificações (Mods)] Re: Mostrar grupos adicionais no perfil dos tópicos e perfil by Piteel™ Today at 12:42:49 PM
[Modificaciones (Mods)] Re: MOD (Thank-O-Matic) Traducido al Español by Trampasj Today at 12:42:08 PM
[SMF 2.x Support] Re: whene the last verison?? by Arantor Today at 12:37:55 PM
[SMF 2.x Support] Re: how remove forum name and smf logo by aoz987 Today at 12:37:49 PM
[Tutoriais] Re: [TUTORIAL] Administradores não ter limite de caracteres na Assinatura by Piteel™ Today at 12:37:46 PM

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


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

Board Topics Posts
SMF 1.x Support New 68,426 415,923
SMF Online Manual 0 166,419
Modifications and Packages New 1,500 162,740
Türkçe Bölümü (Turkish) New 22,970 158,263
Español (Spanish) New 15,911 91,778
SMF Coding Discussion New 14,869 88,997
Chit Chat New 5,183 72,926
Install and Upgrade Help New 11,381 71,404
Graphics and Templates New 9,680 60,230
Modifikasyonlar New 5,133 49,401

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

Views Replies
nneonneo's Shoutbox 1,032,760 5,690
SMF Arcade 718,444 4,129
Pretty URLs 1.0RC 584,103 4,527
Ad Management mod 560,984 4,371
Aeva 7.0.703 with HD YouTube (Auto-Embed Video & Audio) 513,278 421
Custom Profile Field Mod 455,506 2,777
SMFShop - Shop MOD - Version 3.1.1 417,801 1,993
Integrated Chat Mod 408,913 1,862
Themes (Skins) 404,017 115
SMF Media Gallery (SMG) - 2.0.2 is out! (November 3) 390,214 4,992

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

Views Replies
nneonneo's Shoutbox 1,032,760 5,690
Aeva 6.9.99 and earlier (old) 11,101 5,030
SMF Media Gallery (SMG) - 2.0.2 is out! (November 3) 390,214 4,992
Pretty URLs 1.0RC 584,103 4,527
AjaxChat Integration (latest version 3.2.1) 318,350 4,513
Ad Management mod 560,984 4,371
SMF Arcade 718,444 4,129
SimplePortal - 2.3.1 Released! 319,021 2,854
Custom Profile Field Mod 455,506 2,777
SMF Gallery 2.0.7 Released! 349,511 2,426

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

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

Tone^


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

Total Members: 201,619
Total Posts: 2,207,311
Total Topics: 284,318
Total Categories: 13
Total Boards: 172

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

1,108 Guests, 130 Users (9 Hidden)
Am', Mr.Manu, Niko, CoreISP, MaXiForum.cz, Nas, FrelonVert, limsteven25, skip, ruchri, smp420, Orstio, stikkki, pitta, Trampasj, netoya, MAUTIER, Tech1, ac99, alidie, SleePy, Pikkeltje, darrenbeige, cthnet, Piteel™, myoung, diablo3x.dk, Robbers, kwah, [EZE]Cheech, munze80, Akyhne, xxLarç, Haяy, PurpleCrow, eleven, Relyana, Arantor, Do², aoz987, SONSiVRi, NukeGaming, powercarl, Destral, Compuart, lfma, Sebihunter, Ryukai, Darkness*, ttuu, Aäron, sshahnawaz, j4vito, MATUNUS, nurg, rasidekmen, La Casa, turuncu636, javaJake, erdem86, Sebaas12, Sverre, gohanjaja, snchz, mikeart, ∑£ℓ¢†®¡¢ §ợų¡đ, Uhura!, khanje, halattas, poolhall, SunKing, haydarguner, R.Bourne, Mythcomeback | Burak, choloman05, turklerinneti.com, MF30, juanda_suarez2, MilanC, AlbEagle, Dzonny, Omega24v, MaNaRa, Kill Em All, Christian A. Herrnboeck, Fovist, HecKel, heinandar, homer09001, Berno, yurolex, furscape, TomW, Magicjax, catfished, Hamjel, sneijder23, Chamox, Dди!€ℓeX!, lance_yien, Tyrsson™, Pentaxian, Linda.V, CameraGuyStudios, ninermac, LoCatus, Irish Dragon, shadow_dwel, Saladine, IFM, argenli, The Goblin, ...ycLmeN..., ishy, akabugeyes, digit, Petter B, joshep, H, sid2varun, joro_la

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

1,109 Guests, 130 Users (9 Hidden)
Am', Mr.Manu, Niko, CoreISP, MaXiForum.cz, Nas, FrelonVert, limsteven25, skip, ruchri, smp420, Orstio, stikkki, pitta, Trampasj, netoya, MAUTIER, Tech1, ac99, alidie, SleePy, Pikkeltje, darrenbeige, cthnet, Piteel™, myoung, diablo3x.dk, Robbers, kwah, [EZE]Cheech, munze80, Akyhne, xxLarç, Haяy, PurpleCrow, eleven, Relyana, Arantor, Do², aoz987, SONSiVRi, NukeGaming, powercarl, Destral, Compuart, lfma, Sebihunter, Ryukai, Darkness*, ttuu, Aäron, sshahnawaz, j4vito, MATUNUS, nurg, rasidekmen, La Casa, turuncu636, javaJake, erdem86, Sebaas12, Sverre, gohanjaja, snchz, mikeart, ∑£ℓ¢†®¡¢ §ợų¡đ, Uhura!, khanje, halattas, poolhall, SunKing, haydarguner, R.Bourne, Mythcomeback | Burak, choloman05, turklerinneti.com, MF30, juanda_suarez2, MilanC, AlbEagle, Dzonny, Omega24v, MaNaRa, Kill Em All, Christian A. Herrnboeck, Fovist, HecKel, heinandar, homer09001, Berno, yurolex, furscape, TomW, Magicjax, catfished, Hamjel, sneijder23, Chamox, Dди!€ℓeX!, lance_yien, Tyrsson™, Pentaxian, Linda.V, CameraGuyStudios, ninermac, LoCatus, Irish Dragon, shadow_dwel, Saladine, IFM, argenli, The Goblin, ...ycLmeN..., ishy, akabugeyes, digit, Petter B, joshep, H, sid2varun, joro_la

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

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

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

Wondering if this will always be free?  See why free is better.

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

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
71 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

xx Simple Machines adds team dedicated to internationalization
May 24, 2009, 03:07:25 PM by Compuart
From the start, Simple Machines Forum has been made by many people around the globe and has been translated and supported in many languages. The software has always been developed with localization in mind.  Our translators provide a large number of translations in a relatively short time frame and the number of translations is still growing.

To stress the importance of internationalization, Simple Machines has created the Internationalization Team. They will supervise translations, develop new concepts and ideas for better internationalized software & support and facilitate other teams to be more localization-aware.

So, what can you expect in the future?


What can you do to help?
60 comments | Write Comment

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

ViSioNaRy (53), ajc (5), DarkGênesis (23), CeZa (23), sneakyj0e (21), EgonOlsen (38), raphiphopmalicom (28), intira (14), Exelance (1), FroggledotNL (20), EnwerAbLe (19), magarul.com (31), Duh_Cheers (70), sireno (31), plmbwizardz (40), Blacky (38), Toomany (28), CERT (27), MiniMizer (24), Petrus (43), Lord Shadow, Romaaa (27), altf4 (36), ptit-seb (20), dano4406bbl (29), A Whipping Boy (403), PerJ (48), capmar (28), unclebud (42), Scorpio_Angel (34), Erik M, ShaLgam (27), franck cornu (44), da_loki (26), FreeGeezer (70), Ornacea (28), rh1n0 (19), Killerr (15), FernandoT (45), swapnil (20), Malkav (25), Garrett Jewell (23), amrik (18), Doug (60), brockied (26), subduck (26), phoenix.pt (36), aliusta (22), nanoboss (50), KGIII (234), izmirli_ (22), kadirbaba (35), SoftDux (30), Bighomedog11 (18), arnebarne (51), ultrasct (22), aushorse (40), mythus (29), intelx86 (21), 2bz2p (30), iflyabeech (33), homer66 (43), Jujitsubb777 (26), djerror (21), capitanqueso (34), Denoria (17), ʟink (19), necesitohelp (19), dronning (56), Nyx (34), Obtruse_Man4 (23), kerux4 (38), schifti (28), Bluesman (23), W0lf (44), chipmonk (37), Desktop (17), raven.find (37), rosoner (22), Torquelada (48), aitortxu (31), TMan4775 (51), JRico (32), RockDream (21), RedNael (27), eForce (29), fulluser (22), ice2fire, tyty1234 (16), Delidereli (19), [»|« №ōЯ »|«] (22), HileciTR (19), MrGrimey (33), randomPaul (24), MetalHellsAngel (34), unExpected (24), BG-Mamma (33), Rumko (24), Hotel, SaHiN22 (25), desperado2 (24), BrendanOO7 (53), SebKom (21), Peregrinus (36), LilMermaidGirl (24), MattV (18), BoZilla (34), Peter Duggan (46), dracko (38), djsimon13 (27), ceybe (33), dagr8tim (33), pkclary (61), mastema (25), adamdidthis (33), camfrogusersrooms (33), hayley2007 (24), GTi_Nicky (36), JohnAmera (17), David_DiSanto (18), jp71 (38), blue2grey (36)

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

Veterans Day

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


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

Veterans Day
Upcoming Birthdays: ViSioNaRy (53), ajc (5), DarkGênesis (23), CeZa (23), sneakyj0e (21), EgonOlsen (38), raphiphopmalicom (28), intira (14), Exelance (1), FroggledotNL (20), EnwerAbLe (19), magarul.com (31), Duh_Cheers (70), sireno (31), plmbwizardz (40), Blacky (38), Toomany (28), CERT (27), MiniMizer (24), Petrus (43), Lord Shadow, Romaaa (27), altf4 (36), ptit-seb (20), dano4406bbl (29), A Whipping Boy (403), PerJ (48), capmar (28), unclebud (42), Scorpio_Angel (34), Erik M, ShaLgam (27), franck cornu (44), da_loki (26), FreeGeezer (70), Ornacea (28), rh1n0 (19), Killerr (15), FernandoT (45), swapnil (20), Malkav (25), Garrett Jewell (23), amrik (18), Doug (60), brockied (26), subduck (26), phoenix.pt (36), aliusta (22), nanoboss (50), KGIII (234), izmirli_ (22), kadirbaba (35), SoftDux (30), Bighomedog11 (18), arnebarne (51), ultrasct (22), aushorse (40), mythus (29), intelx86 (21), 2bz2p (30), iflyabeech (33), homer66 (43), Jujitsubb777 (26), djerror (21), capitanqueso (34), Denoria (17), ʟink (19), necesitohelp (19), dronning (56), Nyx (34), Obtruse_Man4 (23), kerux4 (38), schifti (28), Bluesman (23), W0lf (44), chipmonk (37), Desktop (17), raven.find (37), rosoner (22), Torquelada (48), aitortxu (31), TMan4775 (51), JRico (32), RockDream (21), RedNael (27), eForce (29), fulluser (22), ice2fire, tyty1234 (16), Delidereli (19), [»|« №ōЯ »|«] (22), HileciTR (19), MrGrimey (33), randomPaul (24), MetalHellsAngel (34), unExpected (24), BG-Mamma (33), Rumko (24), Hotel, SaHiN22 (25), desperado2 (24), BrendanOO7 (53), SebKom (21), Peregrinus (36), LilMermaidGirl (24), MattV (18), BoZilla (34), Peter Duggan (46), dracko (38), djsimon13 (27), ceybe (33), dagr8tim (33), pkclary (61), mastema (25), adamdidthis (33), camfrogusersrooms (33), hayley2007 (24), GTi_Nicky (36), JohnAmera (17), David_DiSanto (18), jp71 (38), blue2grey (36)

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


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

File Posted by Downloads Filesize
last.PNG Akyhne 341 30.3kB
quotes.PNG Akyhne 200 113.09kB
pinky_brain copy copy.jpg Runic 169 44.59kB
pinky_brain.png Antechinus 210 42.44kB
pinky_brain copy.jpg Runic 211 45.59kB
servers2.jpg dschwab9 195 415.61kB
servers1.jpg dschwab9 216 584.88kB
smf_patch_1.0.18_1.1.10-2.0-RC1.2.zip Compuart 4486 10.13kB
modified_2-0-RC1-1_2-0-RC1-2.zip Compuart 3874 64.38kB
modified_1-1-9_1-1-10.zip Compuart 6157 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.2101 seconds to load.
*ssi_examples.php last modified on 09/28/08