Board Logo

 Username:    Password:    Stay logged in: Welcome Guest. Please Login or Register.  Oct 23rd, 2017, 10:29am


Board Hacks
Important News
Please read the notes posted with any codes carefully, as they will usually tell you where they need to go.
Welcome to the Conforums Hacks Board!

All codes here have been tested but we accept no responsibility if these codes do not work on your board, or have an adverse effect when used in combination with other codes.

This board is read only. Any queries or requests for codes should be made on the Coding Forum

Helpful sites
Google
Dynamic Drive

The Staff
Roger
Dave
GIzzy



« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Redirect guests to login page.  (Read 3357 times)
Dave
I've always wanted one of these wink
Conforums Administrator


member is offline

Avatar

Mr Fixit...


Homepage PM

Gender: Male
Posts: 17646
xx Redirect guests to login page.
« Thread started on: Feb 5th, 2004, 5:11pm »

<script>
if(!location.href.match(/register$|login$|reminder/)){
var guest=true
for(pl=0; pl<document.links.length; pl++){
if(document.links[pl].href.indexOf("=profile") != -1)
guest=false
}
if(guest)
location.href="/index.cgi?action=login"
}
</script>

Goes in main headers.

Guests can still access the register page from the login page.....
« Last Edit: Oct 31st, 2004, 05:55am by Dave » User IP Logged

Have you read the FAQ or checked the Hacks board before posting?
No?
Then please do so...
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Back To Top
Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls