GetSimple Support Forum

Full Version: Disable content for logged in user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'd like to to disable a piece of content for the admin. Is there a conditional that I can use? Something like
Code:
<?php if user_id = admin ?> content  <?php } ?>

Thanks.
It seems I have found the solution.
Code:
<?php if (!isset($_COOKIE['GS_ADMIN_USERNAME'])) {
    $cookie_user_id = _id($_COOKIE['GS_ADMIN_USERNAME']); ?>
<?php } ?>
please tell me for what the admin will be restricted?
What is the sense behind that?

She/He will always be able to edit php-files or theme-files

I just don't get it, that's why I ask

Cheers, Connie
Hi,

I just wanted to hide the ads and google analytics code to exclude own visits Smile
[/root.] Wrote:Hi,

I just wanted to hide the ads and google analytics code to exclude own visits Smile


oh, I understand
but I do not know of any way to acchieve this, maybe some of our developers here?
The code I posted above is working fine Smile