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

  #91  
Old 06 Feb 2006, 18:44
Avalon111's Avatar
Avalon111 Avalon111 is offline
 
Join Date: Dec 2004
Real name: chris
Originally Posted by blkthndr
These are the only lines I changed and it works for me with 3.0.0 Gold:

// Formulate the query
// Get rid of these 4 lines or comment them out:
# if ($encryptedpw)
# $chkpw = md5($PHP_AUTH_PW);
# else
# $chkpw = $PHP_AUTH_PW;
// Keep this line
$sql = "SELECT * FROM user WHERE
// Keep this line
username = '$PHP_AUTH_USER' AND
// get rid of this line
# password = '$chkpw' AND
// add this line
password = MD5(CONCAT(MD5('$PHP_AUTH_PW'), salt)) AND usergroupid = '6'";
working like a charm with vb3.5.0
Reply With Quote
  #92  
Old 07 Feb 2006, 07:25
Avalon111's Avatar
Avalon111 Avalon111 is offline
 
Join Date: Dec 2004
Real name: chris
i have altered the php file to easiely add more groups.

you can delete groups that must not have the permission to enter the page by deleting or usergroupid = 'x' .
to add a group add one or usergroupid = 'x' .

In this Line.

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

Tested with vb 3.5.0
Attached Files
File Type: php authvb.php (2.9 KB, 24 views)
Reply With Quote
  #93  
Old 23 Feb 2006, 19:36
TimL TimL is offline
 
Join Date: Feb 2006
authvb.php looks like just the thing I need, but I've been tearing my hair out trying to get it to work on my server. After reading through the whole of this thread, I finally found the hack which should make it work on 3.5.x. My select statement now looks like this:


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

My test page is finding the script, as an .htaccess-type box pops up. However, when I enter a username and password it just presents me with an empty username/password box again. I've tried it with several different username/password combinations and checked that those usernames belong to one of the specified usergroupids.

Any ideas on what I should try next?

-- Tim L
Reply With Quote
  #94  
Old 14 Jun 2006, 23:57
s.blair s.blair is offline
 
Join Date: Jan 2006
Anyone got this working on v3.5.4? or have a better/similar solution to reccommend?
Reply With Quote
  #95  
Old 16 Sep 2006, 18:01
Avalon111's Avatar
Avalon111 Avalon111 is offline
 
Join Date: Dec 2004
Real name: chris
tested with vb 3.6.1 no longer working here.
Reply With Quote
  #96  
Old 20 Nov 2006, 14:23
rubke rubke is offline
 
Join Date: Nov 2006
would like to have it working on a windows server (so no htaccess)
just with a normal login box or auto login (using cookies)
anybody knows how to check if an user is already authenticated in its session ?
Reply With Quote
  #97  
Old 03 Feb 2007, 16:37
PnL PnL is offline
 
Join Date: Dec 2004
What's the latest word on this mod, or a mod which does a similar thing? I want to use the vBulletin user/password data set to protect other files on my website.
Reply With Quote
  #98  
Old 05 Feb 2007, 23:24
AKapadia AKapadia is offline
 
Join Date: Jan 2006
Anyone can help me with 3.6.x ? please ?
Reply With Quote
  #99  
Old 06 Feb 2007, 05:32
PnL PnL is offline
 
Join Date: Dec 2004
Head over to here:

http://www.vbulletin.org/forum/showthread.php?t=108026

Or if you prefer a more simple solution, here:

http://www.vbulletin.org/forum/showthread.php?t=132996

Both are great solutions that are working very well for me on 3.6.x. Thanks to Bill for the nice mod.
Reply With Quote
  #100  
Old 08 Jun 2007, 11:59
dartho dartho is offline
 
Join Date: Sep 2005
working under 3.5.4
Reply With Quote
  #101  
Old 21 Jun 2007, 15:22
Medina's Avatar
Medina Medina is offline
 
Join Date: Oct 2006
*bump*
Reply With Quote
  #102  
Old 22 Jun 2007, 11:26
dartho dartho is offline
 
Join Date: Sep 2005
What are you bumping?
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 23:13.

Layout Options | Width: Wide Color: