1. I want to delete the ip and browser in forum, I have to fix this code yet
2. visitors only see the content is how this code
3. Members only content, the code shows how this is
4. admin only see the content is how this code
5. content only, the board saw how that code is
Please answer me by
1.
2.
3.
4.
5.
Thank you.
I got it
my demo using " if statements "
if (!$user_id) {
echo 'Only Non Logged Members'; }
elseif ($user_id) {
echo 'Only Logged Members'; }
for admin only set (rights) ... check script ...
i do it in other way (in my opinion better)
So first is to create a stop.php file and put it in /incfiles/ folder.
stop.php content is simple
<div class="YOUROWNCLASS"><br/>Access to site only for<br/>REGISTERED USERS<br/><br/></div>
Ok and when You do that now its time to put that on every site you want to block from non registered users. Go to file like /forum/index.php or other and find that:
require('../incfiles/core.php');
below that code You input this:
/* non registered blocker */
if (!$user_id)
{
require_once('../incfiles/head.php');
require_once('../incfiles/stop.php');
require_once('../incfiles/end.php');
exit;
}
And it must look like that:
require('../incfiles/core.php');
/* non registered blocker */
if (!$user_id)
{
require_once('../incfiles/head.php');
require_once('../incfiles/stop.php');
require_once('../incfiles/end.php');
exit;
}
And that is all.
Whenever You want to change style of site visible to non registered users you only modify one file stop.php and of course css style which you use in it.
P.S.
If You want to block file in main folder then remember to delete
../
before
incfiles/