Alt 04.07.2005, 14:40   #1 (permalink)
PostRank: 2
 
Registriert seit: 11.03.2005
Beiträge: 76
Author Seite

Hi,
habe mal eine Frage,und zwar möchte ich für jeden Author eine kleine Seite erstellen,wo man Informationen über die jeweillige Person findet.
Wenn man bei einem Beitrag auf den Namen des Author klickt,der den Beitrag geschrieben hat,der mit <?php the_author() ?></p> angezeigt wird,sollte man auf diese Seite gelinkt werden,die dem Author gewidmet ist.
Ist sowas möglich?
lemox ist offline   Mit Zitat antworten
Alt 04.07.2005, 15:35   #2 (permalink)
WPD-Team
 
Benutzerbild von Olaf
 
Registriert seit: 03.09.2004
Ort: Zürich
Beiträge: 2.636
Zum einen kannst du das über ein neues Template "author.php" realisieren, zum anderen gibt`s auch ein Plugin:
http://guff.szub.net/2005/01/31/get-author-profile/
Olaf ist offline   Mit Zitat antworten
Alt 05.07.2005, 17:01   #3 (permalink)
PostRank: 2
 
Registriert seit: 11.03.2005
Beiträge: 76
also ich hab mir das plugin runtergeladen und wenn ich es aktiviere bekomme ich folgende fehlermeldung:

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-admin/admin.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-admin/admin.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-admin/admin.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-admin/admin.php on line 13

mehr hab ich ja noch garnicht gemacht,wieso erscheitn dann ein fehler?
lemox ist offline   Mit Zitat antworten
Alt 05.07.2005, 17:17   #4 (permalink)
WPD-Team
 
Benutzerbild von Olaf
 
Registriert seit: 03.09.2004
Ort: Zürich
Beiträge: 2.636
..schau mal ob in der "get-author-profile.php" am Anfang oder Ende eine Leerzeile ist.
Olaf ist offline   Mit Zitat antworten
Alt 05.07.2005, 17:55   #5 (permalink)
PostRank: 2
 
Registriert seit: 11.03.2005
Beiträge: 76
nein,wie unten zu erkennen :/
Code:
<?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 weblog.
Version: 0.2
Author: Kaf Oseo
Author URI: http://szub.net

~Changelog:
0.2 (13-Dec-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 $wpdb, $tableusers, $posts, $authordata;
    global $author_aim, $author_email, $author_firstname, $author_icq, $author_lastname, $author_level, $author_login, $author_msn, $author_nickname, $author_posts, $author_posts_link, $author_profile, $author_url, $author_yim;
    
    $author_posts = get_usernumposts($auth_id);
    $author_posts_link = get_author_link(0, $auth_id, $authordata->user_nicename);

    $query = $wpdb->get_results("SELECT * FROM $tableusers WHERE ID = '$auth_id' LIMIT 1");

    foreach ($query as $profile) {
        $author_aim = $profile->user_aim;
        $author_email = $profile->user_email;
        $author_firstname = $profile->user_firstname;
        $author_icq = $profile->user_icq;
        $author_lastname = $profile->user_lastname;
        $author_level = $profile->user_level;
        $author_login = $profile->user_login;
        $author_msn = $profile->user_msn;
        $author_nickname = $profile->user_nickname;
        $author_profile = $profile->user_description;
        $author_url = $profile->user_url;
        $author_yim = $profile->user_yim;
    }
}

function author_profile($info = 'nickname') {
    global $author_aim, $author_email, $author_firstname, $author_icq, $author_lastname, $author_level, $author_login, $author_msn, $author_nickname, $author_posts, $author_posts_link, $author_profile, $author_url, $author_yim;

    switch ($info) {
    case 'aim':
        echo $author_aim;
        break;
    case 'email':
        echo $author_email;
        break;
    case 'firstname':
        echo $author_firstname;
        break;
    case 'icq':
        echo $author_icq;
        break;
    case 'lastname':
        echo $author_lastname;
        break;
    case 'level':
        echo $author_level;
        break;
    case 'login':
        echo $author_login;
        break;
    case 'msn':
        echo $author_msn;
        break;
    case 'nickname':
        echo $author_nickname;
        break;
    case 'posts':
        echo $author_posts;
        break;
    case 'posts_link':
        echo $author_posts_link;
        break;
    case 'profile':
        echo $author_profile;
        break;
    case 'url':
        echo $author_url;
        break;
    case 'yim':
        echo $author_yim;
        break;
    }
}
?>
lemox ist offline   Mit Zitat antworten
Alt 05.07.2005, 19:25   #6 (permalink)
WPD-Team
 
Benutzerbild von Olaf
 
Registriert seit: 03.09.2004
Ort: Zürich
Beiträge: 2.636
Ich kann den Fehler unter 1.5.1.3 nicht reproduzieren...
Olaf ist offline   Mit Zitat antworten
Alt 06.07.2005, 13:34   #7 (permalink)
PostRank: 2
 
Registriert seit: 11.03.2005
Beiträge: 76
kann mir einer erklären wie dieses plugin genau funktioniert?
ich kann auch nicht wirklich draus erkennen,welchen code ich auf der z.B. author.php wiedergeben muss damit die profile aller user angezeigt werden.
lemox ist offline   Mit Zitat antworten
Alt 06.07.2005, 13:51   #8 (permalink)
WPD-Team
 
Benutzerbild von Monika
 
Registriert seit: 04.06.2005
Ort: INET
Beiträge: 8.257
Zitat:
Zitat von lemox
kann mir einer erklären wie dieses plugin genau funktioniert?
ich kann auch nicht wirklich draus erkennen,welchen code ich auf der z.B. author.php wiedergeben muss damit die profile aller user angezeigt werden.
das steht auf der website des plugins:

Code:
<?php get_author_profile(auth_ID); ?>
dann findet man dort weiter unten noch ein Beispiel:
Code:
Example:

<div class="profile">
  <ul>
  <li id="myprofile">Blog Owner:
    <ul>[*]<?php author_profile('firstname'); ?> <?php author_profile('lastname'); ?>[*]ICQ: <?php author_profile('icq'); ?>[*]AIM: <?php author_profile('aim'); ?>[*]Notes: <?php author_profile('profile'); ?>[/list]  [/list]</div>
dazwischen steht auch noch was, ..bitte selber weiterlesen,-weil ich ja nicht weiß was Du nicht weißt oder brauchst

lgMonika
Monika ist offline   Mit Zitat antworten
Alt 06.07.2005, 15:53   #9 (permalink)
PostRank: 2
 
Registriert seit: 11.03.2005
Beiträge: 76
so,das plugin läuft nun und ist unter folgendem link zu finden:
http://www.gedankeninferno.de/wordpress/?page_id=51

dennoch erscheint im wp-admin bereich oben immernoch besagter fehler:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-admin/admin.php on line 10

dazugekommen ist noch:
Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 7

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 8

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 10

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 11

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-includes/pluggable-functions.php on line 163

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-includes/pluggable-functions.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-includes/pluggable-functions.php on line 165

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-includes/pluggable-functions.php on line 166

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 27

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 29

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-login.php on line 30

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web45/html/wordpress/wp-content/plugins/get-author-profile.php:97) in /var/www/web45/html/wordpress/wp-includes/pluggable-functions.php on line 129

wenn ich mich auf meiner seite ausloggen möchte.

abgesehen von den fehlern ein schönes plugin,wer mag mich retten?
lemox ist offline   Mit Zitat antworten
Alt 06.07.2005, 16:20   #10 (permalink)
PostRank: 2
 
Registriert seit: 04.06.2005
Ort: Kissing
Beiträge: 85
nur ne dumme frage:

hast du in deinem template folgendes im <head></head> stehen?
Code:
<?php wp_head(); ?>
pichfl 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 22:35 Uhr.


Powered by vBulletin® Version 3.8.7 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.0 | Impressum | Ein Inpsyde.com Projekt