| 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: |
| [ C ] Making It That Website Pages Need Users To Be Logged In | |
|---|---|
| Tweet Topic Started: Mar 2 2014, 12:11 AM (522 Views) | |
| gmx0 | Mar 2 2014, 12:11 AM Post #1 |
|
Member
![]() ![]() ![]()
|
Is there a way that the website pages in the forums cannot be accessed without being logged in to the forums? I cant seem to find any. I don't need a very secure/complex protection for the websites pages, but I do want to prevent most of the casual observers from chancing to see them, so I would accept some Javascript. |
![]() |
|
| Helena | Mar 2 2014, 12:24 AM Post #2 |
![]()
M is for Mod
![]()
|
you could try this: http://if.invisionfree.com/topic/5117850/ If you wanted a method that does not use javascript, you could elect not to show the webpage links on the board in the webpage maker settings. Then post them manually in a members only area, such as in the forum rules or even in an index forum description in a forum that cannot be viewed by guests. |
![]() |
|
| Ferby | Mar 5 2014, 10:17 PM Post #3 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
Although that code would work just fine, there is an easier way of doing it.
That will simply redirect a user who isn't logged in away from the page whenever they visit. Place at anywhere (preferably at the top) of the page's content. But, just as Helena suggested, if you're not looking for a JavaScript method then I recommend her way. |
![]() |
|
| ksh | Mar 6 2014, 12:42 AM Post #4 |
|
Member
![]() ![]() ![]() ![]()
|
^ That code infinite loops. It'll keep forwarding to the same page and never stops. Beware, this can eat up a large chunk of your ad credits in the time it takes you to remove it. |
![]() |
|
| DaPizzaMan | Mar 6 2014, 09:41 PM Post #5 |
![]()
#TeamSupport
![]()
|
Or simply add a check to see if the user is on a certain page.
|
![]() |
|
| Ferby | Mar 7 2014, 02:48 PM Post #6 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
It would only loop if you placed it on your board's Javascript section instead of a webpage like I instructed to. |
![]() |
|
| ksh | Mar 7 2014, 04:53 PM Post #7 |
|
Member
![]() ![]() ![]() ![]()
|
@Ferby: Fair enough. It wasn't explicitly clear. You just said "place at anywhere (preferably at the top) of the page's content". And the Board's JavaScript section is at the top of the page's content. But even if something is an installation issue, the code should be smart enough to not infinite loop. There are just a few very dangerous pitfalls that should never happen in programming. One of them is infinite looping. |
![]() |
|
| Ferby | Mar 8 2014, 05:44 PM Post #8 |
![]()
Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]()
|
This one can be placed anywhere. It does the same as the old one without the possibility of infinite looping. |
![]() |
|
| Moonface | Mar 9 2014, 07:59 PM Post #9 |
![]()
|
Completed! Your request has been completed. If you have any questions or concerns regarding the state of your request, please feel free to contact me via PM. |
![]() |
|
| 1 user reading this topic (1 Guest and 0 Anonymous) | |
| « Previous Topic · Closed Requests · Next Topic » |
| Track Topic · E-mail Topic |
4:31 AM Jul 11
|


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







4:31 AM Jul 11