Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Beta Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: 1.00, by Modshack Modshack is offline
Developer Last Online: May 2002 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 01-31-2002 Last Update: Never Installs: 59
Is in Beta Stage  
No support by the author.

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

Show Your Support

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

Comments
  #12  
Old 03-15-2002, 07:20 PM
The Realist's Avatar
The Realist The Realist is offline
 
Join Date: Oct 2001
Location: UK
Posts: 842
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

HM (Modshack) & Raptor.......

You guys get about a bit.

L8tr M8's

Reply With Quote
  #13  
Old 03-15-2002, 07:44 PM
Frank Frank is offline
 
Join Date: Nov 2001
Location: Toronto, Canada
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Mobile
htaccess don't work on windows m8, u need unix/linux
I didn't realise it required .htaccess support
Reply With Quote
  #14  
Old 03-18-2002, 07:41 PM
syion syion is offline
 
Join Date: Mar 2002
Location: Vancouver Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I have moved the site to an apache server from the IIS and am trying to configure the authvb.php file correctly. I have tried it and am getting this error.

Warning: Cannot add header information - headers already sent by (output started at /u/home/wd-vfdbl/public_WWW/login.php:1) in /u/home/wd-vfdbl/public_WWW/dev/security/authvb.php on line 98

Warning: Cannot add header information - headers already sent by (output started at /u/home/wd-vfdbl/public_WWW/login.php:1) in /u/home/wd-vfdbl/public_WWW/dev/security/authvb.php on line 99

Authorization Required - clear off Stoopid!

I am not sure about a few things and if some one can help me I would really appreciate it. Thanks.

1) <?php require('./authvb.php'); ?>

should the ./authvb.php be the absolute path ?

2) Remember to edit which groups have access + can change 'usergroupid'
to 'userid' and make access per user instead of per group.

Where do I make these changes ? Is it in mysql or somewhere else ?

3) I tried to run the script and I got these errors
Reply With Quote
  #15  
Old 03-18-2002, 07:45 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Read the above posts, you need to have Linux/Unix and .htaccess support. It will not run on Windows/IIS servers that I am aware of, another person had this trouble earlier.

SaintDog
Reply With Quote
  #16  
Old 03-18-2002, 07:46 PM
syion syion is offline
 
Join Date: Mar 2002
Location: Vancouver Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Do have to configure an .htaccess file as well ?
Reply With Quote
  #17  
Old 03-18-2002, 08:09 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

All the htaccess is done with vbauth.php, but it does require Linux/Unix & .htaccess before it will work. Windows/IIS will not run it from what I have tried and seen (I tried it myself on windows 2000).

SaintDog
Reply With Quote
  #18  
Old 03-18-2002, 08:14 PM
syion syion is offline
 
Join Date: Mar 2002
Location: Vancouver Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am using Unix and apache Now - Moved the whole site this weekend

Can not get the password vbauth.php working see previous post for problems i encountered.
Reply With Quote
  #19  
Old 03-18-2002, 08:38 PM
SaintDog SaintDog is offline
 
Join Date: Nov 2001
Location: Tennessee
Posts: 1,975
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure you have htaccess enabled? I know it may sound odd, but some hosts do not have it enabled on accounts....sad to say.

SaintDog
Reply With Quote
  #20  
Old 03-18-2002, 08:47 PM
syion syion is offline
 
Join Date: Mar 2002
Location: Vancouver Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can create an htaccess file.

do I create the htaccess file and have it point to the ftpasswd file or some where else.

I was thinking if i had it point to the htpasswd file it would be using the login and pass from with htpasswd file opposed to using the VB database for user and pass.

So in short I can create these files with telent but I just need some instructions - thanks for your help
Reply With Quote
  #21  
Old 03-19-2002, 12:50 AM
syion syion is offline
 
Join Date: Mar 2002
Location: Vancouver Canada
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

:squareeyed: :squareeyed:

SaintDog thanks for all your help !

The errors I was getting were a result of having a space just priot to the <?php require('./authvb.php'); ?>

I removed the spave and bingo everything works. What a great script.

I am still not sure Do if I have to customize anything in this area for the groups ? It is my understanding that these were for a different board and you need to customize them for your own board. Can anyone give a little more detail ?



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

// Formulate the query
if ($encryptedpw)
$chkpw = md5($PHP_AUTH_PW);
else
$chkpw = $PHP_AUTH_PW;

$sql = "SELECT * FROM user WHERE
username = '$PHP_AUTH_USER' AND
password = '$chkpw' AND
(usergroupid = '6' or usergroupid = '5') ";


SaintDog thanks for all your help !
Reply With Quote
Reply


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 03:02 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.05295 seconds
  • Memory Usage 2,307KB
  • 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_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