PDA

View Full Version : [beta release] Forum Passwords


JamesUS
29 Mar 2001, 19:27
Okay I've seen a lot of demand for this so decided to give it a shot. It is still in BETA so please don't use it without taking full backups etc! I will release a final version in a week or so.

It was developed on v2 beta 3 but I would imagine it would work on any v2 beta.



1. Add a field to the forum table called "password". Make it CHAR of 50 characters. You can also run this SQL statement:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




forumdisplay.php
Put this on line 33:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



showthread.php
Insert on line 114:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



admin/forum.php
Line 94:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Change line 129 from:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Change line 119 from:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------


to


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Insert on line 194:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Change line 242 from:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



to



Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Templates
Add a template called error_passwordrequired. In it should be this:

A password is required to enter this forum. Please enter it below: <br>
<form action="forumdisplay.php" method="POST">
<input type="password" name="password">
<br>
<input type="hidden" name="action" value="dopassword">
<input type="hidden" name="forumid" value=$foruminfo[forumid]>
<input type="submit" value="Submit">
</form>

29 Mar 2001, 19:37
Very Nice! This will come in very handy....thx James...

29 Mar 2001, 20:11
That make very long time than we wait that!!
Thx very much!!

RaMMSTeiN
21 Jun 2001, 10:47
Originally posted by JamesUS
[B]
1. Add a field to the forum table called "password". Make it CHAR of 50 characters. You can also run this SQL statement:


Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------




i have done everything but how do that?? ;) above?? :confused:

kicks
21 Jun 2001, 13:15
You can use phpmyadmin or do it from command line if you have shell access to your server :)

RaMMSTeiN
21 Jun 2001, 18:51
where can i find the PHPadmin?? or the commandline shell....

im just started
a guy had setup our forum, so im a newbee LOL:D

JamesUS
21 Jun 2001, 20:03
Do you have telnet or SSH access to your host?

The Prohacker
21 Jun 2001, 20:21
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------



Put this in a file called pass-install.php
and upload it to your admin dir, now call it from your browser to install the sql for this hack, after installed, delete pass-install.php.

Hopefully this will help

RaMMSTeiN
21 Jun 2001, 20:57
Originally posted by JamesUS
Do you have telnet or SSH access to your host?
what is that???
i have a normal 56 K modem, a ISDN line & and a cable modem?? do i have one of the asked things??? ;)

thnx prohacker

JaDy
22 Jun 2001, 08:53
is that working for version 1.1.4 too ?

JamesUS
22 Jun 2001, 19:01
I haven't tried but I doubt it, you'll need to upgrade to 2.0.x

briguy617
25 Jun 2001, 03:53
Is there a final version of this that works with v2.0.0? I tried this, but the line numbers are not accurrate. Or could someone post what is supposed to come immediatly before each of the lines that are supposed to be inserted? Thanks!

RaMMSTeiN
26 Jun 2001, 10:34
Originally posted by briguy617
Is there a final version of this that works with v2.0.0? I tried this, but the line numbers are not accurrate. Or could someone post what is supposed to come immediatly before each of the lines that are supposed to be inserted? Thanks!

nope wont work... tryed it also.. :(
but thnx anyway.. for trying.. jamesus

mjames
27 Jun 2001, 18:27
Thanks, James. I will be trying this out and soon as it is finalized and not in beta anymore. Hurry up! :D ;)

glenv
27 Jun 2001, 20:42
How about telling us what this does so we can get excited about it too?

InvictuZ
01 Jul 2001, 18:46
I REALLY NEED THIS FOR 2.0!!!!!!!!!!!!

MrLister
02 Jul 2001, 20:00
how much longer before the auctual one is out?

joebob
03 Jul 2001, 00:22
need one for 2.01!!

Hobbes
15 Feb 2003, 16:59
is this Full Released yet??? i cant wait :D

Dean C
17 Feb 2003, 16:13
No. But someone released a hack similar but it has bugs that were never fixed.

- miSt

McDohl
14 Apr 2003, 14:16
Hey all.

Have a slight problem with this hack. I've done everything it wants but when I try to specify a password it just won't remember it and doesn't prompt me for a password when I try to go into the forum I just placed a password on.

Any ideas? Any help would be appreciated. :)