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

Drupal 6.x

Fehlermeldung nach Installation

Eingetragen von cm99 (3) am 25.04.2010 - 14:16 Uhr in
  • Allgemeines zu Drupal
  • Drupal 6.x

Hallo,

ich habe soeben Drupal 6.16 installiert. Lief alles problemlos. Nur nach der Installation erscheinen folgende Fehlermeldungen auf der Startseite bzw. werden auf der Startseite angezeigt:

Die ausgewählte Datei /tmp/filelOwQ5H konnte nicht hochgeladen werden, weil das Verzeichnis nicht richtig konfiguriert wurde.

  • 1 Kommentar
  • Weiterlesen

Ubercart: 1. Versandart "kleines Paket" nicht änderbar

Eingetragen von iKen (8) am 25.04.2010 - 13:06 Uhr in
  • Module
  • Drupal 6.x

Hallo Community,

ich habe so das Gefühl, dass ich total auf dem Schlauch stehe, weil ich die Möglichkeit, eine weitere Versandart hinzuzufügen, einfach nicht finde. Ich suche jetzt schon 1,5h und habe jedes Manual gelesen.

  • 2 Kommentare
  • Weiterlesen

[gelöst] Ich verstehe das nicht

Eingetragen von fugazi (201) am 25.04.2010 - 12:18 Uhr in
  • Views
  • Drupal 6.x

Hallo zusammen,

  • Anmelden oder Registrieren um Kommentare zu schreiben
  • Weiterlesen

[Gelöst] Ein View für mehrere Taxonomy-Begriffe

Eingetragen von Drupimo (109) am 25.04.2010 - 10:57 Uhr in
  • Views
  • Drupal 6.x

Hallo zusammen,

ich bräuchte einen kleinen Denkanstoß:

Ich habe ein Taxonomy-Vokabular mit (vielen) mehreren Begriffen.
Dieses Vokabular wird mit Taxonomy Menu auf meiner Seite veröffentlicht.
Wenn man nun auf die Begriffe klickt, möchte ich einen View als Tabelle anzeigen lassen, z.B.

Titel | Bewertung

also nicht die Anrisstexte.

  • 2 Kommentare
  • Weiterlesen

Wo sind die Formularvorlagen für Dokumente in Übercart?

Eingetragen von ronald (3857) am 25.04.2010 - 09:01 Uhr in
  • Module
  • Drupal 6.x

Da ich die Rechnung, Lieferschein, Bestätigung etc. individuell anpassen möchte, wüßte ich gerne, wo die Vorlagen dazu abgespeichert sind.
Ich habe bisher nichts gefunden, was eindeutig darauf hinweist.

Außerdem würde es mich interessieren, ob diese Dokumente auch multilingual vorgehalten werden können, je nach Kundenstandort, Sprachauswahl, oder Kennzeichnung im Profil.

  • Anmelden oder Registrieren um Kommentare zu schreiben
  • Weiterlesen

Ubercart mach so viel ärger

Eingetragen von ronald (3857) am 25.04.2010 - 08:38 Uhr in
  • Module
  • Drupal 6.x

Ich versuche mich in ÜberCart einzuarbeiten und habe als Begleiter das Buch von George Papadongonas und Yiannis Doxaras zur Seite.

  • 2 Kommentare
  • Weiterlesen

Advertisement Modul

Eingetragen von KiLLAH89 (181) am 25.04.2010 - 03:01 Uhr in
  • Module
  • Drupal 6.x

Hallo,

ich habe ein kleines, dennoch nerviges Problem. Das Advertisement Modul ist ganz hilfreich, doch frage ich mich wie ich es meinen Wünschen nach konfigurieren muss, um etwas auszublenden. Ich möchte gerne, dass folgende dinge nur für den admin angezeigt werden.

Status
Statistiken
Click history

Ich habe folgenden Code:

<?php global $user; if ($user->uid){ <---- <strong>selber eingefügt</strong>
// $Id: ad.pages.inc,v 1.1.2.6.2.4 2009/11/30 16:31:20 Jeremy Exp $

/**
* @file
* Advertisement nodes pages and forms.
*
* Copyright (c) 2005-2009.
*   Jeremy Andrews <jeremy@tag1consulting.com>
*/

function theme_node_ad($node, $yield_form = TRUE) {
  $output = '';
  if (ad_permission($node, 'access statistics')) {
    $output = theme('ad_status_display', $node);
    $output .= theme('ad_statistics_display', ad_statistics($node->nid));
  }

  if (ad_permission($node, 'access click history')) {
    $header = array(
      array('data' => t('Time'), 'field' => 'timestamp', 'sort' => 'desc'),
      array('data' => t('User'), 'field' => 'uid'),
      array('data' => t('URL where clicked'), 'field' => 'url'),
    );
    if (function_exists('click_filter_status_text') && user_access('view filtered clicks')) {
      $header[] = array('data' => t('Status'), 'field' => 'status');
    }
    $header[] = '';

    if (isset($node->nid) && $node->nid > 0) {
      $sql = "SELECT cid, timestamp, uid, status, hostname, url FROM {ad_clicks} WHERE aid = %d";
      $sql .= tablesort_sql($header);
      $result = pager_query($sql, 25, 0, NULL, $node->nid);

      while ($ad = db_fetch_object($result)) {
        if (module_exists('click_filter') && $ad->status != CLICK_VALID) {
          // Only show filtered clicks to users with permission to view them.
          if (!user_access('view filtered clicks')) {
            continue;
          }
        }
        if (strlen($ad->url) > 40) {
          $url = substr($ad->url, 0, 37) .'...';
        }
        else {
          $url = $ad->url;
        }
        $row = array();
        $click_user = user_load(array('uid' => $ad->uid));
        $row[] = format_date($ad->timestamp, 'custom', 'M j H:i');
        $row[] = theme('username', $click_user);
        $row[] = l($url, $ad->url);
        if (function_exists('click_filter_status_text') && user_access('view filtered clicks')) {
          $row[] = click_filter_status_text($ad->status);
        }
        $row[] = '['. l(t('details'), 'node/'. $node->nid .'/details/'. $ad->cid) .']';
        $rows[] = $row;
      }

      if (empty($rows)) {
        $click_history = '<p>'. t('There are no clicks yet.') .'</p>';
      }
      else {
        $click_history = theme('table', $header, $rows);
      }
      $click_history .= theme('pager', NULL, 25, 0);
      $output .= theme('box', t('Click history'), $click_history);
    }
  }
  return $output;
}

/**
* Calculate statistics for the given advertisements.
* TODO: Introduce caching to make this more efficient.
*/
function ad_statistics($aid) {
  // Get global statistics.
  $statistics['global']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view'", $aid));
  $statistics['global']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click'", $aid));

  // No sense in making further queries if the ad has no global statistics.
  if (!$statistics['global']['views'] && !$statistics['global']['clicks']) {
    return $statistics;
  }

  // Get statistics for this year and last year.
  $this_year = date('Y000000');
  $last_year = date('Y') - 1 .'000000';
  $statistics['last_year']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date >= %d AND date <= %d", $aid, $last_year, $this_year));
  $statistics['last_year']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date >= %d AND date <= %d", $aid, $last_year, $this_year));
  $statistics['this_year']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date >= %d", $aid, $this_year));
  $statistics['this_year']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date >= %d", $aid, $this_year));

  // No sense in making further queries if the ad has no statistics this year.
  if (!$statistics['this_year']['views'] && !$statistics['this_year']['clicks']) {
    return $statistics;
  }

  // Get statistics for this month and last month.
  $this_month = date('Ym0000');
  $last_month = date('m') - 1;
  if ($last_month == 0) {
    $last_month = date('Y') - 1 .'120000';
  }
  else {
    $last_month = date('Y') . ($last_month < 10 ? '0' : '') . $last_month .'0000';
  }
  $statistics['last_month']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date >= %d AND date <= %d", $aid, $last_month, $this_month));
  $statistics['last_month']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date >= %d AND date <= %d", $aid, $last_month, $this_month));
  $statistics['this_month']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date >= %d", $aid, $this_month));
  $statistics['this_month']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date >= %d", $aid, $this_month));

  // No sense in making further queries if the ad has no statistics this month.
  if (!$statistics['this_month']['views'] && !$statistics['this_month']['clicks']) {
    return $statistics;
  }

  // Get statistics for this week.
  $this_week_start = date('Ymd00', time() - 60*60*24*6);
  $statistics['this_week']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date > %d", $aid, $this_week_start));
  $statistics['this_week']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date > %d", $aid, $this_week_start));

  // No sense in making further queries if the ad has no statistics this week.
  if (!$statistics['this_week']['views'] && !$statistics['this_week']['clicks']) {
    return $statistics;
  }

  // Get statistics for yesterday and today.
  $yesterday_start = date('Ymd00', time() - 60*60*24);
  $yesterday_end = date('Ymd24', time() - 60*60*24);
  $today_start = date('Ymd00', time());
  $statistics['yesterday']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date >= %d AND date <= %d", $aid, $yesterday_start, $yesterday_end));
  $statistics['yesterday']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date >= %d AND date <= %d", $aid, $yesterday_start, $yesterday_end));
  $statistics['today']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date >= %d", $aid, $today_start));
  $statistics['today']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date >= %d", $aid, $today_start));

  // No sense in making further queries if the ad has no statistics today.
  if (!$statistics['today']['views'] && !$statistics['today']['clicks']) {
    return $statistics;
  }

  // Get statistics for this hour and the last hour.
  $last_hour = date('YmdH', time() - 60*60);
  $this_hour = date('YmdH', time());
  $statistics['last_hour']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date = %d", $aid, $last_hour));
  $statistics['last_hour']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date = %d", $aid, $last_hour));
  $statistics['this_hour']['views'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'view' AND date = %d", $aid, $this_hour));
  $statistics['this_hour']['clicks'] = (int)db_result(db_query("SELECT SUM(count) FROM {ad_statistics} WHERE aid = %d AND action = 'click' AND date = %d", $aid, $this_hour));

  return $statistics;
}

function theme_ad_statistics_display($statistics) {
  $header = array('', t('Impressions'), t('Clicks'), t('Click-thru'));
  $rows = array();

  $data = array(
   'this_hour' => t('This hour'),
   'last_hour' => t('Last hour'),
   'today' => t('Today'),
   'yesterday' => t('Yesterday'),
   'this_week' => t('Last seven days'),
   'this_month' => t('This month'),
   'last_month' => t('Last month'),
   'this_year' => t('This year'),
   'last_year' => t('Last year'),
   'global' => t('All time')
  );

  foreach ($data as $key => $value) {
    if (isset($statistics[$key]) && (isset($statistics[$key]['views']) || isset($statistics[$key]['clicks']) || $key == 'global')) {
      $rows[] = array(
        array('data' => $value),
        array('data' => (int)$statistics[$key]['views']),
        array('data' => (int)$statistics[$key]['clicks']),
        array('data' => $statistics[$key]['views'] ? sprintf('%1.2f', ((int)$statistics[$key]['clicks'] / (int)$statistics[$key]['views']) * 100) .'%' : '0.00%'),
      );
    }
  }
  if (empty($rows) || (!$statistics['global']['views'] && !$statistics['global']['clicks'])) {
    $statistics = '<p>'. t('There are currently no statistics for this advertisement.') .'</p>';
  }
  else {
    $statistics = theme('table', $header, $rows);
  }

  return theme('box', t('Statistics'), $statistics);
}

/**
* Display details about a specific click.
*/
function ad_click_details($node, $cid) {
  drupal_set_breadcrumb(array(l(t('Home'), NULL), l(check_plain($node->title), 'node/'. $node->nid)));
  if ($click = db_fetch_object(db_query('SELECT * FROM {ad_clicks} WHERE cid = %d', $cid))) {
    $ad = node_load($click->aid);
    $account = user_load(array('uid' => $click->uid));
    $rows = array(
      array(
        array('data' => t('Time'), 'header' => TRUE),
        format_date($click->timestamp, 'custom', 'D F j, Y h:i a'),
      ),
      array(
        array('data' => t('User'), 'header' => TRUE),
        theme('username', $account),
      ),
      array(
        array('data' => t('IP Address'), 'header' => TRUE),
        $click->hostname,
      ),
      array(
        array('data' => t('User Agent'), 'header' => TRUE),
        check_plain($click->user_agent),
      ),
      array(
        array('data' => t('URL'), 'header' => TRUE),
        l($click->url, $click->url),
      ),
      array(
        array('data' => t('Advertisement'), 'header' => TRUE),
        $ad->ad,
      )
    );
    if (function_exists('click_filter_status_text') && user_access('view filtered clicks')) {
      switch ($click->status) {
        case 0:
        default:
          $status = t('Not valid: this click has not been counted for unknown reasons.  This is an unexpected error.');
          break;
        case 1:
          $status = t('Valid: this is a valid click.');
          break;
        case 2:
          $status = t('Not valid: this click has not been counted because another click by the same IP address was already counted.');
          break;
        case 3:
          $status = t('Not valid: this click has not been counted because it was generated by an owner of the advertisement.');
          break;
        case 4:
          $status = t('Not valid: this click has not been counted because it was generated by a user in a filtered role.');
          break;
        case 5:
          $status = t('Not valid: this click has not been counted because it was generated by an automated "bot".');
          break;
      }
      $rows[] = array(array('data' => t('Status'), 'header' => TRUE), $status);
    }
    $output = theme('table', array(), $rows);
  }
  return $output;
}


function ad_activity_details($node) {
  $output = '';
  drupal_set_breadcrumb(array(l(t('Home'), NULL), l(check_plain($node->title), 'node/'. $node->nid)));
  if (ad_permission($node, 'access click history')) {
    $header = array(
      array('data' => t('Date'), 'field' => 'date', 'sort' => 'desc'),
      array('data' => t('Action'), 'field' => 'action'));
    if (isset($node->nid) && $node->nid > 0) {
      $sql = "SELECT * FROM {ad_statistics} WHERE action NOT IN ('view', 'click') AND aid = %d";
      $sql .= tablesort_sql($header);
      $result = pager_query($sql, 25, 0, NULL, $node->nid);
      while ($ad = db_fetch_object($result)) {
        $row = array();
        $row[] = format_date(strtotime($ad->date . '00'), 'large');
        $row[] = $ad->action;
        $rows[] = $row;
      }
      if (empty($rows)) {
        $output = '<p>'. t('There is no activity yet.') .'</p>';
      }
      else {
        $output = theme('table', $header, $rows);
      }
      $output .= theme('pager', NULL, 25, 0);
    }
  }
  return theme('box', t('Activity'), $output); }
  }

Und folgenden Fehler seitdem ich diese Zeile "<?php global $user; if ($user->uid){" eingefügt habe:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'theme_node_ad' was given in C:\xampp\htdocs\includes\theme.inc on line 656.

Falls mehr benötigt wird, bitte nachfragen...!!

thx im voraus.

  • 3 Kommentare

Mehrsprachigkeit für Logo (Bild) möglich?

Eingetragen von DennisM (37) am 24.04.2010 - 22:04 Uhr in
  • Übersetzungen
  • Drupal 6.x

Hallo

ich hab meine Seite mittlerweile auf 3 Sprachen umstellen können, außer ein paar kleine Probleme mit dem Sprachumschalter und Ubercart hat alles soweit geklappt.

  • 4 Kommentare
  • Weiterlesen

Book Modul mit unverständlichen Mängeln

Eingetragen von DrupalFan (1646) am 24.04.2010 - 20:19 Uhr in
  • Module
  • Drupal 6.x

Das Book Modul ist ja toll, aber es hat unverständliche Mängel:

- Die Bücherseiten werden nach Titel alphabetisch sortiert. Wo auf der Welt gibt es ein Buch, wo die einzelnen Inhalte oder Kapitel oder Einzelseiten nach Titel sortiert werden? Das ist einfach unbrauchbar.

  • 5 Kommentare
  • Weiterlesen

[gelöst] Übersetzung wird nicht gezogen

Eingetragen von ronald (3857) am 24.04.2010 - 19:58 Uhr in
  • Übersetzungen
  • Drupal 6.x

Ich habe eine Übersetzung für ÜberCart geladen.

Dort sind viele .po-Dateien in unterschiedlichen Ordnern.

Ich habe die translation-ordener jeweils in die gleichnamigen unterordner kopiert.
Die Oberfläche wird dennoch nicht übersetzt.

Wo müssen die .po-Dateien hin, damit sie richtig verarbeitet werden?

  • 3 Kommentare
  • « erste Seite
  • ‹ vorherige Seite
  • …
  • 735
  • 736
  • 737
  • 738
  • 739
  • 740
  • 741
  • 742
  • 743
  • …
  • nächste Seite ›
  • letzte Seite »

Benutzeranmeldung

  • Registrieren
  • Neues Passwort anfordern

Aktive Forenthemen

  • Titel ausblenden
  • Ich brauche dringen Hilfe zu Updates oder ggf. wwie geht Composer?
  • Dynamische Ansicht von Seiteninhalt (als Tabelle?)
  • Vergabe von Berechtigungen für bestimmte Rollen; mir fehlt der Haken bzw. das „Veröffentlicht“
  • Medien und andere Daten mit Feeds von Drupal 7 auf Drupal 10 migrieren
  • Rolle erstellen nicht zu finden
  • für drupal11 ein Slider Modul
  • [gelöst] W3CSS Paragraphs Views
  • Drupal 11 neu aufsetzen und Bereiche aus 10 importieren
  • Wie erlaubt man neuen Benutzern auf die Resetseite zugreifen zu dürfen.
  • [gelöst] Anzeigeformat Text mit Bild in einem Artikel, Drupal 11
  • Social Media Buttons um Insteragram erweitern
Weiter

Neue Kommentare

  • Git und rsync sind die wichtigsten Werkzeuge
    vor 2 Tagen 6 Stunden
  • Arrrrg. Nix Tabelle :-D /*
    vor 4 Wochen 4 Tagen
  • Textboxen mit Tabelle
    vor 4 Wochen 4 Tagen
  • Du sollst ja auch keine
    vor 4 Wochen 4 Tagen
  • Theme
    vor 4 Wochen 4 Tagen
  • Welches Theme benutzt du
    vor 4 Wochen 4 Tagen
  • Mit Responsive Raster hatte
    vor 4 Wochen 5 Tagen
  • Hallo Alex,um das Häkchen
    vor 4 Wochen 5 Tagen
  • Modul view_unpublished
    vor 5 Wochen 50 Minuten
  • Modul "override node options"
    vor 5 Wochen 19 Stunden

Statistik

Beiträge im Forum: 250274
Registrierte User: 20486

Neue User:

  • Robertolix
  • DavidBit
  • JeraldZeF

» Alle User anzeigen

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

Drupal Security

  • Orejime - Moderately critical - Cross-site scripting - SA-CONTRIB-2026-032
  • SAML SSO - Service Provider - Critical - Authentication bypass - SA-CONTRIB-2026-031
  • Automated Logout - Moderately critical - Cross-site request forgery - SA-CONTRIB-2026-030
  • Unpublished Node Permissions - Critical - Access bypass - SA-CONTRIB-2026-029
  • AI (Artificial Intelligence) - Moderately critical - Information Disclosure - SA-CONTRIB-2026-028
Weiter

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