User Photo - Plugin Installation

  • So, schon wieder am nerven, mit ner neuen Frage...!
    Ich habe das Plguin User Photo (WordPress › User Photo « WordPress Plugins). Hochgeladen,...
    Wie kann dieses Plugin jetzt nutzen?
    Auf der Seite steht daz noch folgeneder Text:

    Code
    New template tags introduced are:   [LIST]
    [*]userphoto_the_author_photo()
    [*]userphoto_the_author_thumbnail()
    [*]userphoto_comment_author_photo()
    [*]userphoto_comment_author_thumbnail()[/LIST]  The first two should be placed in the posts loop near the_author(), and the second two in the comments loop near comment_author() (or their respective equivalents). Furthermore, userphoto_the_author_photo() and userphoto_the_author_thumbnail() may be called anywhere (i.e. sidebar) if $authordata is set.
      The output of these template tags may be modified by passing four parameters: $before, $after,     $attributes, and $default_src, as in: userphoto_the_author_photo($before, $after, $attributes, $default_src). If the user photo exists (or $default_src is supplied), then the text provided in the $before and $after parameters is respectively prefixed and suffixed to the generated img tag (a common pattern in WordPress). If attributes are provided in the $attributes parameter, then they are returned as attributes of the generated img element. For example: userphoto_the_author_photo('', '', array(style => 'border:0')) Just added in 0.8.1 release are these two new template tags:
      [LIST]
    [*]userphoto($userdata, $before = '', $after = '', $attributes = array(), $default_src = '')
    [*]userphoto_thumbnail($userdata, $before = '', $after = '', $attributes = array(), $default_src = '')[/LIST]  By using these, it is uneccessary to set the global $authordata to display a photo. Just pass $authordata, $curauth or whatever variable you have which contains the user object.

    Jetzt meine Frage: was bedeutet das, muss ich diese Sahcne in mein Template integrieren? Oder auf der Seite, auf welcgher dann die Bilder neben den Personen angezeigt werden sollen? Oder wo?
    Ußerdem werden die Bilder irgendwie nicht bei den Kommentaren angezeigt... Tausende Fragen aml wieder... Hoffe mir kann jemand helfen...

    Danke im vorraus!

    Gregor

    Von nichts ne Ahnung, aber zu allem ne Meinung!

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • Zitat

    The first two should be placed in the posts loop near the_author(), and the second two in the comments loop near comment_author()

    heißt: Die ersten beiden userphoto_the_author_photo() und userphoto_the_author_thumbnail() müssen in die index.php, single.php, page.php und wie sie alle heißen, in die Nähe des <?php the_author() ?>.

    Die anderen beiden userphoto_comment_author_photo() und userphoto_comment_author_thumbnail() müssen in die comments.php.

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

  • Hallo Maxe,

    schon mal Danke für die Antwort! Zumindest weiss ich jetzt, um welche Dateien es sich handelt.

    Allerdings wie füge ich die TAGS in den Loop ein?

    mit:

    Zitat


    <?php userphoto_comment_author_photo() ?>
    <?php userphoto_the_author_thumbnail() ?>



    wohl nicht, denn dann erscheint sofort das Thumbnail auf der Startseite ....

    Fragen über Fragen ....:cry:

  • wenn es nicht auf der Startseite erscheinen soll, lässt Du den Eintrag in der index.php weg. Einfach in die Dateien rein, wo es erscheinen soll.

    [size=10]Bitte immer zuerst die Forensuche nutzen und erst danach Deine Fragen hier im Forum stellen, denn sehr vieles wurde schon mehrfach beantwortet. Bitte dabei auch die Forenregeln beachten.
    Kein Support per PN - Fragen gehören ins Forum.[/SIZE]
    [size=8]Wenn du eine weise Antwort verlangst, musst du vernünftig fragen. (Johann Wolfgang von Goethe)[/SIZE]

  • wie bekomme ich die Bilder in mein Profiler Plugin...hier die profiler.php

    passt leider nicht mehr rein...aber das müsste der teil sein der wichtig ist. Die ganze habe ich als Datei gibts hier

    http://www.flirt-devils.de/wp-content/plu…er/profiler.txt

  • jupp, mich würde auch interessieren, wie ich das userphoto in die profiler.php bekomme. ich nutze das plugin "users photo" mit dem plugin "customize your community". ohne cyc-plugin kann man das photo unter profil sehen. mit dem plugin nicht. was ist zu tun?


    _____________________
    Einfach was für die Umwelt tun.
    http://wordpress.org/extend/plugins/my-co2-campaign/

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!