Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Limiting Access to Registered Users?


wordpressfan
Participant

@wordpressfan

That was the code I’d been using. I forgot where to put the following in register.php:

<?php

if($_REQUEST["s"]){?>

<script type="text/javascript">

jQuery(document).ready(function () {

setTimeout(function(){ jQuery("#error").fadeOut("slow"); }, 6000);

});

</script>

<div id="error" class="error">

<h3>The page you were trying to access is for members only. Please login or register to continue.</h3>

</div>

<?php } ?>

Skip to toolbar