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

  #61  
Old 03 Apr 2003, 16:37
blippio blippio is offline
 
Join Date: Sep 2002
I am using this hack to control access to a vBulletin board (I also have vBHome installed). It works, but I have one big annoyance:

I get prompted twice for a login. When entering the site, I get the htaccess "style" prompt. Any username and login I use (that's registered on the vBulletin forum) works. But then I get redirected to the vBulletin "not registered" form. When I enter the same login/pass again, only then do I get redirected to the vBHome page.

Shouldn't the data in forms from the first "htaccess style" box be passed to authenticate with Vbulletin? Do I have to have the "browse board w. cookies" set to yes?

Here is another wrinkle: This forum is accessed largely by a group of computers in the same workplace. All of these computers have a login prompt at bootup, and most--if not all--of these computers are accessed with the SAME login and prompt (strange, I know....all the computers are shared). So, when user A logs on to a computer, under this common login, a cookie is set "common@forumsite.com". If user B logs into the forum from the SAME computer at a DIFFERENT TIME (remember, the user "common" is still logged into the computer, but has logged out of vBulletin), user B will still get the "htaccess style" prompt, log in with his unique vBulletin user/pass, and get welcomed to the vBulletin home as user A. Obviously user A's info is in the "common" cookie set on the computer.

Put another way: is it at all possible to have one, unified login (only one "htacess style" prompt) for many forum members (each with a unique vBulletin username/pass) on a single, shared computer, with one "common" computer login?

I'm probably doing something very stupid here....anyone got an idea?

Last edited by blippio; 03 Apr 2003 at 17:01.
Reply With Quote
  #62  
Old 20 Apr 2003, 16:37
portalguy portalguy is offline
 
Join Date: Feb 2003
very nice hack :banana:
But how is it possible to make users who already loggedin in vb, view the "Non-vb" pages without having to log again and visa-versa.

Thanks
Reply With Quote
  #63  
Old 10 May 2003, 14:23
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
04-21-03 at 01:37 AM portalguy said this in Post #62
very nice hack :banana:
But how is it possible to make users who already loggedin in vb, view the "Non-vb" pages without having to log again and visa-versa.

Thanks
Any news on this as I would also like this?
Reply With Quote
  #64  
Old 05 Jun 2003, 19:01
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Real name: Marco
Is it ok with v2.3?
I hope so,, it sound great ... the descrition ...
Reply With Quote
  #65  
Old 06 Jun 2003, 08:09
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
excellent work! gonna use this.. now just need a login page on none vb pages aswell
Reply With Quote
  #66  
Old 14 Jul 2003, 03:22
briangrapes briangrapes is offline
 
Join Date: Jul 2002
Please Help

I have tried using this hack, but when I enter my login information, it just pops up the password box again instead of showing the hidden page. When I hit cancel and give up on entering the info, I get the clear off stoopid message.

Any help, please?

ETA is this the best way to password protect a non-vb page? I feel like I've been sitting here for hours looking for a simple way to just have only board members view a certain non-vb page of my site. I really don't need anything fancy and if it can be done without the popup box, that would probably be better.

Last edited by briangrapes; 14 Jul 2003 at 03:25.
Reply With Quote
  #67  
Old 26 Aug 2003, 19:48
CardMSG CardMSG is offline
 
Join Date: Nov 2002
If the user enters incorrect information, is it possible to have them sent to a "standard" 401 page, or one that's been cutomized? Right now, they're taken to a white page with a message.

We have created custom error pages that attempt to provide more information for the user. For example, the reason they were not able to enter the restricted area was because they were not members of the forum and they would have access to the explanation and how to register or login.

I don't know if this is something complicated, but basically just have it go to the "default" 401 error page, rather than the current message.
Reply With Quote
  #68  
Old 26 Aug 2003, 19:54
mt_100 mt_100 is offline
 
Join Date: Mar 2002
Right now the code for an incorrect user name and password is in the section that starts on line 95 inside that else statement.

All you would have to do is chage that table in the else to a header statement to send them to the page you wanted.
Reply With Quote
  #69  
Old 28 Aug 2003, 16:53
CardMSG CardMSG is offline
 
Join Date: Nov 2002
That makes sense, although I'll have to try to figure out how to do it. My PHP skills are..., well, I don't have any. Can it be made to send them to any page, or just a 401?
Reply With Quote
  #70  
Old 02 Sep 2003, 00:45
jw791 jw791 is offline
 
Join Date: Jan 2003
Thank you for the hack.

I had random internet users using my picture uploader, now this should clamp them down!
__________________
Talk about pets and post pictures at Talk Pets!
Reply With Quote
  #71  
Old 02 Feb 2004, 18:49
99SIVTEC 99SIVTEC is offline
 
Join Date: Nov 2001
Any reason why this wouldn't work with vbulletin 3.0? I glanced through the file real quick and the code seems simple enough and shouldn't connect to anything vb2 specific. I'll try to test it out when I get home if no one else does first.
Reply With Quote
  #72  
Old 04 Feb 2004, 02:18
Timmmmmy Timmmmmy is offline
 
Join Date: Mar 2002
mine is not working with vb 3.0
Reply With Quote
  #73  
Old 05 Feb 2004, 10:34
Timmmmmy Timmmmmy is offline
 
Join Date: Mar 2002
I figured out the problem, i took out the variable for check pwd instead just changed the sql query

Here is the fix to that file


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #74  
Old 05 Feb 2004, 10:44
Timmmmmy Timmmmmy is offline
 
Join Date: Mar 2002

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #75  
Old 08 Feb 2004, 20:38
jw791 jw791 is offline
 
Join Date: Jan 2003
Any chance on posting a full vb3 version? I tried Timmy's hacks but I'm sure that I'm messing something up.

No workie w/vb3
__________________
Talk about pets and post pictures at Talk Pets!
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 22:55.

Layout Options | Width: Wide Color: