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
  #52  
Old 01-21-2003, 05:02 AM
desi desi is offline
 
Join Date: Jun 2002
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice hack

but i'm having a little problem

when the user puts in their user pass on authentification check
i get this back

Unable to execute query.

i have edited global.php in all folders ..

anything i'm missing here ?

thanks
Reply With Quote
  #53  
Old 01-21-2003, 11:05 AM
svoec svoec is offline
 
Join Date: Mar 2002
Location: KY
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ummm.. ok I assume you are using the authvb.php script
(the people above are talking about .htaccess , and probably shouldn't be in this hack)

what did you add/edit on global.php ?? this hack requires no changes to that file..
Reply With Quote
  #54  
Old 01-22-2003, 02:18 AM
desi desi is offline
 
Join Date: Jun 2002
Posts: 67
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i want to link userdb to htaxx without using the mod_auth module ..

is the anyway to do it ??

thanks
Reply With Quote
  #55  
Old 01-22-2003, 02:25 AM
svoec svoec is offline
 
Join Date: Mar 2002
Location: KY
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NOPE--
not that I am aware of

and actually, i believe you need mod_auth_mysql
Reply With Quote
  #56  
Old 01-25-2003, 05:21 AM
Sebastian's Avatar
Sebastian Sebastian is offline
 
Join Date: Oct 2002
Location: America
Posts: 488
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you don't need auth_mysql ..

I tried to get this hack to work many times, it just won't accept my username/password when the auth box pops up.
Reply With Quote
  #57  
Old 01-26-2003, 03:12 AM
svoec svoec is offline
 
Join Date: Mar 2002
Location: KY
Posts: 45
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You need to read my post in context..

it was a reply to someone that was trying to do a .htaccess from a my-sql database...

if that is what you are trying to do -- you will need the mod_auth_mysql module for it to work.

If you are using the method this hack uses, you won't need it

I think a moderator should clean the .htaccess stuff out of this thead, as it is NOT relevant.
Reply With Quote
  #58  
Old 03-19-2003, 08:43 PM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok,

Where exactly does authvb.php need to go?

I put authvb.php and a test page with <?php require('./authvb.php'); ?> in the same directory. When I accessed the test page the first time, the logon box popped up, I logged in, and everything seemed to work fine. Now I can access the page without having to log in. Any suggestions?
Reply With Quote
  #59  
Old 03-20-2003, 11:38 AM
mt_100 mt_100 is offline
 
Join Date: Mar 2002
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, my hack is session based so if you close the browser it will kill the session.

Otherwise check you php.ini file for the session length and see what is set to, I keep mine set to zero.

I am not sure about all the .htaccess questions. to be honest, this hack is a Windows IIS hack and never was tested on Unix or Apache, but I think it works for Apache on Windows servers.
Reply With Quote
  #60  
Old 04-03-2003, 04:26 AM
SVTBlackLight01's Avatar
SVTBlackLight01 SVTBlackLight01 is offline
 
Join Date: Jan 2003
Location: Texas
Posts: 504
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
03-19-03 at 10:43 PM SVTBlackLight01 said this in Post #57
Ok,

Where exactly does authvb.php need to go?

I put authvb.php and a test page with <?php require('./authvb.php'); ?> in the same directory. When I accessed the test page the first time, the logon box popped up, I logged in, and everything seemed to work fine. Now I can access the page without having to log in. Any suggestions?
Anybody want to jump in?
Reply With Quote
  #61  
Old 04-03-2003, 02:28 PM
blippio blippio is offline
 
Join Date: Sep 2002
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SVT- try to logout from vBulletin and closing all browser windows. Then open a browser again, and enter your site; it should prompt you again. If your intention is to have the login always come up, be sure you have the appropriate cookie settings in the user's cp your are accessing your site with. (ie "Remember username and password": set to no, "Browse board w. cookies?": set to no

I am using this hack now to authenticate a small closed-registration board. I have commented out the option for the users to change this in their cp--they don't even see it. I control the cookies, and the access....

works for my application... (though I do have another problem, see next...)
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 02: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.05070 seconds
  • Memory Usage 2,304KB
  • 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
  • (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_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