Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // in der template.php (Drupal 6)
- function phptemplate_preprocess_comment(&$variables) {
- $comment = $variables['comment'];
- $node = $variables['node'];
- $variables['author'] = theme('username', $comment);
- $variables['content'] = $comment->comment;
- $variables['date'] = format_date($comment->timestamp);
- $variables['links'] = isset($variables['links']) ? theme('links', $variables['links']) : '';
- $variables['new'] = $comment->new ? t('new') : '';
- $variables['picture'] = theme_get_setting('toggle_comment_user_picture') ? theme('user_picture', $comment) : '';
- $variables['signature'] = $comment->signature;
- $variables['submitted'] = theme('comment_submitted', $comment);
- $variables['title'] = l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid"));
- $variables['template_files'][] = 'comment-'. $node->type;
- // set status to a string representation of comment->status.
- if (isset($comment->preview)) {
- $variables['status'] = 'comment-preview';
- }
- else {
- $variables['status'] = ($comment->status == COMMENT_NOT_PUBLISHED) ? 'comment-unpublished' : 'comment-published';
- }
- }
- // Fehlermeldung in der node Ansicht:
- * warning: Invalid argument supplied for foreach() in C:\Localhost\projects\iquarius\de_iquarius_www\includes\theme.inc on line 1145.
- * warning: Invalid argument supplied for foreach() in C:\Localhost\projects\iquarius\de_iquarius_www\includes\theme.inc on line 1145.
- * warning: Invalid argument supplied for foreach() in C:\Localhost\projects\iquarius\de_iquarius_www\includes\theme.inc on line 1145.
- Wobei es bei der theme_links() irgendwie zu problemen kommt.
Advertisement
Add Comment
Please, Sign In to add comment