Is there a way to turn off the "Topics I've participated in" panel on the Admin profile page? I'd rather not hack the code and there is info in the Admin profile that users shouldn't see ...

Thanks...

Comments

michelle’s picture

Title: Turn off "Topics I've participated in" for Admin Profile » Hide pane based on argument
Project: Advanced Profile Kit » Panels
Version: 6.x-1.0-alpha1 » 6.x-2.0-alpha3

I don't think so. I don't know of any way to turn off a Panels pane based on the argument but I'm tossing it over to their queue just in case.

Michelle

RachelNY’s picture

I put this in the head portion of my page.tpl.php as a temporary fix:

To leave the Title but blank it out:

<?php if ($user->uid != 1 && arg(0) == 'user' && arg(1) == '1') { 
	print '<style type="text/css" media="all">.view-id-apk_user_tracker {display: none;}</style>';
} ?> 

To Remove the entire panel:

<?php if ($user->uid != 1 && arg(0) == 'user' && arg(1) == '1') { 
	print '<style type="text/css" media="all">#profile-user-tracker {display: none;}</style>';
} ?> 

Seems to be working ok, still testing ...

esmerel’s picture

Status: Active » Fixed

You can set a visibility rule on a particular pane so that non-admin users see it and admins don't, but that's about it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.