Zurück   WordPress Deutschland Forum > Support > Plugins und Widgets

Antwort
 
Themen-Optionen Ansicht
Alt 03.03.2008, 15:46   #11 (permalink)
PostRank: 0
 
Registriert seit: 08.01.2008
Ort: Hauswalde
Beiträge: 16
Ich benutze Wordpress 2.3.3 und das Einbinden der Avatare bei den Kommentaren funktioniert. Jetzt würde ich gerne bei der Single-Ansicht der Beiträge gerne noch das Avatar des Autors anzeigen lassen. Aber das funktioniert nicht. Mein Quellcode:
PHP-Code:
<?php $user_forum_ava get_usermeta($the_author_id,'wp_ejablogsfavatar'); ?>
    <?php
    
if (!empty($user_forum_ava)) {
     echo(
"<img src=\"wp-content/forum-avatars/".$user_forum_ava."\" alt=\"Avatar\"/>\n");
    } else {
     echo(
"<img src=\"wp-content/forum-avatars/userdefault.png\" alt=\"Avatar\"/>\n");
    }
    
?>
Was genau muss ich in die Klammer bei
PHP-Code:
get_usermeta($the_author_id,'wp_ejablogsfavatar'
reinschreiben? Der Rest funktioniert, das habe ich schon ausprobiert.
stromradau ist offline   Mit Zitat antworten
Alt 03.03.2008, 16:43   #12 (permalink)
PostRank: 3
 
Benutzerbild von Cheezy Chris
 
Registriert seit: 30.10.2006
Ort: Nürnberg
Beiträge: 146
habe ne frage an den themen ersteller, und zwar habe da ein prob mit Simple
Forum :Forum Plugin für Wordpress 2.3

wie bist du bei der installation vorgegangen weil wenn ich das plugin aktivieren will kommt immer kann nicht aktiviert werdenn weil es einen fehler verursacht. Nun ja keiner weiss an was es liegen könnte. Vielleicht weisst du nen tipp


Danke
Cheezy Chris ist offline   Mit Zitat antworten
Alt 04.03.2008, 22:46   #13 (permalink)
PostRank: 0
 
Registriert seit: 08.01.2008
Ort: Hauswalde
Beiträge: 16
Ich hab Simple Forum Version 2.1 (Build 237) auf Wordpress 2.3.3 DE Problemlos zum laufen gebracht.
gibts niemanden, der mir bei meinem Problem helfen kann?
stromradau ist offline   Mit Zitat antworten
Alt 10.08.2008, 09:06   #14 (permalink)
PostRank: 2
 
Registriert seit: 01.03.2008
Beiträge: 77
Zitat:
Zitat von S51 Beitrag anzeigen
hab es jetzt endlich selber geschafft mit den Avataren!
Der Fehler lag darin:



vielleicht hat ja irgendjemand mal das gleiche Problem, dann hilft das vielleicht hier, dass ich das nochmal geschrieben hab!

Und wo kommt das alles rein ...hab schon überall getestet und immer geht was nicht mehr!
Bitte mal für Anfänger..Dankäääää
ohnegleichen76 ist offline   Mit Zitat antworten
Alt 10.08.2008, 10:10   #15 (permalink)
PostRank: 6
 
Benutzerbild von infected
 
Registriert seit: 09.07.2006
Ort: Nettetal
Beiträge: 650
Das gehört dann in die comments.php des Themes... Geht mittlerweile aber auch mit weitaus weniger Code:

Code:
<?php sf_show_forum_avatar($comment->comment_author_email); ?>
__________________
There are only 10 types of people in the world: those who understand binary and those who don't.

Geändert von infected (10.08.2008 um 10:13 Uhr).
infected ist offline   Mit Zitat antworten
Alt 10.08.2008, 11:53   #16 (permalink)
PostRank: 2
 
Registriert seit: 01.03.2008
Beiträge: 77
dann kommt bei mir das

Parse error: syntax error, unexpected '<' in /var/www/web19/html/wp-includes/comment.php on line 47
die comment.php (die im includ Ordner?)


und wo dann das

<?php sf_show_forum_avatar($comment->comment_author_email); ?>

rein?
ohnegleichen76 ist offline   Mit Zitat antworten
Alt 10.08.2008, 13:16   #17 (permalink)
PostRank: 6
 
Benutzerbild von infected
 
Registriert seit: 09.07.2006
Ort: Nettetal
Beiträge: 650
Zitat:
Zitat von infected Beitrag anzeigen
Das gehört dann in die comments.php des Themes...
...also in wp-content/themes/deintheme/comments.php

So sieht´s zum Beispiel in meiner comments.php aus:

Code:
...
    <?php foreach ($comments as $comment) : ?>

        <li <?php echo $oddcomment; ?>id="comment-<?php comment_ID() ?>">
      <div class="commentmetadata">
      <?php sf_show_forum_avatar($comment->comment_author_email); ?>
      <strong>Nr.:</strong> <?php echo("$cnr"); ?><br />
      <strong>geschrieben von:</strong> <?php comment_author_link() ?><br />
      <strong>Datum:</strong> <?php comment_date('d. F Y') ?><br />
      <strong>Uhrzeit:</strong> <?php comment_time() ?> Uhr
            <?php if ($comment->comment_approved == '0') : ?>
            <div class="moderate">Der Kommentar muss erst freigeschaltet werden!</div>
            <?php endif; ?>
            <br />
            <div class="clear" />
            <?php comment_text() ?>
      </div>
        </li>

...
__________________
There are only 10 types of people in the world: those who understand binary and those who don't.
infected ist offline   Mit Zitat antworten
Alt 10.08.2008, 19:00   #18 (permalink)
PostRank: 2
 
Registriert seit: 01.03.2008
Beiträge: 77
meine comment.php sieht so aus

PHP-Code:
<?php // Do not delete these lines
    
if ('comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
        die (
'So nicht!');

        if (!empty(
$post->post_password)) { // if there's a password
            
if ($_COOKIE['wp-postpass_'.$cookiehash] != $post->post_password) {  // and it doesn't match the cookie
?>
                <p class="nocomments"><?php _e("Dieser Beitrag ist Passwortgesch�tzt, gib das Passwort ein um die Kommentare zu lesen!"); ?><p>
<?php
                
return;
            }
        }

        
/* This variable is for alternating comment background */
        
$oddcomment "alt";
        
/* This variable is for the depiction of comment numbers */
        
$commentNO 0;
?>
            <div id="comments">

<?php if ($comments) : ?>

<?php sf_show_forum_avatar($comment->comment_author_email); ?>

                <h3 id="comments"><?php comments_number('Keine Kommentare''Ein Kommentar''% Kommentare' );?></h3>
                
    <?php foreach ($comments as $comment) : ?>
    <?php $commentNO++; ?>

                <div id="comment-<?php comment_ID() ?>" class="comment">



                
<?
if (function_exists('gravatar')) {
    if (
'' != get_comment_author_url()) {
        echo 
"<a href='$comment->comment_author_url' title='Besuche $comment->comment_author'>";
    } else {
        echo 
"<a href='http://www.gravatar.com' title='Speichere Deinen eigenen Gravatar auf gravatar.com!'>";
    }
    echo 
"<img src='";
    if (
'' == $comment->comment_type) {
        echo 
gravatar($comment->comment_author_email);
    } elseif ( (
'trackback' == $comment->comment_type) || ('pingback' == $comment->comment_type) ) {
        echo 
gravatar($comment->comment_author_url);
    }
    echo 
"' alt='' class='gravatar' /></a>";
}
?>
                    <h4><a href="#comment-<?php comment_ID() ?>" class="commentnumber" title="Permanenter Link zu Kommentar <?php comment_ID() ?>"><?php echo $commentNO?>.</a> <img src="<?php echo bloginfo('template_url'); ?>/images/user_comment.png" class="contentimage" /> <?php comment_author_link() ?> schrieb am <?php comment_date('d. F Y'?> um <?php comment_time() ?></dt></h4>
                    <p><?php comment_text() ?></p>
                
                </div>


    <?php endforeach; /* end for each comment */ ?>

 <?php else : // this is displayed if there are no comments so far ?>
 
      <?php if ('open' == $post->comment_status) : ?> 

        <!-- If comments are open, but there are no comments. -->
        <h1>Noch keine Kommentare!</h1>
        
    <?php else : // comments are closed ?>

        <!-- If comments are closed. -->
        <h1>Kommentare deaktiviert!</h1>
        
    <?php endif; ?>

    
<?php endif; ?>

            </div>


<?php if ('open' == $post-> comment_status) : ?>

            <div id="commentform">

                <a name="postcomment"></a><h1>Schreibe einen Kommentar</h1>
                
                <form action="<?php echo get_settings('siteurl'); ?>/wp-comments-post.php" method="post" id="commentform">
                <input type="hidden" name="comment_post_ID" value="<?php echo $id?>" />
                <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"]); ?>" />

<?php if ($user_ID) : ?>

                <p>Eingeloggt als: <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity?></a>. <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout" title="<?php _e('Log out of this account'?>">Logout &raquo;</a></p>

<?php else : ?>
                <p>
                    <input type="text" name="author" id="author" value="<?php echo $comment_author?>" size="35" tabindex="1" class="text" />
                    <label for="author">Name</label>
                </p>

                <p>
                    <input type="text" name="email" id="email" value="<?php echo $comment_author_email?>" size="35" tabindex="2" class="text" />
                    <label for="email">E-Mail (wird nicht angezeigt)</label>
                </p>

                
                    <input type="text" name="url" id="url" value="<?php echo $comment_author_url?>" size="35" tabindex="3" class="text" />
                    <label for="url">Website</label>
                </p>



<?php endif; ?>


                <p class="commentforminfo">Folgende Tags sind erlaubt: <?php echo allowed_tags(); ?></p>

                <p><textarea name="comment" id="comment" cols="60" rows="10" tabindex="4" class="text"></textarea></p>

                <p><input name="submit" type="submit" id="submit" tabindex="5" value="Kommentar schreiben" class="text" /></p>

                <?php do_action('comment_form'$post->ID); ?>
                </form>

            </div>

<?php endif; ?>
ohnegleichen76 ist offline   Mit Zitat antworten
Alt 19.08.2008, 08:41   #19 (permalink)
PostRank: 2
 
Registriert seit: 01.03.2008
Beiträge: 77
Ich hoffe mir kann irgendwer helfen. Ich bekomme die Bilder nicht angezeigt wenn ich unter Forum/Profil ein Bild hochlade kommt das

AVATAR UPLOAD FEHLER: Zielverzeichnis nicht erreichbar- Profil Eintrag:Profil aktualisiert.

Zieverzeichniss ist angelegt und hat Rechte 777

im Forum habe ich dann bei Bilder upload den Pfad so angegeben
wp-content/plugins/simple-forum/avatars
ohnegleichen76 ist offline   Mit Zitat antworten
Alt 19.08.2008, 09:06   #20 (permalink)
PostRank: 6
 
Benutzerbild von infected
 
Registriert seit: 09.07.2006
Ort: Nettetal
Beiträge: 650
Manchmal empfiehlt es sich den Thread von Beginn an zu lesen

Zitat:
As part of the upgrade process for Version 2.0 and for ALL NEW installations, the AVATARS folder (currently a sub-folder of the ‘simple-forum’ folder) will be moved to a new location with a new name at:
/wp-content/forum-avatars
Der Pfad in den Optionen hat (wenn ich mich jetzt nicht irre - kann´s leider gerade nicht nachschauen) nichts mit den Avataren zu tun, sondern mit den Bildern die eventuell in Forenposts eingebunden werden.
__________________
There are only 10 types of people in the world: those who understand binary and those who don't.
infected ist offline   Mit Zitat antworten
Antwort

Lesezeichen

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist aus.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Alle Zeitangaben in WEZ +1. Es ist jetzt 20:26 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 | Impressum | Ein Inpsyde.com Projekt