| We hope you enjoy your visit. You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. Join our community! If you're already a member please log in to your account to access all of our features: |
| Webpage Group Access | |
|---|---|
| Tweet Topic Started: May 9 2011, 07:50 PM (1,931 Views) | |
| Quozzo | May 9 2011, 07:50 PM Post #1 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Will redirect anyone to the index if they have not got permission to view the webpage Place this code at the top of the webpage
Add additional groups into this line in the code above, so if i wanted to add the validating group to view the page, it would look like this:
Edited by Quozzo, Jun 30 2012, 02:34 PM.
|
![]() |
|
| Agent Moose-ZNR | May 9 2011, 08:39 PM Post #2 |
|
♪ === ♥
![]() ![]() ![]() ![]()
|
This is a nifty code. Nice job
|
![]() |
|
| Cory | May 9 2011, 10:31 PM Post #3 |
|
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I'm glad you decided to post it, a lot of people have been looking for this. |
![]() |
|
| Quozzo | May 10 2011, 02:24 AM Post #4 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I thought it would be a one-off thing but seems quite popular, I decided to post this new one as the old one uses an AJAX requests to go to the Members page which doesn't work anymore and a few people may be asking for a fix. This gets the group by going to the Profile page, i don't know why i didn't do that in the first place tbh
|
![]() |
|
| Viral | May 10 2011, 08:28 PM Post #5 |
![]()
Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Looks good, but maybe a location.replace() would be better so the back button functions properly.
Edited by Viral, May 10 2011, 08:29 PM.
|
![]() |
|
| Quozzo | May 10 2011, 09:15 PM Post #6 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
I didn't know about that, thanks. |
![]() |
|
| Ithuar | Dec 18 2011, 08:38 PM Post #7 |
![]()
Member
![]() ![]() ![]()
|
Thanks for the help, Quozzo. |
![]() |
|
| lonewolfe2015 | Jul 7 2012, 05:03 PM Post #8 |
![]()
Member
![]() ![]() ![]() ![]()
|
Was testing this code to see if it could be used to block unregistered people from viewing member lists and webpages, but it caused an endless loop of page refreshes as both an administrator and a guest account. Had to log directly into the ACP (remained logged in) and remove it in order for the page to return to normal function. |
![]() |
|
| Quozzo | Jul 7 2012, 05:56 PM Post #9 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Thats because its intended use is for webpages Edited by Quozzo, Jul 7 2012, 05:56 PM.
|
![]() |
|
| lonewolfe2015 | Jul 7 2012, 10:58 PM Post #10 |
![]()
Member
![]() ![]() ![]() ![]()
|
So, if I want to use this, specifically put it into the webpage I'm restricting? Sorry for any confusion on my end. Aka, it wouldn't be able to limit access to the member list from guests, for instance. Edited by lonewolfe2015, Jul 7 2012, 10:58 PM.
|
![]() |
|
| Quozzo | Jul 7 2012, 11:53 PM Post #11 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
You can wrap it with some code so it will only work on certain pages
you can add additional pages seporated by a bar
Edited by Quozzo, Jul 7 2012, 11:55 PM.
|
![]() |
|
| lonewolfe2015 | Jul 8 2012, 01:20 AM Post #12 |
![]()
Member
![]() ![]() ![]() ![]()
|
Thanks much, placed it at the top of the page and it basically disables access to the members (or other tabs) on command. Very useful for me before the forum I'm making gets opened up outside the admin group. |
![]() |
|
| Quozzo | Jul 8 2012, 03:13 PM Post #13 |
|
By the blood of Sanguinius!
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
There's an option to disallow everyone bar the admins to view the forum, not sure where it is so your better asking on the support board. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · ZetaBoards Codes & Modifications · Next Topic » |
| Track Topic · E-mail Topic |
2:54 PM Jul 11
|



![]](http://b1.ifrm.com/0/1/0/p601690/pipright.png)






2:54 PM Jul 11