Category:Integrating SMF: Difference between revisions From Online Manual

Jump to: navigation, search
(Created page with "There are three basic ways to integrate SMF into your existing website and/or other scripts. # SSI.php can be used if you want to use SMF functions, variables, security, etc on ...")
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
There are three basic ways to integrate SMF into your existing website and/or other scripts.
There are three basic ways to integrate SMF into your existing website and/or other scripts.


# SSI.php can be used if you want to use SMF functions, variables, security, etc on external pages. This includes logins, access, revent posts, etc. This is not an "integration with an external system" so much as displaying and using SMF on pages outside the forum.
# SSI.php can be used if you want to use SMF functions, variables, security, etc. on external pages. This includes logins, access, recent posts, etc. This is not an "integration with an external system" so much as displaying and using SMF content on pages outside the forum. If you do not have a fully functional and established external access system, this is the method to use. You can use SMF security and membergroup permissions to control access to content on external pages.  
# Integration hooks can be used if you want SMF to be the primary system, but you need to pass data to another script in the middle of an SMF process (i.e. new user signing up in SMF registration -> pass the user data to another script, run some more processes on that script and then return to SMF's routines)
# Integration hooks can be used if you want SMF to be the primary system, but you need to pass data to another script in the middle of an SMF process (i.e. new user signing up in SMF registration -> pass the user data to another script, run some more processes on that script, and then return to SMF's routines)
# The API can be used if you want the opposite of the hooks. The external script is the primary system and the API allows you to pass the data collected by that system into SMF's functions and database.
# The API can be used if you want the opposite of the hooks. The external script is the primary system and the API allows you to pass the data collected by that system into SMF's functions and database.
[[Category:Developing SMF]]
[[Category: General SMF]]

Latest revision as of 11:58, 17 June 2013

There are three basic ways to integrate SMF into your existing website and/or other scripts.

  1. SSI.php can be used if you want to use SMF functions, variables, security, etc. on external pages. This includes logins, access, recent posts, etc. This is not an "integration with an external system" so much as displaying and using SMF content on pages outside the forum. If you do not have a fully functional and established external access system, this is the method to use. You can use SMF security and membergroup permissions to control access to content on external pages.
  2. Integration hooks can be used if you want SMF to be the primary system, but you need to pass data to another script in the middle of an SMF process (i.e. new user signing up in SMF registration -> pass the user data to another script, run some more processes on that script, and then return to SMF's routines)
  3. The API can be used if you want the opposite of the hooks. The external script is the primary system and the API allows you to pass the data collected by that system into SMF's functions and database.


Advertisement: