vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Deluxe vB User login and access control on non vB pages (https://vborg.vbsupport.ru/showthread.php?t=108026)

erinys 01-29-2007 02:21 PM

ok disregard the message above, i took the test.php and the basic code, that worked fine.
so i copied only the php lines into my template on the spot where it was, and voila, it started working again aswell. :S

very weird, but at least it works again yay :)

Billspaintball 01-30-2007 01:53 AM

Quote:

Originally Posted by erinys (Post 1169824)
so i copied only the php lines into my template on the spot where it was, and voila, it started working again aswell. :S

very weird, but at least it works again yay :)

Heh...
Ive done stuff similar to that before too. :)

PnL 02-05-2007 02:00 AM

How do you allow multiple groups access? I tried separating group IDs by commas but that doesn't seem to work.

Also, I'm assuming that only primary groups are looked at? What if I want to assign a special group permission to certain pages without changing their primary group ID?

Billspaintball 02-05-2007 10:32 AM

Quote:

Originally Posted by PnL (Post 1174906)
How do you allow multiple groups access? I tried separating group IDs by commas but that doesn't seem to work.

You need to do it this way
Code:

if ($vbulletin->userinfo['usergroupid'] == '25' 
    or $vbulletin->userinfo['usergroupid'] == '26' 
    or $vbulletin->userinfo['usergroupid'] == '27'
)


Quote:

Also, I'm assuming that only primary groups are looked at? What if I want to assign a special group permission to certain pages without changing their primary group ID?
I think so...
It should just be a matter of checking their secondary group membership like in the above manner.
I think that may be $vbulletin->userinfo['membergroupids'] but Im not sure (havent tried it)

PnL 02-05-2007 02:23 PM

Cool - thanks!

How about if I want to control files from being accessed by members who are currently logged in - is there a way to set this up? If the URL of the file is known the method in this thread won't protect those files from being accessed by "non-members", since it only controls what is displayed (like URL/links). Is there a way to have the log-in checked before the file is accessed? I'm guessing a dynamic URL/link would be required which needs to be generated based on whether the user is logged-in or not. Is this possible?

Billspaintball 02-05-2007 09:39 PM

Quote:

Originally Posted by PnL (Post 1175241)
Cool - thanks!

How about if I want to control files from being accessed by members who are currently logged in - is there a way to set this up? If the URL of the file is known the method in this thread won't protect those files from being accessed by "non-members", since it only controls what is displayed (like URL/links). Is there a way to have the log-in checked before the file is accessed? I'm guessing a dynamic URL/link would be required which needs to be generated based on whether the user is logged-in or not. Is this possible?

Thats outside the scope of this hack.

You can do this by playing with your httaccess file.
Ive seen it done on several sites before.

This hack here https://vborg.vbsupport.ru/showthread.php?t=61507 is for vB 3.0 but should give you an idea oh now it all works.

Hope this helps.

PnL 02-06-2007 03:34 AM

I figured as much. I'm looking at the rewrite mod that comes with Apache (?). I'll have to do a little more research to figure out what will work for me.

Thanks for the great hack/mod Bill, it works great on my site.

Mysticales 02-18-2007 02:28 AM

Hey just posting this here incase others were always interested in using this login script and vbexternal together. =)

https://vborg.vbsupport.ru/showpost....&postcount=399

erinys 02-23-2007 11:41 AM

Bill.. i had a big problem this morning.

When i entered my site i thought it was down, it was 100% 404 page (page not found) so i was freaking out and allready submitting a ticket to my host when my GF went behind the pc and could enter the site and started movign onto the forum

So i went to domain.nl/community (my forum url) and saw the following message: (your password is more then 180 days old, set a new pasword here)

After i did that, my frontpage went normal again, but before i did that, i checked and deleted the code from from this plugin the template to see of it was this plugin wich made the entire page it was loaded to a 404, and it was. :(

could you check into this please? cause it can ultimately make your site down for everyone a member longer then 180 days :s

Edwin

Billspaintball 02-26-2007 04:23 AM

Quote:

Originally Posted by erinys (Post 1188994)
Bill.. i had a big problem this morning.

When i entered my site i thought it was down, it was 100% 404 page (page not found) so i was freaking out and allready submitting a ticket to my host when my GF went behind the pc and could enter the site and started movign onto the forum

So i went to domain.nl/community (my forum url) and saw the following message: (your password is more then 180 days old, set a new pasword here)

After i did that, my frontpage went normal again, but before i did that, i checked and deleted the code from from this plugin the template to see of it was this plugin wich made the entire page it was loaded to a 404, and it was. :(

could you check into this please? cause it can ultimately make your site down for everyone a member longer then 180 days :s

Edwin

Is there a password expiry time setting in vB or is that part of another hack you have installed?
Anyhow, I will have a look at it when I get home.


All times are GMT. The time now is 10:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01426 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete