Startseite
  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche
Startseite › Forum › Drupalcenter.de › Module › Views ›

[gelöst] User list

Eingetragen von Kirsten1965 (703)
am 07.07.2010 - 21:26 Uhr in
  • Views
  • Drupal 6.x

SELECT DISTINCT(node.nid) AS nid,
   users.picture AS users_picture,
   users.uid AS users_uid,
   users.name AS users_name,
   users.mail AS users_mail,
   users.created AS users_created,
   users.login AS users_login
FROM node node
INNER JOIN users users ON node.uid = users.uid
WHERE users.status <> 0
GROUP BY nid
  ORDER BY users_name ASC

So sieht meine View für die userlist aus. Leider zeigt es mir nur den User 1 an und nicht alle anderen... an welchem Schräubchen muss ich denn noch drehen?

Danke!

Wenn ich auf exportieren klicke, dann kommt folgender Code:
$view = new view; $view->name = 'profile'; $view->description = ''; $view->tag = ''; $view->view_php = ''; $view->base_table = 'node'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'picture' => array( 'id' => 'picture', 'table' => 'users', 'field' => 'picture', ), )); $handler->override_option('sorts', array( 'name' => array( 'id' => 'name', 'table' => 'users', 'field' => 'name', ), )); $handler->override_option('arguments', array( 'uid' => array( 'id' => 'uid', 'table' => 'users', 'field' => 'uid', ), )); $handler->override_option('filters', array( 'status' => array( 'id' => 'status', 'table' => 'users', 'field' => 'status', ), )); $handler->override_option('access', array( 'type' => 'none', )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('style_plugin', 'fluid_grid'); $handler->override_option('row_options', array( 'inline' => array( 'picture' => 'picture', ), 'separator' => '', 'hide_empty' => 0, )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('fields', array( 'picture' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'exclude' => 0, 'id' => 'picture', 'table' => 'users', 'field' => 'picture', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'name' => array( 'label' => 'Name', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' =>  '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'link_to_user' => 1, 'overwrite_anonymous' => 0, 'anonymous_text' => '', 'exclude' => 0, 'id' => 'name', 'table' => 'users', 'field' => 'name', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'created' => array( 'label' => 'Member since', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' => 0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'custom', 'custom_date_format' => 'F j, Y', 'exclude' => 0, 'id' => 'created', 'table' => 'users', 'field' => 'created', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'login' => array( 'label' => 'Last online', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' =>  0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'date_format' => 'custom', 'custom_date_format' => 'F j, Y', 'exclude' => 0, 'id' => 'login', 'table' => 'users', 'field' => 'login', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), 'contact' => array( 'label' => '', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'link_class' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'target' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, 'strip_tags' =>  0, ), 'empty' => '', 'hide_empty' => 0, 'empty_zero' => 0, 'text' => 'Contact member', 'link_display' => 'link', 'exclude' => 0, 'id' => 'contact', 'table' => 'users', 'field' => 'contact', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('sorts', array( 'name' => array( 'order' => 'ASC', 'id' => 'name', 'table' => 'users', 'field' => 'name', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('arguments', array()); $handler->override_option('filters', array( 'status' => array( 'operator' => '=', 'value' => '1', 'group' => '0', 'exposed' => FALSE, 'expose' => array( 'operator' => FALSE, 'label' =>  '', ), 'id' => 'status', 'table' => 'users', 'field' => 'status', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', ), )); $handler->override_option('access', array( 'type' => 'role', 'role' => array( '2' => 2, ), )); $handler->override_option('title', 'Our Members'); $handler->override_option('items_per_page', 16); $handler->override_option('use_pager', 'mini'); $handler->override_option('distinct', 1); $handler->override_option('style_options', array( 'grouping' => '', 'advanced_layout' => array( 'css3' => TRUE, ), 'items_width' => '', 'items_height' => '', 'list_alignment' => '', 'items_alignment' => '', 'items_h_margin' => '', 'items_v_margin' => '', 'box_shadow' => '1', 'border_radius' => '1', )); $handler->override_option('row_options', array()); $handler->override_option('path', 'profile'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', ));

‹ [gelöst] Imagecache in Views - alt und title CCK Felder ein- und ausblenden ›
  • Anmelden oder Registrieren um Kommentare zu schreiben

Erstmal nur eine Vermutung,

Eingetragen von Exterior (2903)
am 07.07.2010 - 21:55 Uhr

Erstmal nur eine Vermutung, aber könnte das Problem damit zusammenhängen?

Zitat:

Die Ansicht zeigt Einträge vom Typ Node an

Dass du also als Views-Typ Node und nicht Benutzer genommen hast?

Denn so, wie du die View momentan konfiguriert hast, bekommst du natürlich zu jedem Node den Benutzername etc. des Autors angezeigt und keine allgemeinen Benutzerdaten, weil es eben ein Node-View ist. Versuche mal, das ganze auf Basis einer User-View zu machen (also neue View erstellen und als Ansichtstyp nicht Node sondern User bzw. Benutzer wählen.

  • Anmelden oder Registrieren um Kommentare zu schreiben

Wie blöd kann man sein ....

Eingetragen von Kirsten1965 (703)
am 07.07.2010 - 22:14 Uhr
Exterior schrieb

Dass du also als Views-Typ Node und nicht Benutzer genommen hast?

Hallo,

DANKE - das war's. Ist mir gar nicht aufgefallen, dass ich nicht Benutzer genommen habe ....

  • Anmelden oder Registrieren um Kommentare zu schreiben

Benutzeranmeldung

  • Registrieren
  • Neues Passwort anfordern

Aktive Forenthemen

  • Canvas Palette: Eine fertige Komponentenbibliothek für Drupal Canvas
  • Hilfe zu Updates oder Composer
  • Vergleich Drupal und Contao
  • [geloest] Blocks in Bootstrap nebeneinander darstellen und nicht untereinander
  • DrupalCamp Frankfurt 27-28 November 2026
  • Bitte mein Bentzerkonto löschen
  • Beim Aufruf einiger Inhalte erhalte ich folgende Fehlermeldung
  • Neuinstallation: vermutlich ein rewrite-Problem
  • Drupal CMS installieren
  • [erledigt]MP3 in Drupal 10 einbinden
  • (gelöst)Drupal 11 installieren
  • Titel ausblenden
Weiter

Neue Kommentare

  • Danke ich werde mir die
    vor 5 Wochen 3 Tagen
  • Vielen Dank für Ihren
    vor 5 Wochen 6 Tagen
  • Composer ist sehr ratsam
    vor 6 Wochen 23 Stunden
  • Vielen Dank für den
    vor 6 Wochen 3 Tagen
  • Die alten CMS Vergleiche von contentmanager.de
    vor 6 Wochen 3 Tagen
  • Gut gemacht
    vor 6 Wochen 3 Tagen
  • Layout Builder etc. z.B. für Landing Pages
    vor 6 Wochen 3 Tagen
  • Links
    vor 6 Wochen 6 Tagen
  • Moin,wow, sehr gutes
    vor 7 Wochen 13 Stunden
  • Dass ist eine spannende
    vor 7 Wochen 21 Stunden

Statistik

Beiträge im Forum: 250316
Registrierte User: 20567

Neue User:

  • Philiphelve
  • Robertspaft
  • drupalthemes

» Alle User anzeigen

User nach Punkten sortiert:
wla9466
stBorchert6003
quiptime4972
Tobias Bähr4019
bv3924
ronald3857
md3717
Thoor3678
Alexander Langer3416
Exterior2903
» User nach Punkten
Zur Zeit sind 0 User und 12 Gäste online.

Hauptmenü

  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche

Quicklinks I

  • Infos
  • Drupal Showcase
  • Installation
  • Update
  • Forum
  • Team
  • Verhaltensregeln

Quicklinks II

  • Drupal Jobs
  • FAQ
  • Drupal-Kochbuch
  • Best Practice - Drupal Sites - Guidelines
  • Drupal How To's

Quicklinks III

  • Tipps & Tricks
  • Drupal Theme System
  • Theme Handbuch
  • Leitfaden zur Entwicklung von Modulen

RSS & Twitter

  • Drupal Planet deutsch
  • RSS Feed News
  • RSS Feed Planet
  • Twitter Drupalcenter
Drupalcenter Team | Impressum & Datenschutz | Kontakt
Angetrieben von Drupal | Drupal is a registered trademark of Dries Buytaert.
Drupal Initiative - Drupal Association