SMFUserIntergration

Summary: Integrates Simple Machines Users into PmWiki
Version: 0.3 (June 18, 2007)
Prerequisites: SMF, PmWiki
Status: Testing
Maintainer: Scotepi

Questions answered by this recipe

How can I have only registered users on my Simple Machines Forum edit PmWiki, and how can I have Forum Administrators administer the Wiki

Install Instructions

  1. Download smfauth.php to cookbook/smfauth.php
  2. Set $SSI, $FormUrl, others are optional
    • $SSI
      • The Path to SSI.php in the SMF Install
    • $FormUrl
      • The full http://example.com/forum forum URL, no / at the end
  3. Edit Site.EditForm in PmWiki
    1. Find
      • (:input e_author:)
    2. Replace With
      • {$AuthId}
  4. Add require_once("$FarmD/cookbook/smfauth.php"); to the end of local/config.php

Variables

  • $SSI
    • The Path to SSI.php in the SMF Install
  • $FormUrl
    • The full http://example.com/forum forum URL, no / at the end
  • $AdminUsers
    • a array of none administrative users that you want to have wiki admin rights
  • $AdminGroups
    • a array of group numbers that you want to have administrator access
  • $ShowLogin
    • a bool (0/1/false/true) if you want to show the login forum along with the block message for guests
  • $AdminGroup
    • Admin user group, remember the @
  • $UserGroup
    • Reguler user group, remember the @
  • $OverallPassword
    • Password for disabled function

Notes

  1. $AdminGroups is still untested
  2. Expanding User Privileges
  3. Expanding Protection
    • In order to add more protection add more action=var variables to $ProtectActions and then set a $DefaultPasswords['var'] for Guest, User and Admin
    • You can also add '' to $ProtectActions if you want require people be logged in to use PmWiki
  4. As far as I can tell both PmWiki and SMF need to be on the same domain, ex. example.com/forum and example.com/wiki
  5. This was written with and tested for PmWiki 2.2.0-b57 and SMF 1.1.2

Release Notes

  • 0.3 (June 18, 2007)
    • Fixed a quote bug caused by SSI
    • Added a few more protected actions
  • 0.2 (June 17, 2007)
    • Group Support
    • In PmWiki Check
    • Overall Password
  • 0.1 (June 16, 2007)
    • First Release

Comments

$admingroups dosnt work because in one spot you have it as $adminsgroups and the other you have it as $admingroup -Peter Oct 29th 2009

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.