SMF-Nuke Overview
SMF-Nuke is an integration of
Simple Machines Forum (SMF) and
PHP Nuke, the popular Content Management
System (CMS). This integration provides a secure and highly adaptable and configurable application where you can
build a desireable, interactive, and user-friendly website. Guests may register to become active members, allowing them
to post in the forums and in various PHP Nuke modules. Once a guest has registered, they may login and do what is
allowed. Since SMF-Nuke uses the SMF members table, registered members only need to login once to have access to both the
SMF and PHP Nuke parts of the website.
Secure administration is handled in two areas as both
the SMF and PHP Nuke have independent administration sections. Again, one login will allow access to both admin areas.
All PHP Nuke blocks will work "out of the box" with SMF-Nuke. PHP Nuke modules will most generally need some slight
modifications, and we have a tutorial available on how to do that. PHP Themes are not used in SMF-Nuke, however, a PHP Nuke
theme can be converted to a SMF theme if desired. We have a tutorial available on how to do that.
There are no database changes needed for SMF. PHP Nuke tables may need to have 3 tables altered if NSN Groups has never
been installed. Both sets of tables should use the same MySQL database.
SMF replaces the phpbb forum from the original PHP Nuke. SMF-Nuke uses the SMF version 1.1.4 and PHP Nuke version
7.6 as its foundation. Only the theme files are modified in SMF.
Minimum Requirements:
PHP 4.2
MySQL 3.0
SMF-Nuke Detailed Overview
Why the Integration?
It was with PHP Nuke version 7.7 when the text editor was added to compound Nuke's insecure ways. The Nuke
"Patch Team" was independently plugging the holes in Nuke, and how the text editor was added eroded the successes of the
Nuke Patch Team. This was also a time when phpbb was being constantly hit with security breaches, something that somewhat
continues today. Sentinel(tm) came out and stopped all admin takeover hacks. However, just an opinion, it is
maybe overkill and demands too much maintenance, especially with the monthly updates. (again, just an opinion)
Something just had to change...
Enter SMF (Simple Machines Forum).
SMF is a time-proven, secure, fully adaptable, and free forum written using PHP and MySQL.
Using SMF to replace phpbb, we are able to drop MANY modules and code in PHP Nuke. And we can use the secure
SMF to put the Nuke code on a solid foundation.
How is the Integration Coded in?
SMF-Nuke uses the SMF member tables and permission system, and also uses a built-in universal file named "SSI.php" to
extend SMF into any part of the Nuke code that is needed. SMF-Nuke also uses the SMF Themes to further enhance the
adaptability of the Integration.
What is changed in SMF to make the Integration work?
No changes are made to the SMF database
No changes are made to the core SMF files
Changes are made in the Themes/themename/index.template.php and the Themes/themename/style.css files
The necessary PHP Nuke theme functions are placed at the end of the index.template.php file. Also, a "forum" button
is added to the template_menu() function to help navigation. PHP Nuke CSS classes are added to the bottom of the
style.css file. We have these changes listed in another section of this website.
---Again, no changes are needed in the SMF database tables or core SMF code---
What is changed in PHP Nuke to make the Integration work?
Firstly, we used PHP Nuke 7.6 patched as the foundation for SMF-Nuke.
Secondly, ALL PHP NUKE BLOCKS WILL WORK!
Thirdly, if you are wishing to convert your PHP Nuke to SMF-Nuke, you will need to make changes to modules that are not
in the SMF-Nuke original files. You may wish to check the Downloads first to see if the module you are using has been converted
and if not, we have a tutorial explaining how to do this or how to submit it for conversion.
Lastly, PHP Nuke themes are NOT used. If you have an existing PHP Nuke site and wish to use SMF-Nuke, you will need
to convert your theme over to a SMF Theme. We have a tutorial describing how you can do this.
PHP Nuke is where nearly all the changes have been made. If you are running an existing PHP Nuke website and wish to convert
to SMF-Nuke, you will need to replace nearly all your PHP Nuke files with the SMF-Nuke ones. We have a separate page to explain what you
will need to do, especially on how to convert your phpbb database to the SMF database format.
--
3 PHP Nuke database tables are altered unless NSNGroups was previously installed--
The following modules have been replaced with SMF functions:
- AvantGo -- SMF has built-in RSS newsfeed functions
- Forums -- SMF now used. SMF is NOT a module, but is a stand-alone application
- Members List -- Nows uses the SMF Member List
- News -- Now uses a SMF Forum board
- Private Messages -- Now uses the SMF Private Messaging system
- Search -- a Google website search block replaces this module
- Statistics -- Dropped
- Top -- Dropped
- Topics -- not needed now since a SMF forum board is used
- Submit News -- not needed now since a SMF forum board is used
- Survey -- Now uses the SMF Forum Poll function
- Your Account -- Now uses SMF Profile
The following Nuke Admin functions have been dropped:
- authors -- Now uses SMF Members and Permissions
- groups -- Now uses SMF MemberGroups
- ipban -- Now uses SMF banning system (MUCH BETTER!)
- newsletter -- Now uses the SMF Newsletter
- referers -- Dropped
- users -- Now uses SMF Members
The following changes have been made in the PHP Nuke modules:
- gettheme(); -- Dropped since SMF Themes are now used
- title(); -- Dropped. Use <div class="titlebox"> from the style.css file instead
- updatepoints(); -- Dropped.
- is_user(); -- replaced with "$context['user']['is_logged']" for SMF Member Permissions
- is_admin(); -- replaced with "$context['user']['is_admin']" for SMF Admin Permissions
- bgcolor -- placed in style.css as class="bgcolor1" etc.
- textcolor -- placed in style.css as class="textcolor1" etc.
How this page was made:
Copy the code below, create a filename like; newpage.php and save it to your root directory.
If you wish to create several of these pages, you can place them in a folder, but then you will need to change
path/location of the SSI.php file in relation to where you place the newly created pages.
<?php
$ssi_gzip = true; //true--means gzip is turned on.
$ssi_ban = true; //true--means a banned forum user will be banned also in the SSI page.
$ssi_theme = 1; //uses the theme [images, buttons, colors] Specifiy theme ID here.
ob_start(); //is needed not to get errors.
require('forum/SSI.php'); //add ../ if page is outside Root directory
global $context;
$context['page_title'] = "$mbname - Overview"; //needs to go above template_main_above(); to display Page Title
template_main_above();
//Page content goes here
template_main_below();
?>
Loading...