Beta-[6.3] Password Protected Forums 1.0 - 08/12/2003 5:16 AM
Mod Name / Version: Password Protected Forums 1.0
Description: This will allow you to password protect specific forums - similar to UBB.Classic.
Features:
Working Under: UBB.Threads 6.3
Mod Status: Beta
Any pre-requisites: none
Author(s): JoshPet of www.JoshuaPettit.com
Date: 08/11/03
Credits: Commissioned by JC for http://www.roleplayworlds.com
Files Altered: /admin/viewboard.php, /admin/doeditboard.php, /admin/createboard.php, /admin/docreate.php, postlist.php, showflat.php, showthreaded.php, newpost.php, newreply.php, printthread.php, logout.php, ubbt.inc.php, ubbthreads.php, dosearch.php, /languages/****/admin/generic.php, /languages/****/ubbthreads.php, /languages/****/dosearch.php
New Files: boardlogin.php, doboardlogin.php, /templates/default/boardlogin.tmpl, /languages/****/boardlogin.php
Database Altered: Bo_Password field added to w3t_Boards table
Info/Instructions: Optional variable added to the config file to offer access without passwords to administrators and/or moderators.
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Description: This will allow you to password protect specific forums - similar to UBB.Classic.
Features:
- You can define the password to a forum when you create or edit the forum
- You can remove the password from a forum simply by editing the forum.
- Passwords are safe and secure - same as Threads using one way MD5 encryption
- If a user visits a password protected forum, it'll prompt them for the password then return them to the forum.
- On the password page for the forum it'll tell them if they need access to the forum or are having trouble logging in to contact the moderators of that forum. Then it will list links to all the moderators of the forum.
- After they've entered the correct password, it'll redirect them back to where they were.
- If they use a "backside" link to showflat, showthreaded, printthread, postlist, printthread, newpost or newreply attempting to get access to the forum, it'll still prompt them for the password, then redirect them to where they were trying to go
- The encrypted password for the forum is stored in a cookie - so they need only enter it once. And as long as they don't logout they'll have access and see all threads there so they won't need to enter the password repeatedly.
- I've made this work with cookies or sessions, however with sessions a cookie is used to track access to the password protected forums throughout the length of the browser session.
- If you allow the guest (unregistered) group to have access to and view the forum, they can access with the password as well. The cookie giving access will last the length of the browser session.
- I've added an extra config variable so you can determine if everyone must enter the password to view the forum, or if admins, or admins & moderators are exempt from having to enter the password. This is handy if you want Admins to have total access, so they can monitor the posts without having to know the password.
- Moderators can edit their own forums from the Admin menu - and change the password there if they wish.
- If you need to "lock everyone out" and start fresh, changing the password to a forum will require everyone to reenter the new password, even if they already have a cookie for the forum.
- If the user has not yet entered the password for a protected forum, the main index will hide the subject of the Last Post and name of the last poster in the Last Post column indicating that the forum is password protected. Once they enter the password for this forum, they will see this information as normal.
- If the user has not yet entered the password for a protected forum, any search results including "posts by this user" and "posts within the last x hours/days" will hide the subject of the post and the posters name, indicating it's a password protected forum. Once they enter the password for this forum, this information will appear as normal.
- All text strings are in language files.
- The Forum login page is templated.
Working Under: UBB.Threads 6.3
Mod Status: Beta
Any pre-requisites: none
Author(s): JoshPet of www.JoshuaPettit.com
Date: 08/11/03
Credits: Commissioned by JC for http://www.roleplayworlds.com
Files Altered: /admin/viewboard.php, /admin/doeditboard.php, /admin/createboard.php, /admin/docreate.php, postlist.php, showflat.php, showthreaded.php, newpost.php, newreply.php, printthread.php, logout.php, ubbt.inc.php, ubbthreads.php, dosearch.php, /languages/****/admin/generic.php, /languages/****/ubbthreads.php, /languages/****/dosearch.php
New Files: boardlogin.php, doboardlogin.php, /templates/default/boardlogin.tmpl, /languages/****/boardlogin.php
Database Altered: Bo_Password field added to w3t_Boards table
Info/Instructions: Optional variable added to the config file to offer access without passwords to administrators and/or moderators.
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.