Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Password Non VB Pages Using VB Member Info Details »
Password Non VB Pages Using VB Member Info
Mod Version: 1.00, by Modshack (Member) Modshack is offline
Developer Last Online: May 2002 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 2.2.x Rating: (0 vote - 0 average) Installs: 59
Released: 01 Feb 2002 Last Update: Never Downloads: 137
Not Supported Is in Beta Stage  

This works on ALL VB version

This was created by an Admin (CyberGaf) on my site for the simple reason we wanted to make non vbull pages passworded and available only to members.

The full install details are in the zip file and TBH if you cant get this up and running its time to give up.

This can also be used on html pages I am told but have not tried it.

You can even set which user groups are allowed to view the page.

# Vbulletin GROUP ID's
# default setting = Admin & Super Moderators
#
# 1 Unregistered / Not Logged In
# 2 Registered
# 3 Users Awaiting Email Confirmation
# 4 (COPPA) Users Awaiting Moderation
# 5 Super Moderators
# 6 Administrator
# 7 Moderators
# 8 Banned
# 9 Moderated
# 10 Gold Member
# 11 Platinum Member

Please note the above usergroups are for our forums and therefor will not be available on your forum.

Or by changing usergroupid = '5') to userid ='users id') you can set the script to allow only specific users to view the pages.

This is not so much a hack but a handy little addon and it DOES work.

HM

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Password protect non vb pages (e.g. for admin pages) Rafe vBulletin 3.0 Beta Releases 33 16 Sep 2006 18:11

  #46  
Old 12 Jan 2003, 18:59
svoec svoec is offline
 
Join Date: Mar 2002
this hack works killer!!
thanks --

I'll share the things I found out...

put the require statment above the HTML tag -- if you open this file with front page-- it will screw it up, and you have to fix it back...
Reply With Quote
  #47  
Old 13 Jan 2003, 13:17
mt_100 mt_100 is offline
 
Join Date: Mar 2002
Thank you for the comments, and the tips.

I forgot to note that the new version includes an added feature. I added a column to the user table in the vBulletin database called lastlogin as a date field. Now whenever someone logs into your site that field will be set so you know when they last logged into the non VB areas.
Reply With Quote
  #48  
Old 20 Jan 2003, 01:14
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
Would it be possible to protect an entire folder using this hack? I'm trying to do it with mod_auth_mysql and .htaccess but everytime I enter a username and password, It shows the prompt again, as if ignoring the password. This is what it looks like:

AuthType Basic
AuthUserfile /dev/null
AuthName "Member Access Only"
AuthType Basic
AuthGroupFile /dev/null
AuthMySQLHost localhost
AuthMySQLCryptedPasswords Off
AuthMySQLUser root
AuthMySQLPassword here I put my db password
AuthMySQLDB vbulletin
AuthMySQLUserTable user
AuthMySQLNameField username
AuthMySQLPasswordField password
AuthMySQLGroupField usergroupid
<Limit GET POST>
require group 2 5 8 7 6
</limit>
Reply With Quote
  #49  
Old 20 Jan 2003, 10:29
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
it prompts for password but it won't accept my username and or password. I edited the usergroup to mines and still doesn't accept it.
Reply With Quote
  #50  
Old 20 Jan 2003, 17:49
Aaow AnD wHiTe's Avatar
Aaow AnD wHiTe Aaow AnD wHiTe is offline
 
Join Date: Dec 2001
That's the same thing that happen to us with the htaccess code posted above. Hope someone can help us
Reply With Quote
  #51  
Old 21 Jan 2003, 07:02
desi desi is offline
 
Join Date: Jun 2002
very nice hack

but i'm having a little problem

when the user puts in their user pass on authentification check
i get this back

Unable to execute query.

i have edited global.php in all folders ..

anything i'm missing here ?

thanks
Reply With Quote
  #52  
Old 21 Jan 2003, 13:05
svoec svoec is offline
 
Join Date: Mar 2002
ummm.. ok I assume you are using the authvb.php script
(the people above are talking about .htaccess , and probably shouldn't be in this hack)

what did you add/edit on global.php ?? this hack requires no changes to that file..

Last edited by svoec; 21 Jan 2003 at 13:21.
Reply With Quote
  #53  
Old 22 Jan 2003, 04:18
desi desi is offline
 
Join Date: Jun 2002
i want to link userdb to htaxx without using the mod_auth module ..

is the anyway to do it ??

thanks
Reply With Quote
  #54  
Old 22 Jan 2003, 04:25
svoec svoec is offline
 
Join Date: Mar 2002
NOPE--
not that I am aware of

and actually, i believe you need mod_auth_mysql
Reply With Quote
  #55  
Old 25 Jan 2003, 07:21
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
you don't need auth_mysql ..

I tried to get this hack to work many times, it just won't accept my username/password when the auth box pops up.
Reply With Quote
  #56  
Old 26 Jan 2003, 05:12
svoec svoec is offline
 
Join Date: Mar 2002
You need to read my post in context..

it was a reply to someone that was trying to do a .htaccess from a my-sql database...

if that is what you are trying to do -- you will need the mod_auth_mysql module for it to work.

If you are using the method this hack uses, you won't need it

I think a moderator should clean the .htaccess stuff out of this thead, as it is NOT relevant.
Reply With Quote
  #57  
Old 19 Mar 2003, 22:43
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Ok,

Where exactly does authvb.php need to go?

I put authvb.php and a test page with <?php require('./authvb.php'); ?> in the same directory. When I accessed the test page the first time, the logon box popped up, I logged in, and everything seemed to work fine. Now I can access the page without having to log in. Any suggestions?
__________________
MODern ENGINEuity
Modular Ford Powered Community

Automotive Books, Movies, Games and More!

Last edited by SVTBlackLight01; 10 Apr 2003 at 23:32.
Reply With Quote
  #58  
Old 20 Mar 2003, 13:38
mt_100 mt_100 is offline
 
Join Date: Mar 2002
Well, my hack is session based so if you close the browser it will kill the session.

Otherwise check you php.ini file for the session length and see what is set to, I keep mine set to zero.

I am not sure about all the .htaccess questions. to be honest, this hack is a Windows IIS hack and never was tested on Unix or Apache, but I think it works for Apache on Windows servers.
Reply With Quote
  #59  
Old 03 Apr 2003, 06:26
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
03-19-03 at 10:43 PM SVTBlackLight01 said this in Post #57
Ok,

Where exactly does authvb.php need to go?

I put authvb.php and a test page with <?php require('./authvb.php'); ?> in the same directory. When I accessed the test page the first time, the logon box popped up, I logged in, and everything seemed to work fine. Now I can access the page without having to log in. Any suggestions?
Anybody want to jump in?
Reply With Quote
  #60  
Old 03 Apr 2003, 16:28
blippio blippio is offline
 
Join Date: Sep 2002
SVT- try to logout from vBulletin and closing all browser windows. Then open a browser again, and enter your site; it should prompt you again. If your intention is to have the login always come up, be sure you have the appropriate cookie settings in the user's cp your are accessing your site with. (ie "Remember username and password": set to no, "Browse board w. cookies?": set to no

I am using this hack now to authenticate a small closed-registration board. I have commented out the option for the users to change this in their cp--they don't even see it. I control the cookies, and the access....

works for my application... (though I do have another problem, see next...)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 08:09.

Layout Options | Width: Wide Color: