Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Mod Name / Version: Password Protected Forums 1.0

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.


Attachments

Sponsored Links
Entire Thread
Subject Posted By Posted
Beta-[6.3] Password Protected Forums 1.0 JoshPet 08/12/2003 5:16 AM
Re: Beta-[6.3] Password Protected Forums 1.0 jluerken 08/12/2003 8:09 AM
Re: Beta-[6.3] Password Protected Forums 1.0 AKD96 08/12/2003 2:29 PM
Re: Beta-[6.3] Password Protected Forums 1.0 JoshPet 08/12/2003 5:52 PM
Re: Beta-[6.3] Password Protected Forums 1.0 jluerken 08/12/2003 9:03 PM
Re: Beta-[6.3] Password Protected Forums 1.0 JoshPet 08/12/2003 9:10 PM
Re: Beta-[6.3] Password Protected Forums 1.0 jluerken 08/13/2003 2:19 PM
Re: Beta-[6.3] Password Protected Forums 1.0 jluerken 08/13/2003 3:05 PM
Re: Beta-[6.3] Password Protected Forums 1.0 JoshPet 08/13/2003 8:27 PM
Re: Beta-[6.3] Password Protected Forums 1.0 jluerken 09/19/2003 11:01 AM
Re: Beta-[6.3] Password Protected Forums 1.0 AdmiralS3 12/12/2004 11:12 AM
Re: Beta-[6.3] Password Protected Forums 1.0 JoshPet 12/13/2004 10:18 AM
Re: Beta-[6.3] Password Protected Forums 1.0 AdmiralS3 12/17/2004 12:24 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)