DIR Return Create A Forum - Home
---------------------------------------------------------
Create A Forum - Support Forums
HTML https://support.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Create a Forum Codes and Support
*****************************************************
#Post#: 15040--------------------------------------------------
[Code] Page Off Limits
DIR By: CyanProductions
Date: January 4, 2015, 9:59 am
---------------------------------------------------------
Description: Make a page Off Limits to a user
This code utilizes jQuery, please use the latest version found
in this thread:
HTML http://support.createaforum.com/5/jquery-v1-8-update/
HTML http://support.createaforum.com/5/jquery-v1-8-update/
Footers:
--- Quote ---
>
> <script>
> if (location.href == smf_scripturl + "?X") { if
($("li.greeting").text() == "Hello Y") {
$("div#main_content_section").remove(); $( "div#footer_section
div.frame" ).before( "
> <center><h1>This is Off Limits to you</h1></center>
> " );}}
> </script>
--- End Quote ---
Editing: Change the red X to the url you want off limits. You
only need the segment of the url after the ?
Change the red Y to the user you would like to make this Off
limits to, you can change the first =, on the same line as the
red Y to an !, this will only give that user access to the page.
*****************************************************
Page 1 of 1