SMF SSI.php Functions

Current Version: 2.0 Beta 3 Public

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

[Modifications and Packages] AJAX Recent Topics by SlammedDime Today at 03:49:35 AM
[Español (Spanish)] Indice de posts (SMF) by Dante_Arg Today at 03:48:19 AM
[Español (Spanish)] Hay un mod que muestre las direcciones externas dentro de una interna? by calamaresrrellenos Today at 03:48:17 AM
[SMF 1.x Support] Members avatars have disappeared? by maxringo Today at 03:46:19 AM
[Español (Spanish)] 2 problemas y una intriga. by janito24 Today at 03:39:51 AM
[Türkçe (Turkish)] yedekde sorun by JOHN DEVIN Today at 03:39:05 AM
[Modifications and Packages] AJAX Instant Quick Reply by asudhakar Today at 03:38:21 AM
[SMF 1.x Support] Registration verifcation picture doesn't show by maxringo Today at 03:37:59 AM

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

[Modifications and Packages] Re: AJAX Recent Topics by SlammedDime Today at 03:49:35 AM
[Español (Spanish)] Re: Indice de posts (SMF) by Dante_Arg Today at 03:48:19 AM
[Español (Spanish)] Re: Hay un mod que muestre las direcciones externas dentro de una interna? by calamaresrrellenos Today at 03:48:17 AM
[SMF 1.x Support] Re: Members avatars have disappeared? by maxringo Today at 03:46:19 AM
[Español (Spanish)] Re: 2 problemas y una intriga. by janito24 Today at 03:39:51 AM
[Türkçe (Turkish)] Re: yedekde sorun by JOHN DEVIN Today at 03:39:05 AM
[Modifications and Packages] Re: AJAX Instant Quick Reply by asudhakar Today at 03:38:21 AM
[Español (Spanish)] Re: Hay un mod que muestre las direcciones externas dentro de una interna? by janito24 Today at 03:38:04 AM

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


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

Board Topics Posts
SMF 1.x Support New 35821 209786
Türkçe (Turkish) New 17532 120355
Modifications and Packages New 837 85478
Administration and Functionality New 14078 75061
SMF Coding Discussion New 10680 57987
Chit Chat New 3980 55083
Español (Spanish) New 9263 53506
Install and Upgrade Help New 7985 48462
Modifikasyonlar New 4080 47662
Graphics and Templates New 6760 40964

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

Views Replies
SMF Arcade 413023 3320
Themes (Skins) 364833 115
Integrated Chat Mod 268942 1820
Ad Management mod 241175 2789
SMFShop - Shop MOD 241086 1595
Ultimate Shoutbox 236120 1270
[Theme] Helios Multi (SMF v1.0.5 - 1.1RC2) 227606 1157
Location Mod 217690 1229
Googlebot & Spiders 209325 1530
Yöneticinin SMF Kullanım Klavuzu 207832 128

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

Views Replies
SMF Arcade 413023 3320
nneonneo's Shoutbox 191322 2900
Ad Management mod 241175 2789
Custom Profile Field Mod 205387 2055
Pretty URLs (Now supporting SMF 2.0 Beta 3 Public!) 124515 1994
Integrated Chat Mod 268942 1820
SMF Shoutbox 183540 1636
SMFShop - Shop MOD 241086 1595
Googlebot & Spiders 209325 1530
SMF Gallery 117247 1504

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

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

Savabore


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

Total Members: 146,485
Total Posts: 1,569,764
Total Topics: 201,859
Total Categories: 12
Total Boards: 140

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

787 Guests, 77 Users (6 Hidden)
fecu2008, Thantos, dewald, Alpay, Eliana Tamerin, russ skinner, JOHN DEVIN, carhartt, Charles Hill, SmokyBlue, SlammedDime, boss-tr, moucaaa, JohnyB, Angelotus, calamaresrrellenos, Ahriman, Dante_Arg, c1n4R, {••тєηηιѕєя••}, star.torturer, maxringo, The_Big_Boss, Nkpz, spartaco, S e r s e r i, rmx100, janito24, fayettemat, Nasarid15, metal13, KarKess, Darknico, LHVWB, flygye12, Crash.Spyro, pr0xymAn1ac, asudhakar, KameL, Tapsa2, Aslanbac (husmen73), e_ucucu, Mr_Nick666, X8oD, ImNoDozer, Wolvix, deZio, cko, sasawawa, Alundra, jani01, Weegel, rnicolescu, mattz83, netco, kenet, CyprusGrump, sirius48e, LordSebo, digit, ThorstenE, agakurt, masternewbie, BrKn*, niknok3250, Knome, Marioh, riker, allymcbeal, swosmax, wiebke

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

788 Guests, 77 Users (6 Hidden)
fecu2008, Thantos, dewald, Alpay, Eliana Tamerin, russ skinner, JOHN DEVIN, carhartt, Charles Hill, SmokyBlue, SlammedDime, boss-tr, moucaaa, JohnyB, Angelotus, calamaresrrellenos, Ahriman, Dante_Arg, c1n4R, {••тєηηιѕєя••}, star.torturer, maxringo, The_Big_Boss, Nkpz, spartaco, S e r s e r i, rmx100, janito24, fayettemat, Nasarid15, metal13, KarKess, Darknico, LHVWB, flygye12, Crash.Spyro, pr0xymAn1ac, asudhakar, KameL, Tapsa2, Aslanbac (husmen73), e_ucucu, Mr_Nick666, X8oD, ImNoDozer, Wolvix, deZio, cko, sasawawa, Alundra, jani01, Weegel, rnicolescu, mattz83, netco, kenet, CyprusGrump, sirius48e, LordSebo, digit, ThorstenE, agakurt, masternewbie, BrKn*, niknok3250, Knome, Marioh, riker, allymcbeal, swosmax, wiebke

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 SMF to attend O' Reilly's OSCON.announcement
Today at 12:24:36 AM by rickC
SMF to attend O' Reilly's OSCON.


Simplemachines.org has some exciting news. This July 21-25 we'll be attending O' Reilly's OSCON in Portland, Oregon (USA). What makes this years all the more exciting is its scheduled to be three events in one.

What is OSCON?

OSCON is the Open Source Convention. Now in its tenth year, OSCON returns to the Oregon Convention Center in Portland, Oregon July 21-25, 2008, bringing together over 2500 experts, visionaries, and hackers in the trenches to explore all that open source has to offer. 2008 promises interesting developments in the Linux, Java, Web, and open source infrastructures. OSCON will have tracks for Linux, PHP, Perl, Python, Ruby, Java, Mobile, Databases, Desktop Applications, Web Applications, Administration, Security, People, Business, and Emerging Topics. Learn more at About OSCON . (http://en.oreilly.com/oscon2008/public/content/about)


Open Source Conference.  -This year promises to show off some of the best and fastest growing open source projects, just imagine a  convention center filled with developers, hackers, experts, IT managers. :D

Open Mobile Exchange -( OMX for short), it geared to get those involved in building out the open source mobile space, including platforms, standards, applications, hardware, integration, browsers, location, and services.

Ubuntu Live 2008- The Canonical team is set to show off a wide array of new products including the soon to be popular mobile version of Linux http://moblin.org/ http://www.ubuntu.com/products/mobile
 
This trifecta proves to be promising for SMF. We'll be packed with goodies, swag and we'll be running some SMF demos as well as giving some lectures demonstrating the new features of our 2.x version of SMF. If you are in the area, and are able to attend, drop by the booth and hang out with the team.



What will SMF be showcasing?

SMF team members set to attend:

Confirmed thus far-
0 comments | Write Comment

xx Function DB Version 2.0...
May 08, 2008, 12:18:05 AM by Oldiesmann
Sometime last year (or possibly even in 2006), I started thinking about improvements to the function DB, and noticed one major issue: due to the way the data was stored, we had to add an entire new function entry if a function was moved or changed in some way (additional functionality, new parameters, etc.). This meant that the function ID would also change in these situations, making it harder to track changes to functions between SMF versions.

I decided to rewrite the function db to address this problem, and addressed a few other (smaller) issues while I was at it. Due to the changes, I had to manually copy over all the function info from the existing function db to a new one which was being worked on in a non-public area of the site. I got busy and didn't have a lot of time to work on this, so it took a lot longer than I had originally planned, but I am pleased to report that the new version is up.

At first you won't notice many changes, as things should still look the same. However, there have been numerous changes:


All existing SMF functions (eg all the ones that were already in the function db) have been updated, so details exist for 2.0 as well. In addition, some functions that were added in 2.0 have already been documented (these are mainly ones that we documented from early alpha versions of 2.0).

What's to come? At this point we will be focusing mainly on documenting new functions from SMF 2.0. My goal is to have as many 2.0 functions documented as possible by the time the final version is released later this year.

I hope these changes make the function db more useful. Let me know if you run into any problems :)
22 comments | Write Comment

xx Theme Contest Winners!
May 06, 2008, 04:45:50 PM by Dark Gazmanafc
The voting for theme contest has now closed, and the results have been calculated.

First, we would like to thank all participants who entered the theme contest, we saw some good themes and hope to see more themes from everyone in the future.

The top three themes in reverse order are:

3rd Place: Fussilet MC by Fussilet
Prize: Your choice of book from O'Reilly.

2nd Place: Orangeline by crip
Prize: Featured Theme Rotation and your choice of book from O'Reilly

and the winner is

kelo-lt by padexx

Congratulations, you've earned yourself a free Charter Membership, the theme has been entered into the Featured Theme Rotation and your choice of book from O'Reilly.

For the books, RickC will be contacting winners shortly with further details.

Simple Machines
58 comments

clip Simple Machines Forum 1.1.5 and 1.0.13 released
April 30, 2008, 10:05:25 PM by Compuart
Simple Machines is proud to announce the release of SMF 1.1.5.

This version addresses a few security issues and fixes some small bugs.

We encourage all users to upgrade to SMF 1.1.5 as soon as possible, by either using the fast install option from the admin panel, or manually applying the changes attached to this message.

Among other things, this version fixes the following issues:
* Sanitation of $topic wasn't always done right.
* Increased the randomness of the Captcha sound.
* Require the Memcached version that's compiled into PHP to ensure a better performance.
* Improved the random generator seeding for PHP < 4.2.0 - issue reported by Jessica Hope.
* Fixed a vulnerability with the use of the html-tag - issue reported by Jessica Hope.
* Fixed the CRC function not working properly on 64-bit systems.
* Fixed remembering the infocenter collapse status for guests.
* Don't send the admin a new registration email just because a member changed their email address.


SMF 1.1.4 users:  Upgrading could not be easier. Simply log into your forum and visit your admin center - a notice should inform you an update is available. Follow the instructions to patch your release - this should not generally affect any modifications, language packs or themes you have installed. Alternatively download the attached patch file, upload to your "Packages" directory and visit the package manager to install this fix.

If you cannot upgrade using the package manager, please follow the instructions posted in the Online Manual about installing and upgrading.

SMF 1.0.12 users:  A separate version has been released: 1.0.13. Just like the 1.1.x branch users, you can simply upgrade through the admin center or download and apply the attached patch.

SMF 2.0 beta 3 users: The same goes for members currently running SMF 2.0 beta 3. They can upgrade to SMF 2.0 beta 3.1 through the admin center or by downloading and applying the attached patch.

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!

Thanks,

Simple Machines
78 comments

xx Theme Contest Voting
April 29, 2008, 06:46:13 PM by RunicWarrior
Well folks the Theme Contest is now closed. For the last 9 days the team have been busting their brains to narrow the voting down to the final 8. Now it's up to you guys and gals to bring the 8 down to three.

In case you all have forgotten what's at stake, the prizes are listed below.

Prizes:
The Grand Prize Winner
The Grand Prize Winner will receive:

The First Runner Up
The First Runner Up will receive:

The Second Runner Up
The Second Runner Up will receive:


All you have to do is vote on each theme, rating all 8 themes between 1 - 10 (ten being highest).
The winners will be announced in one weeks time. Designers, get your friends to vote for your theme!

Good luck to all who have made it into the final vote
You can vote here Voting is closed!.

Good Luck
Simple Machines
88 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(); ?>

damo1065 (27), diplomat. (22), Motorhead (42), ismile (35), Wingnut31 (45), Unifox (42), Flexi (49), Mturco (16), troyoz (48), hunteralogist (16), grpctech (22), Mulgarus (29), Vincent Volmer (37), kasamhor (33), scubaru (38), dstjohn (34), voetschimmel (23), Dem0n (25), Andrew Vetlugin (4), Joe Leslie (18), amdisuk (35), HuttonIT (49), avusor (33), zbHost (34), lisalover1 (15), Angpeu (30), Huizen markt (44), ivandinjo (26), lonz (29), Srecko (42), tony akv (41), Relyana, Grimedth (20), potbelly (41), Justjoolzs (43), Dylan Malone (35), bmrberlin (56), patch (23), troozers (39), Phoenix Fledgeling (26), Vinspire (26), evilopinions (23), L¤яdSèßO (22), Parijs (33), mama daisy (50), Roakie (29), lpg_unit (18), TheRave (24), KarlPen (49), alexandre.luque (22), reddogmama (56), JanitorFMLP (24), aguattera (27), TXSherry (76), PFunk, Wild Man (29), tL0z (18), gula (22), ray999 (48), VinnyS (50), saintnick (20), The Ogre Reader (36), BountYHunTercGn (34), Bad-Dj (18), woody_9312 (15), Joseph (28), sdmr (26), AlphaWolf (53), ElecBoy (23), Anakin_holland (30), VxJasonxV (23), scifieric (45), Zaphod (57), Kurban (19), Irish Dragon (22), micheas (2), pixelita (50), surra (33), BlueBell07 (38), Gotenks (25), [SG]Vietken (18), drgsldr69 (32), satanicra99 (13), ally07131980 (28), klokocova (41), Matledos (15), Jeff Lewis (33), Wissi (22), Ezechiele (27), RDS (24), manichols7 (61), Altbs (32), safetythird (37), gotMilk (29), iPodRx (17), pr0xymAn1ac (19), ajredding (27), TheThriftShopper.Com (42), Green Hornet (36), dounia (12), Pranav (14), deadhead (35), InmaFM (26), atarmiga (35), 99zippy (47)

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


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


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

Upcoming Birthdays: damo1065 (27), diplomat. (22), Motorhead (42), ismile (35), Wingnut31 (45), Unifox (42), Flexi (49), Mturco (16), troyoz (48), hunteralogist (16), grpctech (22), Mulgarus (29), Vincent Volmer (37), kasamhor (33), scubaru (38), dstjohn (34), voetschimmel (23), Dem0n (25), Andrew Vetlugin (4), Joe Leslie (18), amdisuk (35), HuttonIT (49), avusor (33), zbHost (34), lisalover1 (15), Angpeu (30), Huizen markt (44), ivandinjo (26), lonz (29), Srecko (42), tony akv (41), Relyana, Grimedth (20), potbelly (41), Justjoolzs (43), Dylan Malone (35), bmrberlin (56), patch (23), troozers (39), Phoenix Fledgeling (26), Vinspire (26), evilopinions (23), L¤яdSèßO (22), Parijs (33), mama daisy (50), Roakie (29), lpg_unit (18), TheRave (24), KarlPen (49), alexandre.luque (22), reddogmama (56), JanitorFMLP (24), aguattera (27), TXSherry (76), PFunk, Wild Man (29), tL0z (18), gula (22), ray999 (48), VinnyS (50), saintnick (20), The Ogre Reader (36), BountYHunTercGn (34), Bad-Dj (18), woody_9312 (15), Joseph (28), sdmr (26), AlphaWolf (53), ElecBoy (23), Anakin_holland (30), VxJasonxV (23), scifieric (45), Zaphod (57), Kurban (19), Irish Dragon (22), micheas (2), pixelita (50), surra (33), BlueBell07 (38), Gotenks (25), [SG]Vietken (18), drgsldr69 (32), satanicra99 (13), ally07131980 (28), klokocova (41), Matledos (15), Jeff Lewis (33), Wissi (22), Ezechiele (27), RDS (24), manichols7 (61), Altbs (32), safetythird (37), gotMilk (29), iPodRx (17), pr0xymAn1ac (19), ajredding (27), TheThriftShopper.Com (42), Green Hornet (36), dounia (12), Pranav (14), deadhead (35), InmaFM (26), atarmiga (35), 99zippy (47)

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


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

File Posted by Downloads Filesize
Display.template_org_before_mod.php asudhakar 0 59.42KB
Display.template_after_install_still_error_needs_mod.php asudhakar 0 61.86KB
Display.template_now_after_mod.php asudhakar 0 61.95KB
auto.JPG janito24 2 61.3KB
th_purplebutterfliesflowersamyjillowne.jpg tggrcutiepie 0 8.76KB
Blog.turkish.php Hoochie Coochie Man 0 7.75KB
yabb21_to_smf.php SleePy 1 56.56KB
duda.jpg Marioh 4 18.72KB
index.php LHVWB 1 21.55KB
index.php LHVWB 1 17.35KB

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 1.1876 seconds to load.
*ssi_examples.php last modified on 05/8/08