![]() |
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 :) |
Quote:
Ive done stuff similar to that before too. :) |
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? |
Quote:
Code:
if ($vbulletin->userinfo['usergroupid'] == '25' Quote:
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) |
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? |
Quote:
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. |
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. |
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 |
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 |
Quote:
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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|