This snippet allows you to use the SSI.php in your SMF forum root folder to bring information into your MODx.
Installation: copy the code below and create a new snippet named
SMF_forum_include
** make sure the include path points to your forum folder and the SSI.php file specifically
usage: [!SMF_forum_include?showSMF=recentTopics!]
* can be used multiple times on a page
<?php
/* SMF_forum_include
last edit: 5/31/07 2:35 am est
[!SMF_forum_include?showSMF=recentTopics!]
for more information about the various functions
please see the SSI.php file in the forum root folder
also check here for SSI usage info:
http://docs.simplemachines.org/index.php?topic=400
*/
include("forum/SSI.php");
ob_start();
switch ($showSMF) {
case "": ""; break;
case "recentTopics": ssi_recentTopics(); break;
case "recentPosts": ssi_recentPosts(); break;
case "topPoster"; ssi_topPoster(); break;
case "topBoards"; ssi_topBoards(); break;
case "topTopics"; ssi_topTopics(); break;
case "topTopicsReplies"; ssi_topTopicsReplies(); break;
case "topTopicsViews"; ssi_topTopicsViews(); break;
case "latestMember"; ssi_latestMember(); break;
case "boardStats"; ssi_boardStats(); break;
case "whosOnline"; ssi_whosOnline(); break;
case "logOnline"; ssi_logOnline(); break;
case "login"; ssi_login(); break;
case "logout"; ssi_logout(); break;
case "topPoll"; ssi_topPoll(); break;
case "recentPoll"; ssi_recentPoll(); break;
case "showPoll"; ssi_showPoll(); break;
case "pollVote"; ssi_pollVote(); break;
case "quickSearch"; ssi_quickSearch(); break;
case "news"; ssi_news(); break;
case "todaysBirthdays"; ssi_todaysBirthdays(); break;
case "todaysHolidays"; ssi_todaysHolidays(); break;
case "todaysEvents"; ssi_todaysEvents(); break;
case "todaysCalendar"; ssi_todaysCalendar(); break;
case "boardNews"; ssi_boardNews(); break;
case "recentEvents"; ssi_recentEvents(); break;
case "welcome"; ssi_welcome(); break;
case "menubar"; ssi_menubar(); break;
//case ""; ssi_(); break;
default: "";
}
$output = ob_get_contents();
ob_end_clean();
return $output;
?>
hmmmm... apparently just the coding format, and also that I didnt find that one when I conducted a search of the forums or the repository before I posted it.
sorry for duplicates but I wonder why it didnt show in my search? (then again, neither search - ajax or otherwise works on my 095 site either

)