Startseite
  • » Home
  • » Handbuch & FAQ
  • » Forum
  • » Übersetzungsserver
  • » Suche
Startseite › Forum › Drupalcenter.de › Anfängerfragen ›

{gelöst} User badges Problem

Eingetragen von Seppelchen (222)
am 13.02.2010 - 18:25 Uhr in
  • Anfängerfragen
  • Drupal 6.x

Hallo,

ich habe eine Frage und zwar wie lautet die Variable, um vor einem User sein richtiges Badges anzeigen zu können?
Denn wenn ich im Profil schaue sehe ich dem User seine zugeordneten Badges nur weiss ich nicht wie der Befehl heißt es vor dem Namen anzeigen zu können.
Es müsste ja was mit $,,, sein.
Hat jemand eine Ahnung wie die Variable dafür heißt?

Grüße
Seppelchen

‹ tinymce und yui-editor werden nicht geladen Seite /user/register bearbeiten ›
  • Anmelden oder Registrieren um Kommentare zu schreiben

badges Problem besteht noch immer

Eingetragen von Seppelchen (222)
am 13.02.2010 - 21:59 Uhr

Wäre echt nett wenn Jemand eine Rat hätte...

  • Anmelden oder Registrieren um Kommentare zu schreiben

Das müsste

Eingetragen von Sammelzwerg (377)
am 13.02.2010 - 23:25 Uhr

Das müsste funktionieren:

<?php print $profile[user_badges]; ?>

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

Das klappt aber leider nicht...:-(

Eingetragen von Seppelchen (222)
am 14.02.2010 - 00:17 Uhr

Nein, leider nicht.

Hier mal der Code von common_methods.php meines Templates:

<?php
// $Id: common_methods.php,v 1.1 2009/05/15 07:28:06 agileware Exp $

/**
* Generate the HTML representing a given menu with Artisteer style.
*
* @param $mid
*   The block navigation content.
*
* @ingroup themeable
*/
function art_navigation_links_worker($content = NULL) {
  if (!
$content) {
    return
'';
  }

 
$output = $content;
 
$menu_str = ' class="menu"';
  if(
strpos($content, $menu_str) !== FALSE) {
   
$empty_str = '';
   
$pattern = '/class="menu"/i';
   
$replacement = 'class="artmenu"';
   
$output = preg_replace($pattern, $replacement, $output, 1);
   
$output = str_replace($menu_str, $empty_str, $output);
  }
 
$output = preg_replace('~(<a [^>]*>)([^<]*)(</a>)~', '$1<span class="l"></span><span class="r"></span><span class="t">$2</span>$3', $output);

  return
$output;
}

/**
* Split out taxonomy terms by vocabulary.
*
* @param $node
*   An object providing all relevant information for displaying a node:
*   - $node->nid: The ID of the node.
*   - $node->type: The content type (story, blog, forum...).
*   - $node->title: The title of the node.
*   - $node->created: The creation date, as a UNIX timestamp.
*   - $node->teaser: A shortened version of the node body.
*   - $node->body: The entire node contents.
*   - $node->changed: The last modification date, as a UNIX timestamp.
*   - $node->uid: The ID of the author.
*   - $node->username: The username of the author.
*
* @ingroup themeable
*/
function art_terms_worker($node) {
 
$output = '';
  if (isset(
$node->links)) {
   
$output = '&nbsp;&nbsp;|&nbsp;';
  }
 
$terms = $node->taxonomy;

  if (
$terms) {
   
$links = array();
   
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon"/> <?php
    $output
.= ob_get_clean();
   
$output .= t('Tags: ');
    foreach (
$terms as $term) {
     
$links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => strip_tags($term->description)));
    }
   
$output .= implode(', ', $links);
   
$output .= ', ';
  }

 
$output = substr($output, 0, strlen($output)-2); // removes last comma with space
 
return $output;
}

/**
* Return a themed set of links.
*
* @param $links
*   A keyed array of links to be themed.
* @param $attributes
*   A keyed array of attributes
* @return
*   A string containing an unordered list of links.
*/
function art_links_woker($links, $attributes = array('class' => 'links')) {
 
$output = '';

  if (
count($links) > 0) {
   
$output = '';
   
$num_links = count($links);
   
$index = 0;

    foreach (
$links as $key => $link) {
     
$class = $key;
      if (
strpos ($class, "read_more") !== FALSE) {
        break;
      }

     
// Automatically add a class to each link and also to each LI
     
if (isset($link['attributes']) && isset($link['attributes']['class'])) {
       
$link['attributes']['class'] .= ' ' . $key;
      }
      else {
       
$link['attributes']['class'] = $key;
      }

      if (
$index > 0) {
       
$output .= '&nbsp;&nbsp;|&nbsp;';
      }

     
// Add first and last classes to the list of links to help out themers.
     
$extra_class = '';
      if (
$index == 1) {
       
$extra_class .= 'first ';
      }
      if (
$index == $num_links) {
       
$extra_class .= 'last ';
      }

      if (
$class) {
        if (
strpos ($class, "comment") !== FALSE) {
         
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon"/> <?php
          $output
.= ob_get_clean();
        }
        else {
         
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon"/> <?php
          $output
.= ob_get_clean();
        }
      }

     
$index++;
     
$output .= get_html_link_output($link);
    }
  }

  return
$output;
}

function
get_html_link_output($link) {
 
$output = '';
 
// Is the title HTML?
 
$html = isset($link['html']) && $link['html'];

 
// Initialize fragment and query variables.
 
$link['query'] = isset($link['query']) ? $link['query'] : NULL;
 
$link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL;

  if (isset(
$link['href'])) {
   
$output = l($link['title'], $link['href'], array('language' => $link['language'], 'attributes'=>$link['attributes'], 'query'=>$link['query'], 'fragment'=>$link['fragment'], 'absolute'=>FALSE, 'html'=>$html));
  }
  else if (
$link['title']) {
   
//Some links are actually not links, but we wrap these in <span> for adding title and class attributes
   
if (!$html) {
     
$link['title'] = check_plain($link['title']);
    }
   
$output = $link['title'];
  }

  return
$output;
}

/**
* Format the forum body.
*
* @ingroup themeable
*/
function art_content_replace($content) {
 
$first_time_str = '<div id="first-time"';
 
$article_str = 'class="article"';
 
$pos = strpos($content, $first_time_str);
  if(
$pos !== FALSE) {
   
$output = str_replace($first_time_str, $first_time_str . $article_str, $content);
   
$output = <<< EOT
<div class="Post">
  <div class="Post-body">
    <div class="Post-inner">
      <div class="PostContent">
       
$output
      </div>
    <div class="cleared"></div>
    </div>
  </div>
</div>
EOT;
  }
  else {
   
$output = $content;
  }
  return
$output;
}

function
artxGetContentCellStyle($left, $right, $content) {
  if (!empty(
$left) && !empty($right))
    return
'content';
  if (!empty(
$right))
    return
'content-sidebar1';
  if (!empty(
$left) > 0)
    return
'content-sidebar2';
  return
'content-wide';
}

function
art_submitted_worker($submitted, $date, $name) {
 
$output = '';
 
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostDateIcon.png" width="17" height="18" alt="PostDateIcon"/> <?php
  $output
.= ob_get_clean();
 
$output .= $date;
 
$output .= '&nbsp;|&nbsp;';
 
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostAuthorIcon.png" width="14" height="14" alt="PostAuthorIcon"/> <?php
  $output .= ob_get_clean();
  $output .= $name;
  return $output;
}

Dieser Befehl:
ob_start();?><img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostAuthorIcon.png" width="14" height="14" alt="PostAuthorIcon"/> <?php
Regelt das Einfügen, des grünen "Männchens" welches ja ersetzt werden soll mit der passenden User Badges.
Hat jemand eine Idee was dahin muss?
Denn wie gesagt diese Variante:
<?php print $profile[user_badges]; ?>
Klappt wohl nicht wie ich probiert habe.

Freue mich auf Hilfe.

Grüße

  • Anmelden oder Registrieren um Kommentare zu schreiben

Probier mal, obs klappt,

Eingetragen von Sammelzwerg (377)
am 14.02.2010 - 01:00 Uhr

Probier mal, obs klappt, wenn Du am Anfang der Datei folgendes einfügst:

<?php
profile_load_profile
($user);
?>

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

Das geht leider nicht. Problem besteht weiterhin mit dem Badges.

Eingetragen von Seppelchen (222)
am 14.02.2010 - 01:25 Uhr

Nein, das hilft dabei nichts. Es muss dafür eine Direkte Variable geben die vor der stelle output.....$name stehen muss quasi noch einmal einen Befehl mit output....$'die mir fehlende Variable für das Icon von Badges für die jeweilige Rolle in der dieser User der es geschrieben hat ist'
Hat jemand eine Ahnung welche Variable / welche Variablen das sind?

Grüße

  • Anmelden oder Registrieren um Kommentare zu schreiben

Vielleicht geht es mit einer

Eingetragen von Sammelzwerg (377)
am 14.02.2010 - 02:20 Uhr

Vielleicht geht es mit einer SQL Abfrage so nach dem Stil lese aus user_badges_user die bid des badges aus, und dann lese aus user_badges_badges die url dafür aus. Leider reichen meine mysql Kenntnisse dafür nicht aus, aber vielleicht hilft Dir das weiter.

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

Problem besteht weiterhin...:-(

Eingetragen von Seppelchen (222)
am 14.02.2010 - 09:31 Uhr

Kann ja sein, aber ich habe keine Ahnung was da hin muss bzw wie es geht, weiß es denn nun jemand zufällig wie das geht? Bzw. was da hin muss? Wäre echt nett.

Grüße

  • Anmelden oder Registrieren um Kommentare zu schreiben

Sooo, jetzt aber! Füge die

Eingetragen von Sammelzwerg (377)
am 14.02.2010 - 14:55 Uhr

Sooo, jetzt aber!

Füge die folgenden Zeien in deine Common_methods.php ein:

Nach

function
art_submitted_worker($submitted, $date, $name) {

dieses einfügen:

$res = substr($author, 15,6);
for ($i =0; $i <= 6; $i++){
$check = substr($res, $i,1);
if ($check =="\"") {break;}
$result .=$check;}
$row = db_fetch_array(db_query("SELECT bid FROM user_badges_user WHERE uid = '$result'"));
$badge_id = $row[bid];
$row = db_fetch_array(db_query("SELECT image FROM user_badges_badges WHERE bid =  $badge_id"));
$badge_url = $row[image];

und dann noch diese Zeile:

ob_start();?><img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostAuthorIcon.png" width="14" alt="PostAuthorIcon"/> <?php

mit dieser ersetzen:

ob_start();?><img class="art-metadata-icon" src="/<?php print $badge_url; ?>" width="14" height="14" alt="Badge Icon"/> <?php

Schreib bitte, ob es klappt, würde mich doch sehr interesieren.

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

klappt leider nicht...

Eingetragen von Seppelchen (222)
am 14.02.2010 - 16:10 Uhr

Hallo,

du sagtest ich solle es so machen (also diese Datei hochladen:
Code:

<?php
// $Id: common_methods.php,v 1.1 2009/05/15 07:28:06 agileware Exp $

/**
* Generate the HTML representing a given menu with Artisteer style.
*
* @param $mid
*   The block navigation content.
*
* @ingroup themeable
*/
function art_navigation_links_worker($content = NULL) {
  if (!
$content) {
    return
'';
  }

 
$output = $content;
 
$menu_str = ' class="menu"';
  if(
strpos($content, $menu_str) !== FALSE) {
   
$empty_str = '';
   
$pattern = '/class="menu"/i';
   
$replacement = 'class="artmenu"';
   
$output = preg_replace($pattern, $replacement, $output, 1);
   
$output = str_replace($menu_str, $empty_str, $output);
  }
 
$output = preg_replace('~(<a [^>]*>)([^<]*)(</a>)~', '$1<span class="l"></span><span class="r"></span><span class="t">$2</span>$3', $output);

  return
$output;
}

/**
* Split out taxonomy terms by vocabulary.
*
* @param $node
*   An object providing all relevant information for displaying a node:
*   - $node->nid: The ID of the node.
*   - $node->type: The content type (story, blog, forum...).
*   - $node->title: The title of the node.
*   - $node->created: The creation date, as a UNIX timestamp.
*   - $node->teaser: A shortened version of the node body.
*   - $node->body: The entire node contents.
*   - $node->changed: The last modification date, as a UNIX timestamp.
*   - $node->uid: The ID of the author.
*   - $node->username: The username of the author.
*
* @ingroup themeable
*/
function art_terms_worker($node) {
 
$output = '';
  if (isset(
$node->links)) {
   
$output = '&nbsp;&nbsp;|&nbsp;';
  }
 
$terms = $node->taxonomy;

  if (
$terms) {
   
$links = array();
   
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon"/> <?php
    $output
.= ob_get_clean();
   
$output .= t('Tags: ');
    foreach (
$terms as $term) {
     
$links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => strip_tags($term->description)));
    }
   
$output .= implode(', ', $links);
   
$output .= ', ';
  }

 
$output = substr($output, 0, strlen($output)-2); // removes last comma with space
 
return $output;
}

/**
* Return a themed set of links.
*
* @param $links
*   A keyed array of links to be themed.
* @param $attributes
*   A keyed array of attributes
* @return
*   A string containing an unordered list of links.
*/
function art_links_woker($links, $attributes = array('class' => 'links')) {
 
$output = '';

  if (
count($links) > 0) {
   
$output = '';
   
$num_links = count($links);
   
$index = 0;

    foreach (
$links as $key => $link) {
     
$class = $key;
      if (
strpos ($class, "read_more") !== FALSE) {
        break;
      }

     
// Automatically add a class to each link and also to each LI
     
if (isset($link['attributes']) && isset($link['attributes']['class'])) {
       
$link['attributes']['class'] .= ' ' . $key;
      }
      else {
       
$link['attributes']['class'] = $key;
      }

      if (
$index > 0) {
       
$output .= '&nbsp;&nbsp;|&nbsp;';
      }

     
// Add first and last classes to the list of links to help out themers.
     
$extra_class = '';
      if (
$index == 1) {
       
$extra_class .= 'first ';
      }
      if (
$index == $num_links) {
       
$extra_class .= 'last ';
      }

      if (
$class) {
        if (
strpos ($class, "comment") !== FALSE) {
         
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon"/> <?php
          $output
.= ob_get_clean();
        }
        else {
         
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon"/> <?php
          $output
.= ob_get_clean();
        }
      }

     
$index++;
     
$output .= get_html_link_output($link);
    }
  }

  return
$output;
}

function
get_html_link_output($link) {
 
$output = '';
 
// Is the title HTML?
 
$html = isset($link['html']) && $link['html'];

 
// Initialize fragment and query variables.
 
$link['query'] = isset($link['query']) ? $link['query'] : NULL;
 
$link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL;

  if (isset(
$link['href'])) {
   
$output = l($link['title'], $link['href'], array('language' => $link['language'], 'attributes'=>$link['attributes'], 'query'=>$link['query'], 'fragment'=>$link['fragment'], 'absolute'=>FALSE, 'html'=>$html));
  }
  else if (
$link['title']) {
   
//Some links are actually not links, but we wrap these in <span> for adding title and class attributes
   
if (!$html) {
     
$link['title'] = check_plain($link['title']);
    }
   
$output = $link['title'];
  }

  return
$output;
}

/**
* Format the forum body.
*
* @ingroup themeable
*/
function art_content_replace($content) {
 
$first_time_str = '<div id="first-time"';
 
$article_str = 'class="article"';
 
$pos = strpos($content, $first_time_str);
  if(
$pos !== FALSE) {
   
$output = str_replace($first_time_str, $first_time_str . $article_str, $content);
   
$output = <<< EOT
<div class="Post">
  <div class="Post-body">
    <div class="Post-inner">
      <div class="PostContent">
       
$output
      </div>
    <div class="cleared"></div>
    </div>
  </div>
</div>
EOT;
  }
  else {
   
$output = $content;
  }
  return
$output;
}

function
artxGetContentCellStyle($left, $right, $content) {
  if (!empty(
$left) && !empty($right))
    return
'content';
  if (!empty(
$right))
    return
'content-sidebar1';
  if (!empty(
$left) > 0)
    return
'content-sidebar2';
  return
'content-wide';
}

function
art_submitted_worker($submitted, $date, $name) {
$res = substr($author, 15,6);
for (
$i =0; $i <= 6; $i++){
$check = substr($res, $i,1);
if (
$check =="\"") {break;}
$result .=$check;}
$row = db_fetch_array(db_query("SELECT bid FROM user_badges_user WHERE uid =
'
$result'"));
$badge_id = $row[bid];
$row = db_fetch_array(db_query("SELECT image FROM user_badges_badges WHERE
bid = 
$badge_id"));
$badge_url = $row[image];
 
$output = '';
 
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostDateIcon.png" width="17" height="18" alt="PostDateIcon"/> <?php
  $output
.= ob_get_clean();
 
$output .= $date;
 
$output .= '&nbsp;|&nbsp;';
ob_start();?>
<img class="art-metadata-icon" src="/<?php print $badge_url; ?>"width="14" height="14" alt="Badge Icon"/> <?php
  $output .= ob_get_clean();
  $output .= $name;
  return $output;
}

Auch das klappt jedoch nicht er zeigt nicht das passende an.
Warum klappt das nicht?
Man sieht lediglich eine Fehlermeldung und ein kleines Kästchen was leer ist...
Hat jemand noch eine andere Idee?

Grüße

  • Anmelden oder Registrieren um Kommentare zu schreiben

Wie lautet denn die

Eingetragen von Sammelzwerg (377)
am 14.02.2010 - 19:22 Uhr

Wie lautet denn die Fehlermeldung?

ups, ein Tippfehler von mir:

$row = db_fetch_array(db_query("SELECT image FROM user_badges_badges WHERE
bid =  $badge_id"));

richtig muss es heissen:

$row = db_fetch_array(db_query("SELECT image FROM user_badges_badges WHERE
bid =  '$badge_id'"));

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

Es klappt immer noch nicht

Eingetragen von Seppelchen (222)
am 14.02.2010 - 19:48 Uhr

Hallo,

dieser Code:

<?php
// $Id: common_methods.php,v 1.1 2009/05/15 07:28:06 agileware Exp $

/**
* Generate the HTML representing a given menu with Artisteer style.
*
* @param $mid
*   The block navigation content.
*
* @ingroup themeable
*/
function art_navigation_links_worker($content = NULL) {
  if (!
$content) {
    return
'';
  }

 
$output = $content;
 
$menu_str = ' class="menu"';
  if(
strpos($content, $menu_str) !== FALSE) {
   
$empty_str = '';
   
$pattern = '/class="menu"/i';
   
$replacement = 'class="artmenu"';
   
$output = preg_replace($pattern, $replacement, $output, 1);
   
$output = str_replace($menu_str, $empty_str, $output);
  }
 
$output = preg_replace('~(<a [^>]*>)([^<]*)(</a>)~', '$1<span class="l"></span><span class="r"></span><span class="t">$2</span>$3', $output);

  return
$output;
}

/**
* Split out taxonomy terms by vocabulary.
*
* @param $node
*   An object providing all relevant information for displaying a node:
*   - $node->nid: The ID of the node.
*   - $node->type: The content type (story, blog, forum...).
*   - $node->title: The title of the node.
*   - $node->created: The creation date, as a UNIX timestamp.
*   - $node->teaser: A shortened version of the node body.
*   - $node->body: The entire node contents.
*   - $node->changed: The last modification date, as a UNIX timestamp.
*   - $node->uid: The ID of the author.
*   - $node->username: The username of the author.
*
* @ingroup themeable
*/
function art_terms_worker($node) {
 
$output = '';
  if (isset(
$node->links)) {
   
$output = '&nbsp;&nbsp;|&nbsp;';
  }
 
$terms = $node->taxonomy;

  if (
$terms) {
   
$links = array();
   
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostTagIcon.png" width="18" height="18" alt="PostTagIcon"/> <?php
    $output
.= ob_get_clean();
   
$output .= t('Tags: ');
    foreach (
$terms as $term) {
     
$links[] = l($term->name, taxonomy_term_path($term), array('rel' => 'tag', 'title' => strip_tags($term->description)));
    }
   
$output .= implode(', ', $links);
   
$output .= ', ';
  }

 
$output = substr($output, 0, strlen($output)-2); // removes last comma with space
 
return $output;
}

/**
* Return a themed set of links.
*
* @param $links
*   A keyed array of links to be themed.
* @param $attributes
*   A keyed array of attributes
* @return
*   A string containing an unordered list of links.
*/
function art_links_woker($links, $attributes = array('class' => 'links')) {
 
$output = '';

  if (
count($links) > 0) {
   
$output = '';
   
$num_links = count($links);
   
$index = 0;

    foreach (
$links as $key => $link) {
     
$class = $key;
      if (
strpos ($class, "read_more") !== FALSE) {
        break;
      }

     
// Automatically add a class to each link and also to each LI
     
if (isset($link['attributes']) && isset($link['attributes']['class'])) {
       
$link['attributes']['class'] .= ' ' . $key;
      }
      else {
       
$link['attributes']['class'] = $key;
      }

      if (
$index > 0) {
       
$output .= '&nbsp;&nbsp;|&nbsp;';
      }

     
// Add first and last classes to the list of links to help out themers.
     
$extra_class = '';
      if (
$index == 1) {
       
$extra_class .= 'first ';
      }
      if (
$index == $num_links) {
       
$extra_class .= 'last ';
      }

      if (
$class) {
        if (
strpos ($class, "comment") !== FALSE) {
         
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostCommentsIcon.png" width="18" height="18" alt="PostCommentsIcon"/> <?php
          $output
.= ob_get_clean();
        }
        else {
         
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostCategoryIcon.png" width="18" height="18" alt="PostCategoryIcon"/> <?php
          $output
.= ob_get_clean();
        }
      }

     
$index++;
     
$output .= get_html_link_output($link);
    }
  }

  return
$output;
}

function
get_html_link_output($link) {
 
$output = '';
 
// Is the title HTML?
 
$html = isset($link['html']) && $link['html'];

 
// Initialize fragment and query variables.
 
$link['query'] = isset($link['query']) ? $link['query'] : NULL;
 
$link['fragment'] = isset($link['fragment']) ? $link['fragment'] : NULL;

  if (isset(
$link['href'])) {
   
$output = l($link['title'], $link['href'], array('language' => $link['language'], 'attributes'=>$link['attributes'], 'query'=>$link['query'], 'fragment'=>$link['fragment'], 'absolute'=>FALSE, 'html'=>$html));
  }
  else if (
$link['title']) {
   
//Some links are actually not links, but we wrap these in <span> for adding title and class attributes
   
if (!$html) {
     
$link['title'] = check_plain($link['title']);
    }
   
$output = $link['title'];
  }

  return
$output;
}

/**
* Format the forum body.
*
* @ingroup themeable
*/
function art_content_replace($content) {
 
$first_time_str = '<div id="first-time"';
 
$article_str = 'class="article"';
 
$pos = strpos($content, $first_time_str);
  if(
$pos !== FALSE) {
   
$output = str_replace($first_time_str, $first_time_str . $article_str, $content);
   
$output = <<< EOT
<div class="Post">
  <div class="Post-body">
    <div class="Post-inner">
      <div class="PostContent">
       
$output
      </div>
    <div class="cleared"></div>
    </div>
  </div>
</div>
EOT;
  }
  else {
   
$output = $content;
  }
  return
$output;
}

function
artxGetContentCellStyle($left, $right, $content) {
  if (!empty(
$left) && !empty($right))
    return
'content';
  if (!empty(
$right))
    return
'content-sidebar1';
  if (!empty(
$left) > 0)
    return
'content-sidebar2';
  return
'content-wide';
}

function
art_submitted_worker($submitted, $date, $name) {
$res = substr($author, 15,6);
for (
$i =0; $i <= 6; $i++){
$check = substr($res, $i,1);
if (
$check =="\"") {break;}
$result .=$check;}
$row = db_fetch_array(db_query("SELECT bid FROM user_badges_user WHERE uid =
'
$result'"));
$badge_id = $row[bid];
$row = db_fetch_array(db_query("SELECT image FROM user_badges_badges WHERE
bid =  '
$badge_id'"));
$badge_url = $row[image];
 
$output = '';
 
ob_start();?>
<img class="metadata-icon" src="<?php echo get_full_path_to_theme(); ?>/images/PostDateIcon.png" width="17" height="18" alt="PostDateIcon"/> <?php
  $output
.= ob_get_clean();
 
$output .= $date;
 
$output .= '&nbsp;|&nbsp;';
ob_start();?>
<img class="art-metadata-icon" src="/<?php print $badge_url; ?>"width="14" height="14" alt="Badge Icon"/> <?php
  $output .= ob_get_clean();
  $output .= $name;
  return $output;
}

Klappt auch nicht er leißt das Logo nicht aus. Wenn ich dass Profil anschaue der User sehe ich aber eine Überschrift mit Badges und da zeigt es das jeweilige Badge von dem User an aber ebend nicht in dem Beitrag...
Hat jemand eine Idee?
Einfach wäre es schon wenn ich zb wüsste wo ich suchen müsste wo, dass User Profil gezeigt wird....
Hat jemand noch eine Idee, wie es gehen könnte?

Grüße

  • Anmelden oder Registrieren um Kommentare zu schreiben

Gibts denn jetzt immer noch

Eingetragen von Sammelzwerg (377)
am 14.02.2010 - 22:12 Uhr

Gibts denn jetzt immer noch eine Fehlermeldung, und wenn ja wie lautet diese?

So langsam bin ich mit meinem Latein am Ende, ich habe mir das nötige Sql dfür ja auch erst heute angelesen. Bei meiner Testinstallation klappt es aber einwandfrei, darum verstehe ich das Ganze nicht so recht. Kannst Du auch mal probieren, ob es hilft, den Cache zu leeren?

Und vielleicht kann ja jemand anderes noch einen Tip beisteuern?

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

Problem....

Eingetragen von Seppelchen (222)
am 14.02.2010 - 23:21 Uhr

Hallo,

ja vllt kann jemand anders noch was dazu beisteueren. Nein es kommt keine Fehlermeldung mehr es wird lediglich die Datei(Grafik) davor nicht ausgegeben.
Welchen Cache?
Der Cache der Seite oder des Explorers, der vom Explorer war geleert wurden.

Grüße

  • Anmelden oder Registrieren um Kommentare zu schreiben

Den Cache von der Seite

Eingetragen von Sammelzwerg (377)
am 14.02.2010 - 23:25 Uhr

Den Cache von der Seite meinte ich, /admin/settings/performance.
Wird denn gar nichts angezeigt, oder so eine "leere Graik"?

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

zur Grafik

Eingetragen von Seppelchen (222)
am 14.02.2010 - 23:28 Uhr

Es zeigt ein leeres Kästchen mit den angegebenen Pixelmaßen an aber nicht die Grafik und wenn ich im User Profil schaue steht aber die Grafik unter Badges drin...

  • Anmelden oder Registrieren um Kommentare zu schreiben

Mach mal rechtsklick auf dem

Eingetragen von Sammelzwerg (377)
am 14.02.2010 - 23:30 Uhr

Mach mal rechtsklick auf dem Kästchen, und schreib was da bei Eigenschaften unter Adresse steht.

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

Bild Infos

Eingetragen von Seppelchen (222)
am 14.02.2010 - 23:41 Uhr

Da steht nichts zu drin.
Ich kann nur eventuell dafür mal einen User anlegen, damit einer, der Interesse hat mal schauen kann.
Wenn jemand möchte, dann bitte bei meinem Profil hier Link: http://www.drupalcenter.de/user/10252 mal unter Kontaktieren ne Mail senden, dann sende ich Zugangsdaten zu.

Würde mich freuen wenn jemand Interesse hätte.

Grüße

  • Anmelden oder Registrieren um Kommentare zu schreiben

Mail geschickt

Eingetragen von Sammelzwerg (377)
am 15.02.2010 - 00:01 Uhr

Ich würde gerne helfen, Mail ist raus.

http://www.sammelzwerge.de/

  • Anmelden oder Registrieren um Kommentare zu schreiben

Benutzeranmeldung

  • Registrieren
  • Neues Passwort anfordern

Aktive Forenthemen

  • 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
  • Nach Installation der neuesten D10-Version kein Zugriff auf Website
  • Composer nach Umzug
  • [gelöst] Taxonomie Begriffe zeigt nicht alle Nodes an
  • Drupal 11 + Experience Builder (Canvas) + Layout Builder
  • Welche KI verwendet ihr?
  • Update Manger läst sich nicht Installieren
Weiter

Neue Kommentare

  • melde mich mal wieder, da ich
    vor 2 Wochen 2 Tagen
  • Hey danke
    vor 2 Wochen 3 Tagen
  • Update: jetzt gibt's ein
    vor 2 Wochen 4 Tagen
  • Hallo, im Prinzip habe ich
    vor 3 Wochen 1 Tag
  • Da scheint die Terminologie
    vor 3 Wochen 1 Tag
  • Kannst doch auch alles direkt
    vor 3 Wochen 6 Tagen
  • In der entsprechenden View
    vor 3 Wochen 6 Tagen
  • Dazu müsstest Du vermutlich
    vor 3 Wochen 6 Tagen
  • gelöst
    vor 6 Wochen 2 Tagen
  • Ja natürlich. Dass ist etwas,
    vor 6 Wochen 3 Tagen

Statistik

Beiträge im Forum: 250233
Registrierte User: 20454

Neue User:

  • ByteScrapers
  • Mroppoofpaync
  • 4aficiona2

» Alle User anzeigen

User nach Punkten sortiert:
wla9461
stBorchert6003
quiptime4972
Tobias Bähr4019
bv3924
ronald3857
md3717
Thoor3678
Alexander Langer3416
Exterior2903
» User nach Punkten
Zur Zeit sind 0 User und 26 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