• Habe oben genanntes Plugin inst. , habe auch ein jpg Bild genommen und es kommt immer folgende Fehlermeldung ! Jemand eine Idee

    Error: Please only upload jpg files! Your content type is
    Please go back and try again.

    • 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

  • kann jemand damit was anfangen? Ich find hier nichts verwertbares:confused:

    Allows a user to associate a profile photo with their account through their "Your Profile" page. Admins may add a user profile photo by accessing the "Edit User" page. Uploaded images are resized to fit the dimensions specified on the options page; a thumbnail image correspondingly is also generated. User photos may be displayed within a post or a comment to help identify the author. New template tags introduced are:

    • userphoto_the_author_photo()
    • userphoto_the_author_thumbnail()
    • userphoto_comment_author_photo()
    • userphoto_comment_author_thumbnail()

    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:

    • userphoto($userdata, $before = '', $after = '', $attributes = array(), $default_src = '')
    • userphoto_thumbnail($userdata, $before = '', $after = '', $attributes = array(), $default_src = '')

    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.

  • Habe jetzt erfolgreich die Bilder in den Kommentaren drin mit dem Code

    PHP
    <?php if(function_exists('cmd_show_avatar')){ cmd_show_avatar(); } ?>


    in meine profiler.php habe ich ihn dann so

    PHP
    if(function_exists('cmd_show_avatar')){ cmd_show_avatar(); }


    da ich sonst eine Fehlermeldung bekomme wegen dem <.
    In den Kommentaren wird auch jedem User sein Bildchen angezeigt, im Profil nur das vom Admin also von mir. Warum :confused: Ist doch der gleiche code.
    Kann jemand helfen...gibt doch schon so viele ungeschloßenne Sachen hier.

Jetzt mitmachen!

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