The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Password Protected Forums (vB3 Style) Details »» | |||||||||||||||||||||||||
-/\-/\-/\-/\-/\-/\-/\-/\-/\-/\-/\-
Password Protected Forums (vB3) By Shaolyen email: John@eovie.com msn: John@eovie.com TESTED ON A FRESH vB 2.3.0 -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/- Introduction ----------------------------------------------------------- This hack is fairly simple in what it does. If a user tries to access a password protected forum, they will be prompted for the password. Once entered correctly they'll be able to browse the forum as normal. It's as simple as that! There are a few extras in this. When a user enters a password and it's verified as being correct, a cookie is sent to their PC containing the password. This will ensure that they don't need to log in every time they access the protected area, until the cookie expires. The cookie timeout time for each protected forum can be set in the AdminCP. (You can choose anything from 1 minute to 1 year.) Password protected forums are denoted by the text "[Password Protected]" tagged on the end of the forum description. If you don't have a forum description for your password protected area, "[Password Protected]" will take its place. Please bear in mind: ? Threads will appear in searches, but the title, author, etc. are all set to "Restricted". A password is needed to access these threads. ? The password in the cookie IS NOT ENCRYPTED. This is for a reason, so the password can be viewable in the AdminCP. If anyone would prefer MD5 encryption in their cookies, let me know. ? In the very near future I will be adding on options to enable MD5 encryption. ? When you specify "Regular Forum Security" in the AdminCP and a password has been entered, that password will not be recorded. Security level, password, and timeout times can be specified when creating or editing a forum. (AdminCP > Forums & Moderators > Add | Modify) Warning ----------------------------------------------------------- BACKUP YOUR DATABASE AND FORUM FILES BEFORE YOU EVEN THINK ABOUT APPLYING THIS HACK! ----------------------------------------------------------- Shameless Plug ----------------------------------------------------------- This hack was written for the fine people at xAviaHosting - www.xaviahosting.com. Pay them a visit (Or I'm a dead man!) ----------------------------------------------------------- Shameful Plea ----------------------------------------------------------- I'm poor as always, I'd be seriously grateful for any donations..! If you have a few spare pennies in that Paypal account, my address is "John@eovie.com" - share the wealth! ----------------------------------------------------------- Screenshots: ----------------------------------------------------------- Password protected indicator Password prompt AdminCP Settings Search results 1 Search results 2 ----------------------------------------------------------- Update 1.0 > 1.1 ----------------------------------------------------------- ? Search blocking enabled. Screenshots: Search results 1 Search results 2 Available here ----------------------------------------------------------- Show Your Support
|
Comments |
#12
|
||||
|
||||
It checks what you enter directly with the password in the database.
To hack in, you'd need to have access to the database. |
#13
|
||||
|
||||
Quote:
|
#14
|
||||
|
||||
Here's a little more info on how this works.
Whenever $forumid (and often $forum[forumid]) has a value, it runs a query which checks to see if security is enabled for that particular forum. (The security field in the "forum" table.) If security is enabled, it will check to see if a cookie exists for that forum containing the password. If there's no cookie with a correct password, the user will be directed to a page where they can enter the password. The password they enter is then checked, and if it matches the one in the database a cookie will be deployed. (And the whole process will start again, but this time the user will be forwarded to the forumdisplay page.) The same applies for the code in showthread.php. |
#15
|
||||
|
||||
The glitch I left in was this line of code (in two places) which gives access to the forum on the second incorrect attempt.
PHP Code:
The security is pretty rock solid. |
#16
|
||||
|
||||
OK, removed those lines,
it works like a dream, thanks Shao but, what is the difference between the security levels? |
#17
|
||||
|
||||
Regular is normal, just like a regular forum. (Not password protected).
Password protected is password protected. |
#18
|
||||
|
||||
that's pretty easy Thanks for the help
|
#19
|
|||
|
|||
WOW this is a nice hack.
/me installs. If there was a Hack of the Month, I'd definately vote this hack for it! Well done! *Tests it and stuff O.o* Dave. |
#20
|
||||
|
||||
wow very cool hack
|
#21
|
||||
|
||||
Excellent hack - i hope this one works because a similar hack was released by one of the vbulletin-germany team with a bug that allows people on online.php to view a thread in a password protected forum... might want to see if that bug is present here?
Regards and nice hack! - miSt |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|