Added install instructions
Jeremy D

Jeremy D commited on 2011-09-28 09:41:07
Showing 2 changed files, with 68 additions and 0 deletions.

... ...
@@ -0,0 +1,45 @@
1
+Installation
2
+
3
+Requires:
4
+Working SMF 2.0+ installation
5
+Working TBG 3.1 installation
6
+PHP 5.3+ (Per TBGs requirements)
7
+
8
+Definitions:
9
+TBG = The Bug Genie
10
+SMF = Simple Machines Forum
11
+
12
+1. Download the TBG SMF Auth.
13
+
14
+2. Connect to your remote server and navigate to your TBG modules location.
15
+
16
+3. Create a smf_auth folder.
17
+
18
+4. Upload contents of TBG SMF Auth to this folder.
19
+
20
+5. Navigate on your browser to your TBG location
21
+
22
+6. Click your user -> Configure TBG -> Modules
23
+
24
+7. Scroll down to uninstalled modules.  Choose the SMF Auth module and click install
25
+
26
+8. In the modules list, click the configure settings icon (gears image).
27
+
28
+9.
29
+	a. Define the path to your SSI location.
30
+	b. The script will auto detect no key generated and auto generate one, you are welcome to change the private key.  The private key helps protect the passwords the SMF Auth generates.
31
+	c. Define login groups.  Changing this will only allow those selected login groups to log into TBG.
32
+	d. Define administrative groups.  Choosing these SMF groups will make members of these groups have TBG Administrator access.
33
+	e. Define enabled access groups.  Choose which groups you want to configure access controls to.  Such as a group on SMF that should be developer access on TBG.
34
+
35
+10. Save these settings and return to configure the enabled access groups.
36
+
37
+11. The group on the left is the SMF group, while the ones on the right are TBG teams.  Simply select which groups these SMF groups should grant access to.
38
+The SMF Auth will check the users SMFs groups based on which ones are enabled, if they are in this SMF group, it will add them to these TBG teams.
39
+
40
+12. Save and navigate to Authentication
41
+
42
+13. Change Authentication backend to SMF Authentication and save your settings.
43
+
44
+14. At this point you may be logged out, Simply log back in and hopefully everything worked at it should.
45
+
... ...
@@ -0,0 +1,23 @@
1
+Below is a diff of the core templates header file.  This changes the login to just be a simple link requiring no entering of the users login details.  This works off the SMF cookie and assuming the user is logged into SMF, authentication is automatic.
2
+
3
+
4
+--- /core/templates/header.inc.php	2011-08-20 13:42:40.000000000 -0700
5
++++ /core/templates/header.inc.php	2011-09-16 12:35:09.000000000 -0700
6
+@@ -415,7 +415,7 @@
7
+ 												</td>
8
+ 												<td id="header_username" valign="middle">
9
+ 													<?php if ($tbg_user->isGuest()): ?>
10
+-														<a href="javascript:void(0);" onclick="showFadedBackdrop('<?php echo make_url('get_partial_for_backdrop', array('key' => 'login')); ?>')"><?php echo __('You are not logged in'); ?></a>
11
++														<a href="<?php echo make_url('smf_login'); ?>"><?php echo __('You are not logged in'); ?></a>
12
+ 													<?php else: ?>
13
+ 														<?php $name = (TBGContext::getUser()->getRealname() == '') ? TBGContext::getUser()->getBuddyname() : TBGContext::getUser()->getRealname(); ?>
14
+ 														<?php echo link_tag(make_url('dashboard'), tbg_decodeUTF8($name)); ?>
15
+@@ -430,7 +430,7 @@
16
+ 										</table>
17
+ 										<div class="rounded_box blue tab_menu_dropdown user_menu_dropdown shadowed">
18
+ 											<?php if ($tbg_user->isGuest()): ?>
19
+-												<a href="javascript:void(0);" onclick="showFadedBackdrop('<?php echo make_url('get_partial_for_backdrop', array('key' => 'login')); ?>')"><?php echo image_tag('icon_login.png').__('Login'); ?></a>
20
++												<a href="<?php echo make_url('smf_login'); ?>"><?php echo image_tag('icon_login.png').__('Login'); ?></a>
21
+ 												<?php if (TBGSettings::isRegistrationAllowed()): ?>
22
+ 													<a href="javascript:void(0);" onclick="showFadedBackdrop('<?php echo make_url('get_partial_for_backdrop', array('key' => 'login', 'section' => 'register')); ?>');"><?php echo image_tag('icon_register.png').__('Register'); ?></a>
23
+ 												<?php endif; ?>
0 24