[COLOR=red]Hallo an Alle ! Bin neu hier und noch Anfänger![/COLOR]
ich habe folgende Plugins installiert: [COLOR=#000066]Exec-PHP[/COLOR] [COLOR=#00019b]Userpic & Avatar[/COLOR] [COLOR=#00019b]Get Author Profile[/COLOR]
[COLOR=#00019b]WP User Manager[/COLOR] und möchte meine User Profile anzeigen ! Wenn ich es mit diesem Befehl mache: [COLOR=royalblue]<?php wp_list_authors(); ?>[/COLOR] oder auch andere, kommen zwar alle Profile, wenn man diese anklickt, ab nicht das profil, sondern die [COLOR=darkred]Beiträge !![/COLOR]
Möchte ab die Profilinfo anzeigen, also mail alter url usw...und auch das Profilfoto oder Avatar!
Was muss ich da machen ??? DANKE !! Für eure HILFE !!!
User Profile anzeigen !
-
-
- Gerade eben
- 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)
-
Steht doch da!guff : Get Author Profile
erstelle author.php mit z.B.- $author_aim (AOL Instant Messenger ID)
- $author_displayname (display format selected under Users > Profile)
- $author_email
- $author_firstname
- $author_icq (ICQ number)
- $author_jabber (Jabber/Google Instant Messenger ID - WP 2.0 only)
- $author_lastname
- $author_level
- $author_login
- $author_msn (Microsoft Instant Messenger ID)
- $author_nicename (login in url encoded format)
- $author_nickname
- $author_posts (post count)
- $author_posts_link (URL to all posts)
- $author_profile (Profile/”About yourself”)
- $author_url (”Website”)
- $author_yim (Yahoo Instant Messenger ID)
Beginne die author.php einfach mit z.B.
PHP<?php if(isset($_GET['author_name'])) : $curauth = get_userdatabylogin($author_name); else : $curauth = get_userdata(intval($author)); endif; ?>Grüße!
-
Super
DANKE geht alles
Nur das mit dem Profil-Foto schaffe ich nicht !! ([COLOR=#000066]Userpic & Avatar[/COLOR] )
Bitte noch einmal um HILFE !!!
DANKE -
Kann mir noch einer helfen ???
Hallo
wie zeige ich die Profil Fotos und die Extra Felder an ??
DANKE
Anbei den Skript, denn ich verwende !
PHP
Alles anzeigen<?php /* Plugin Name: Get Author Profile Plugin URI: http://guff.szub.net/get-author-profile Description: Assigns specified author profile information to global variables for use in your blog. Version: 0.5.1 Author: Kaf Oseo Author URI: szubNet » Reworking the 2nd Law of Thermodynamics Copyright (c) 2004, 2005, 2006 Kaf Oseo (szubNet » Reworking the 2nd Law of Thermodynamics) Get Author Profile is released under the GNU General Public License (GPL) http://www.gnu.org/licenses/gpl.txt This is a WordPress plugin (WordPress › Blog Tool and Weblog Platform). ~Changelog: 0.5.1 (Jan-12-2006) Bug fix to get_author_profile() for author query call. 0.5 (Jan-08-2006) WordPress 2.0 fixes. Added three new variables: $author_jabber (author_profile('jabber')) $author_nicename (author_profile('nicename')) $author_displayname (author_profile('displayname')) $author_displayname is the name format users select under "How to display name" on the Users control panel. 0.4 (Jul-11-2005) Added 'display' parameter to author_profile(). If set to FALSE, will only return the value, and not display it. 0.3 (Jul-09-2005) Code changes for WordPress 1.5. If used without specifying user ID in "author.php" template, will profile the 'current' author. 0.2 (Dec-13-2004) Added two new variables from outside WordPress' user profile set (but still considered part of it): * $author_posts (number of posts for author) * $author_posts_link (link to all author's posts) There's also a new function: author_profile(). This merely echos the values of the variables--for anyone who prefers doing things the WordPress way. */ function get_author_profile($auth_id='') { global $wp_query, $wp_version; global $author_aim, $author_email, $author_firstname, $author_icq, $author_jabber, $author_lastname, $author_level, $author_login, $author_msn, $author_nickname, $author_posts, $author_posts_link, $author_profile, $author_url, $author_yim, $author_nicename, $author_displayname; if(!$auth_id && is_author()) { $author = $wp_query->get_queried_object(); $auth_id = $author->ID; } $auth_id = (int) $auth_id; $profile = get_authordata($auth_id); $author_email = $profile->user_email; $author_login = $profile->user_login; $author_nicename = $profile->user_nicename; $author_url = $profile->user_url; $author_posts = get_usernumposts($auth_id); $author_posts_link = get_author_link(0, $auth_id, $author_nicename); if($wp_version < 2) { $author_aim = $profile->user_aim; $author_displayname = get_displayname($profile->user_idmode, $profile); $author_firstname = $profile->user_firstname; $author_icq = $profile->user_icq; $author_lastname = $profile->user_lastname; $author_level = $profile->user_level; $author_msn = $profile->user_msn; $author_nickname = $profile->user_nickname; $author_profile = $profile->user_description; $author_yim = $profile->user_yim; } else { $author_aim = $profile->aim; $author_displayname = $profile->display_name; $author_firstname = $profile->first_name; $author_icq = $profile->icq; $author_jabber = $profile->jabber; $author_lastname = $profile->last_name; $author_level = $profile->user_level; $author_msn = $profile->msn; $author_nickname = $profile->nickname; $author_profile = $profile->description; $author_yim = $profile->yim; } } function author_profile($info='nickname', $display=true) { global $author_aim, $author_email, $author_firstname, $author_icq, $author_jabber, $author_lastname, $author_level, $author_login, $author_msn, $author_nickname, $author_posts, $author_posts_link, $author_profile, $author_url, $author_yim, $author_nicename, $author_displayname; switch ($info) { case 'aim': $text = $author_aim; break; case 'displayname': $text = $author_displayname; break; case 'email': $text = $author_email; break; case 'firstname': $text = $author_firstname; break; case 'icq': $text = $author_icq; break; case 'jabber': $text = $author_jabber; break; case 'lastname': $text = $author_lastname; break; case 'level': $text = $author_level; break; case 'login': $text = $author_login; break; case 'msn': $text = $author_msn; break; case 'nicename': $text = $author_nicename; break; case 'posts': $text = $author_posts; break; case 'posts_link': $text = $author_posts_link; break; case 'profile': $text = $author_profile; break; case 'url': $text = $author_url; break; case 'yim': $text = $author_yim; break; default: $text = $author_nickname; } if($display) echo $text; return $text; } function get_displayname($idmode, $authordata) { // 1.5.x support of $author_displayname switch($idmode) { case 'nickname': $id = $authordata->user_nickname; case 'login': $id = $authordata->user_login; case 'firstname': $id = $authordata->user_firstname; case 'lastname': $id = $authordata->user_lastname; case 'namefl': $id = $authordata->user_firstname.' '.$authordata->user_lastname; case 'namelf': $id = $authordata->user_lastname.' '.$authordata->user_firstname; default: $id = $authordata->user_nickname; } return $id; } function get_authordata($id) { global $wpdb; $id = (int) $id; if (!$id) return false; $author = @$wpdb->get_row("SELECT * FROM $wpdb->users WHERE ID = '$id' LIMIT 1"); $wpdb->hide_errors(); $metavalues = $wpdb->get_results("SELECT meta_key, meta_value FROM $wpdb->usermeta WHERE user_id = '$id'"); $wpdb->show_errors(); if ($metavalues) { foreach ($metavalues as $meta) { @ $value = unserialize($meta->meta_value); if ($value === FALSE) $value = $meta->meta_value; $author->{$meta->meta_key} = $value; if ( $wpdb->prefix . 'user_level' == $meta->meta_key ) $author->user_level = $meta->meta_value; } } return $author; } ?> -
Hallo
wie zeige ich die Profil Fotos und die Extra Felder an ??
Würde mich bei diesem Plug-In auch interessieren, denn wenn icheingebe, werden die Eingaben nicht angezeigt. Komischer Wesie werden bei den letzen drei Feldern immer eine Null angezeigt, hier könnt ihr es betrachten.
Und noch was zum Plug-In:
Wenn ich beim 'Minimum Length:' und 'Maximum Length:' z.B. 15 und 20 eingebe, und bei 'Checking Type:' lenght check auswähle, kann man aber bei dem Feld trotzdem soviele Zeichen eintragen, wie man will. Was mache ich falsch? -
Die Felder vom WP User manage haben alles das Präfix: wpum_
Der Code lautet dann also:Die Bilder müsstest du mit:
PHP<?php if(function_exists(cmd_show_avatar)) cmd_show_avatar(avatar, $userdata->ID, username); ?> <?php if(function_exists(cmd_show_avatar)) cmd_show_avatar(userpic, $userdata->ID, username); ?>einfügen können.
Bin mir nicht ganz sicher. Probiers mal aus. Gib bitte auch mal ne Rückmeldung, würde mich selbst interesieren. -
Bild funktioniert, das abrufen funktioniert auch!
Aber ich habe ein Problem:
Wenn ich beim 'Minimum Length:' und 'Maximum Length:' z.B. 15 und 20 eingebe, und bei 'Checking Type:' lenght check auswähle, kann man aber bei dem Feld trotzdem soviele Zeichen eintragen, wie man will. Was mache ich falsch? -
Bei Bilder gibt es noch ..
.. ein Problem. [COLOR=red]Danke mal für den Code[/COLOR], aber es wird immer nur das eigene Bild angezeigt !! Egal welchen User man anklickt ! Meldet man sich mit einer anderen ID an, dann wieder nur das eigene Bild, zu jedem User !
Ohne Anmeldung, stimmt es, da wird zu jedem User das richtige Bild angezeigt !
Was mache ich da noch falsch ???? -
-
Super
[COLOR=magenta]danke jetzt geht alles !!! :-D[/COLOR]
-
[COLOR=magenta]danke jetzt geht alles !!! :-D[/COLOR]
Kannst ein Link zu deiner Seite geben? -
kann einer die datei komplett posten mit fertigem code?
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!