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

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
  #62  
Old 04-03-2003, 02:37 PM
blippio blippio is offline
 
Join Date: Sep 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #63  
Old 04-20-2003, 02:37 PM
portalguy portalguy is offline
 
Join Date: Feb 2003
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #64  
Old 05-10-2003, 12:23 PM
glo's Avatar
glo glo is offline
 
Join Date: Aug 2002
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
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
  #65  
Old 06-05-2003, 05:01 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it ok with v2.3?
I hope so,, it sound great ... the descrition ...
Reply With Quote
  #66  
Old 06-06-2003, 06:09 AM
Sc0rp Sc0rp is offline
 
Join Date: Jul 2002
Location: Netherlands
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

excellent work! gonna use this.. now just need a login page on none vb pages aswell
Reply With Quote
  #67  
Old 07-14-2003, 01:22 AM
briangrapes briangrapes is offline
 
Join Date: Jul 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #68  
Old 08-26-2003, 05:48 PM
CardMSG CardMSG is offline
 
Join Date: Nov 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #69  
Old 08-26-2003, 05:54 PM
mt_100 mt_100 is offline
 
Join Date: Mar 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #70  
Old 08-28-2003, 02:53 PM
CardMSG CardMSG is offline
 
Join Date: Nov 2002
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #71  
Old 09-01-2003, 10:45 PM
jw791 jw791 is offline
 
Join Date: Jan 2003
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you for the hack.

I had random internet users using my picture uploader, now this should clamp them down!
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 10:03 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.04802 seconds
  • Memory Usage 2,304KB
  • Queries Executed 27 (?)
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
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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