Posts: 30
Threads: 4
Joined: Aug 2011
2011-08-14, 07:58:45
(This post was last modified: 2011-08-14, 08:01:38 by hanshi.)
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.
Posts: 30
Threads: 4
Joined: Aug 2011
It seems I have found the solution.
Code:
<?php if (!isset($_COOKIE['GS_ADMIN_USERNAME'])) {
$cookie_user_id = _id($_COOKIE['GS_ADMIN_USERNAME']); ?>
<?php } ?>
Posts: 2,928
Threads: 195
Joined: Feb 2011
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
Posts: 30
Threads: 4
Joined: Aug 2011
Hi,
I just wanted to hide the ads and google analytics code to exclude own visits
Posts: 2,928
Threads: 195
Joined: Feb 2011
[/root.] Wrote:Hi,
I just wanted to hide the ads and google analytics code to exclude own visits
oh, I understand
but I do not know of any way to acchieve this, maybe some of our developers here?
Posts: 30
Threads: 4
Joined: Aug 2011
The code I posted above is working fine