Firefox PHP

Module: Forum Lockdown

Posted by Joe Curia 
All files from this thread

File Name File Size   Posted by Date  
forum_lockdown_v5_2_1_03.zip 10.5 KB open | download Joe Curia 10/30/2009 Read message
dansk.php 3.4 KB open | download KWood 11/13/2008 Read message
german.utf-8.php 3.2 KB open | download mila 06/30/2009 Read message
Module: Forum Lockdown
September 26, 2008 05:22PM
This module allows the admin to redirect all unauthorized access to the login page and to disable registration without template changes. If registration has been disabled, the admin can also allow visitors to register if invited. Invitations can be setup to be sent from the admin, from moderators, or from all users. The admin can also allow visitors to request an invitation. Admin users can also send mass invitations by uploading a csv file containing names and emails. This file should be in the format of name,email without a header row.

The invitation system makes use of the lang\english.php, templates\emerald\invite.tpl, and templates\emerald\invite_step.tpl files to show the various invitation and registration information. You can copy and edit these files as needed for your language or custom templates. Please note the template files have been coded to be compatible with the three templates pre-packaged with Phorum.

This module requires Phorum 5.2.7 or higher.

TODO:

- Add further features as requested or as they pop into my head.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald




Edited 5 time(s). Last edit at 10/26/2009 01:34PM by Joe Curia.
Attachments:
open | download - forum_lockdown_v5_2_1_03.zip (10.5 KB)
Re: Module: Forum Lockdown
October 01, 2008 06:43PM
I have finished v5.2.1.01 of this mod with these changes:

- Added invitation mode with:

-- the ability to enable moderators or users to send invitations

-- the ability for moderator/user invitations to come from their personal email

-- the ability to allow visitors to request an invitation

-- the ability to set the number of days before an invitation expires


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Forum Lockdown
October 01, 2008 07:32PM
Would it be an idea to split the lockdown and the invitation mode into two separate modules? They feel like different functionalities to me, in which case splitting them would provide more specific functionality and possibly easier to maintain code. Unless there's a substantial shared code base, that would be what I'd do.


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Forum Lockdown
October 01, 2008 08:09PM
I knew you would suggest that, I really did. And I thought about doing just that, especially when my hook count hit double digits. However, it doesn't make sense to me to have an invitation mode without disabling registration, so I thought that the two really belong in the same mod. I also debated calling this an Invitation Mode module, but I felt the name would put off admins that only want to disable registration or require authorization before viewing any page.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Forum Lockdown
October 01, 2008 08:31PM
Well, I'd see the separation at "disable registration + invitation mode" and "require authentication for every page". Those are the two functions that I see. I agree that invitation and disabling registration do fit together in a logical way. If I see "lockdown", then I'd expect "require authentication for every page" myself.

And yes, I am pedantic, anal, strict and predictable in my quest for functional separation :)


Maurice Makaay
Phorum Development Team
my blog linkedin profile secret sauce
Re: Module: Forum Lockdown
November 11, 2008 08:28PM
Hi I got an error whenentering settings for this module!:
Parse error: syntax error, unexpected '=', expecting ']' in /hsphere/local/home/madam/madammangor.dk/medlemv2/phorum/mods/forum_lockdown/settings.php on line 13
You are missing the end bracket on line 13 to 19 in settings.php:
changed the code from:

$PHORUM["phorum_mod_forum_lockdown"]["disable_registration" = empty($_POST["disable_registration"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_user_invite" = empty($_POST["enable_user_invite"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_invite" = empty($_POST["enable_invite"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_moderator_invite" = empty($_POST["enable_moderator_invite"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_invitation_request" = empty($_POST["enable_invitation_request"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_user_personal_invite" = empty($_POST["enable_user_personal_invite"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["invitation_expiration" = empty($_POST["invitation_expiration"]) ? 0 : intval($_POST["invitation_expiration"]);

To:
$PHORUM["phorum_mod_forum_lockdown"]["disable_registration"] = empty($_POST["disable_registration"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_user_invite"] = empty($_POST["enable_user_invite"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_invite"] = empty($_POST["enable_invite"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_moderator_invite"] = empty($_POST["enable_moderator_invite"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_invitation_request"] = empty($_POST["enable_invitation_request"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["enable_user_personal_invite"] = empty($_POST["enable_user_personal_invite"]) ? 0 : 1;
$PHORUM["phorum_mod_forum_lockdown"]["invitation_expiration"] = empty($_POST["invitation_expiration"]) ? 0 : intval($_POST["invitation_expiration"]);

And the settingspage worked:-)
Re: Module: Forum Lockdown
November 11, 2008 08:47PM
Wow, no idea how I missed that. Thanks for catching the bug and providing a fix. I have released v5.2.1.02 of this module with your fix.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Re: Module: Forum Lockdown
November 13, 2008 09:11AM
Hi
I have made a danish translation in utf-8 encoding for forum-lockdown.

/Kenneth Wood - KWood
Attachments:
open | download - dansk.php (3.4 KB)
Re: Module: Forum Lockdown
December 02, 2008 03:22PM
Hi there

I have installed the module and unfortunately found a problem.

When I request an invitation as a visitor I get the following message:
"That username/password was not found or is inactive. Please try again"

It is as if an attempt to login had been made.

Try it here:
[www.durhamcityharriers.org.uk]

Regards

Elliott
Re: Module: Forum Lockdown
December 02, 2008 04:03PM
Elliott,

The invitation only mode requires Phorum 5.2.7 or higher. I see that you are on 5.2.6a. I would urge you to upgrade for more important security reasons, but also to make full use of this module. Thank you for bringing this to my attention though. I have added the "require_version" field to the info.txt so that others will not run into the error you did.


Joe Curia (aka Azumandias)
Modules: l0Admin Mass Email00000000l000000Automatic Time Zones000ll.l00000Enhanced Custom Profiles0.00Google Calendar0000l.l000000Post Previews
000000000Admin Security Suite000000000000Check Modules for Upgrades0000External Authentication000000Group Auto-Email00000.00000Private Message Alerts
000000000Attachment Download Counter0000Custom Attachment Icons000ll.ll00Favorite Forums000000.00000Highlighted Search Terms0000Self-Delete Posts Option
000000000Attachment Watermarks0l00000000Custom Language Database00l.l.0Forum Lockdown00000.00000Ignore Forums0000000000000Threaded Tree View
000000000Automatic Message Pruning00.llll.00Easy Color Scheme Manager0l.l00Forum Subscriptions0000lll000Moderated User Group
Templates:lGeneric Integration000000000 0000Simple Rounded000000 00000000Tabbed Emerald
Sorry, only registered users may post in this forum.

Click here to login