Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Beta Releases

Reply
 
Thread Tools
Password protect non vb pages (e.g. for admin pages) Details »»
Password protect non vb pages (e.g. for admin pages)
Version: 1.00, by Rafe Rafe is offline
Developer Last Online: Mar 2011 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 05-08-2004 Last Update: Never Installs: 24
Is in Beta Stage  
No support by the author.

This is not really a hack just a handy piece of code. You can use this to password protect individual pages. The username and passwords are taken from the vBulletin database.

Currently this is set to allow only usergroupsid 5 and 6 (admin and super moderators) through [example use as admin area protection]. This could be changed though to allow anyone through if registered, or for specific usergroups etc.

The code is in authvb.php
An example is give in authtest.php

Hope this is of use to some people. If there's some interest I'll tidy it up a bit.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 08-16-2004, 12:19 AM
Code Monkey's Avatar
Code Monkey Code Monkey is offline
 
Join Date: May 2004
Posts: 1,080
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, it would be easier to change user groups if you had something like this.

PHP Code:
$usergroups '2,6';

$sql "SELECT * FROM vb_user WHERE username = '".$_SERVER['PHP_AUTH_USER']."' AND usergroupid IN ($usergroups)"
Reply With Quote
  #23  
Old 08-22-2004, 11:44 PM
jblackburn jblackburn is offline
 
Join Date: Aug 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was happy to get this working, but then found that if you come in via a forum login and then move to the page protected with the script, it prompts you for username and pw. Shouldn't it know that you are already logged in?
Reply With Quote
  #24  
Old 08-22-2004, 11:48 PM
Mr. HillBilly Mr. HillBilly is offline
 
Join Date: Oct 2003
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anychance of making the script require login to download stuff?
Reply With Quote
  #25  
Old 10-22-2004, 08:17 PM
sketchy sketchy is offline
 
Join Date: Oct 2004
Location: North London, England
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

i have downloaded this hack & when i go to log in it just reappears with the log in box.

My MySQL info is correct & i am linking to the correct file & im entering the correct details...

Help

Rick
Reply With Quote
  #26  
Old 10-28-2004, 04:13 PM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works great thanks
Reply With Quote
  #27  
Old 10-28-2004, 04:51 PM
freeshares1 freeshares1 is offline
 
Join Date: Mar 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the only problem is that i can not get it to work with secondary usergroups only primary is this possible?
Reply With Quote
  #28  
Old 12-05-2004, 10:04 AM
MJM MJM is offline
 
Join Date: Jun 2002
Posts: 185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm trying out a program - Webscriber which creates an easy subscribe/unsubscribe page for email-lists.(list with check-boxes)
I'm using this with ezmlm,.(by entering ezmlm announcement list addys in the Forum Manager - rcv all new posts) for memers of our forum who want the ability to subscribe/unsubscribe to `Receive all Posts per Forum'

Basically I need the Webscriber page accessible only to members...

Will this do it?

Thanks,
Mark
Reply With Quote
  #29  
Old 01-19-2005, 10:51 PM
mikeycuk mikeycuk is offline
 
Join Date: Mar 2004
Location: Manchester
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

I have a problem with the script. I had it working fine with VB2 but when I upgraded to VB3 it doesn't seem to work. It keeps on asking for my login details and after 3 attempts tells me that Authorization is required lol.

Can anyone shed any light on what I am doing wrong?
I have also tried the suggestion by JumpD but that made no difference

Thanks in advance
Reply With Quote
  #30  
Old 05-29-2005, 01:41 AM
Chrisqo Chrisqo is offline
 
Join Date: Apr 2005
Location: England
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I might of made an idiot of myself but I don't know much about this kind of thing... I get this.

Quote:
Warning: main(./authvb3.php): failed to open stream: No such file or directory in /**/local/home/**/**/authtest.php on line 1

Warning: main(./authvb3.php): failed to open stream: No such file or directory in /**/local/home/**/**/authtest.php on line 1

Fatal error: main(): Failed opening required './authvb3.php' (include_path='.:/usr/local/lib/php') in /**/local/home/**/**/authtest.php on line 1
Reply With Quote
  #31  
Old 08-25-2005, 12:10 AM
ZGeek ZGeek is offline
 
Join Date: Jan 2003
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have this working on 3.0.7?
Reply With Quote
Reply

Thread Tools

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

Forum Jump


All times are GMT. The time now is 08:11 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06830 seconds
  • Memory Usage 2,297KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete