Cookbook /
SMFUserIntergration
Summary: Integrates Simple Machines Users into PmWiki
Version: 0.3 (June 18, 2007)
Status: Testing
Maintainer: Scotepi
Categories: Authentication, Administration
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
- Download smfauth.php to cookbook/smfauth.php
- 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
- $SSI
- Edit Site.EditForm in PmWiki
- Find
- (:input e_author:)
- Replace With
- {$AuthId}
- Find
- 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
$AdminGroupsis still untested- Expanding User Privileges
$DefaultPasswords['edit'] = '*'; means that edit is blocked$DefaultPasswords['edit'] = ''; means that edit is unblocked
- Expanding Protection
- In order to add more protection add more action=var variables to
$ProtectActionsand then set a$DefaultPasswords['var'] for Guest, User and Admin - You can also add '' to
$ProtectActionsif you want require people be logged in to use PmWiki
- In order to add more protection add more action=var variables to
- 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
- 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.