administrator (User 1) nicht in der Mitgliederliste anzeigen.. Brauche hilfe!!!
![](https://www.drupalcenter.de/files/imagecache/upic_mini/pictures/picture-3702.gif)
am 11.02.2008 - 13:27 Uhr in
hallo zusammen,
gibt es eine möglichkeit, den administratoraccount (User 1) in der Mitgliederliste vom core-modul "profile" nicht anzeigen zu lassen?
mfg
- Anmelden oder Registrieren um Kommentare zu schreiben
Per Theming
am 11.02.2008 - 13:34 Uhr
z.B. so: http://drupal.org/node/45873
--
bv - drupalcenter.de
ok ich hab das alles mal
am 17.02.2008 - 23:19 Uhr
ok ich hab das alles mal durchgelesen und danach ewig lange herumgewerkelt, aber es will einfach nicht klappen :-(
wo genau muss ich folgendes einfügen?
<?php
if (!in_array('Site Admin', $user->roles)): /*only display users who do not have the user role type of Site Admin */
?>
und welche php-datei muss ich abändern, damit unter jedem user-profil eine durchgehende trennlinie erscheint?
mfg
weiss niemand rat? ist
am 20.02.2008 - 21:45 Uhr
ok, habe es nun in ermangelung eines besseren vorschlages so gemacht (wie von einem drupal.org user gepostet):
"I know modifying drupal core is supposed to be a no-no, but this is a really easy one. Find the line in profile.module that looks like:
$result = pager_query('SELECT uid, access FROM {users} WHERE uid > 0 AND status != 0 AND access != 0 ORDER BY access DESC', 20, 0, NULL);
It's in the function "profile_browse" and on line 503 in drupal 5.2.
Change it to:
$result = pager_query('SELECT uid, access FROM {users} WHERE uid > 1 AND status != 0 AND access != 0 ORDER BY access DESC', 20, 0, NULL);
Then user 1 doesn't show up on www.example.com/profile"