Customizing SMF > SMF Coding Discussion
Restricting Page But Without Redirecting?
(1/1)
Scotty1207:
Hi,
I'm trying to make one of my pages only accessible if the user has logged in thorugh my login page. However I want it to go to my login page and display that the user needs to be logged in, but at the moment it goes to my forum and displays the message. Is it possible to do what I want to do?
Code so far:
--- Code: ---<?php
require_once('../Forum/SSI.php');
is_not_guest('You are Not Logged In!');
?>
<!DOCTYPE html>
--- End code ---
Edit: Found the code I needed!
emanuele:
It would be very nice when you find the answer to your questions that you post that answers, so that other users with the same problem could have better probability to find their answers without asking. ;)
Navigation
[0] Message Index
Go to full version