lanandpercy
Thu 21 June 2007, 05:09 am GMT +0200
Hi riscphree, e9,
Actually,
SMF has both an API and an SSI written in PHP
If you just need login (without the forum), use the API. In fact you can use the
SMF API as a stand alone authentication script (the same as access_user) by just creating the
SMF Settings.php file and
database... It is pretty simple and adds themes to your web design.
Besides the advantage of themes, you are also ready to transparently add
SMF with no additional configuration of your site. One login and you are good for the site and for the
SWF forum.
In the past we used access_user on most of our non forum sites, until the new
SMF API was released (be sure to download the one from the community as the one in tools is a bit old). Now we are use the new SMF 1.1 API for stand alone logins (ready to add an
SMF forum later).
If you need both a login for your custom pages AND a fantastic forum, load up
SMF! Built in is
SSI.php.
Include that in your custom site and you can post things in your site from your forum (last five post titles, etc., and much more). Plus there are functions for login etc... These are pure simplicity! Again the
SSI.php means your custom built site and the forum only need
one login.
To make it easier they include
ssi_examples.php and
ssi_examples.shtml to show you how to do everything the easy way! It simply rocks!
Sorry, Olaf, I sound like I am raining on access_user's parade and that is not the case, access_user is a great login class... IF that is ALL you need.
HOWEVER... if you are making a custom site and wanting to integrate a great forum, then
SSI.php in
SMF is really the way to go.
Because it is a little hard to find, the best (latest)
SMF API (
api.php) is found at:
http://www.simplemachines.org/community/index.php?topic=158082.0REPLY #2SSI.php is part of
SMF