The MU forums have moved to WordPress.org

get author profile plugin (37 posts)

  1. ergate
    Member
    Posted 17 years ago #

    Before the Forum restart someone posted a MU updated version of the get author profile plugin. Anybody know who that was, or do you have the it and the instructions?

  2. andrea_r
    Moderator
    Posted 17 years ago #

    I would totally be interested in this as well.

  3. ergate
    Member
    Posted 17 years ago #

  4. andrea_r
    Moderator
    Posted 17 years ago #

    Buuuuut .... :) that's really just useful if you have multiple authors on one blog. It'll list post by a certain author and the author's byline on their posts, but it does absolutely nothing with the Author's "about me" in their Profile.

    I'd be looking for something that used that, preferable so a little "about me blurb" can be added easily to the sidebar on my member's blogs.

  5. stutley
    Member
    Posted 17 years ago #

    I'm not sure I understand the question, but isn't it this, that you're looking for:

    http://codex.wordpress.org/Template_Tags/the_author_description

    ?

  6. andrea_r
    Moderator
    Posted 17 years ago #

    Yep, but it only works within the Loop. I'd love to take that tag an those results and have it show in the sidebar.

  7. ergate
    Member
    Posted 17 years ago #

    It does work,
    check out this link http://cultureofcomplaint.com/author/Aaron
    (testing is on my profile, I have very little info in it, the site is still in developement so there is very little info)
    This was all set up using the info in the link I posted to the codex, no plugins.

    All the info is the stuff that was filled in on the profile page in users menu. You can add tags to display any of the info contained on the profile page.

  8. andrea_r
    Moderator
    Posted 17 years ago #

    Really??? the codex said it only worked in the Loop, so I hadn't actually *tried*. :D

    Oh wait... I looked and that's not quite what I meant. You kno whow on Blogger the author profile is at the top of the sidebar? That's what I'm looking for. I don't want author info on a seperate page or at the bottom of each post.

    If the get_author_profile tag could be widgetized, for example, that would be exactly right up my alley.

  9. ergate
    Member
    Posted 17 years ago #

    Oh, ok I see what you are talking about. Your right, the fuction I used wont do that, since you have to tell it what author you want to know about.

    But I think I have an answer to your problem. I tried to make a widget, but gave up when I couldnt do it in 5 min, but I found a plugin that would allow me to include php in the sidebar (this would not be safe on a open/public install of mu), so i would then just include what ever php I wanted to make into the widget plugin in this widget. I just gave the the_author_description(); tag a try and it prints the bio in my sidebar. (if you want to see it use the address I posted above and go to the home page, it is on the bottom of the sidebar, i will remove it later tonight)

    the widget I used was King Text from the address
    http://www.blog.mediaprojekte.de/cms-systeme/wordpress-plugins/wordpress-widget-king-text/

  10. andrea_r
    Moderator
    Posted 17 years ago #

    AHA! That is exactly it. :) And yes, I tend to the school of "can't do it in five minutes, let's ask" myself. :)

    it's good to know - thanks for trying. Now I know it can be done, so there's a starting point.

  11. ergate
    Member
    Posted 17 years ago #

    Ok,
    I think I may have done it now.
    I bashed my head through this and made (feeble at best) my first Widget. It is a widget to display The Author Description.
    Can be found here
    http://info.cultureofcomplaint.com/2006/05/16/the-author-description-widget/

    This is my first attempt at a widget, so it will probably break and if it does I probably wont be able to fix it.

  12. samchng
    Member
    Posted 17 years ago #

    Congrats on your first widget!! Even if it breaks, it's a worthy try nonetheless. Sad though, I havent gotten to working on one yet. :)

  13. ergate
    Member
    Posted 17 years ago #

    It was a pretty nice moment. I keep re-writing the documentation. Very exciting.

    Can somebody give it a test and see if it breaks, before I go over to the regular wp forum and announce it.

  14. andrea_r
    Moderator
    Posted 17 years ago #

    Will do right now...

  15. andrea_r
    Moderator
    Posted 17 years ago #

    okay, it owrks OOB in my MU setup, where widgets are in the mu-plugins folder. I tried it at first in a test WP blgo I have, and for soem reason it didn't even show up. :-/

    But hey! It works in MU! Needs a little styling maybe, but I could kiss you! THANKS ergate. :)

  16. samchng
    Member
    Posted 17 years ago #

    It worked here too!! ;)

  17. ergate
    Member
    Posted 17 years ago #

    Thanks for giving this a try. I have been talking with people who know what they are doing (I dont, but I still try). http://wordpress.org/support/topic/72689
    And there are some problems that might arise with the way this widget is currently written, not major problems just inconsitant results, and theme incompatabilites.

    The widget will be broken on a number of pages:
    -Blogs with more than one poster (creates interesting results with MU)
    -Themes that have the sidebars come first in the page structure (before the page_loop)
    -Pages that don't contain any posts (search results, etc)

    I have some ideas and suggestions on how to fix these problems. I will get at them in the near future, between work, workout, class, and wife I dont have much time. And hopefully shoot out a "real" release version of this. One that also takes a stab at some styling. If you have suggestions or can help, anything is welcome.

  18. polriid
    Member
    Posted 17 years ago #

    On this website http://www.digitalchalkie.com/ the template I use doesn't utilise author.php in the post. As a multi-user blog I'd like to be able to click on the author name and go to an author's posts page much like this blog using K2 here: http://www.paraburdoo.det.wa.edu.au/author/mrs-tyler/

    Can anyone tell me the code I need to add to the post template to achieve thus?

  19. suleiman
    Member
    Posted 17 years ago #

    the get author profile plugin referenced in this thread no longer exists at the linked location. Does anyone have a copy they'd be willing to toss my way?

    Thanks!

  20. andrea_r
    Moderator
    Posted 17 years ago #

    I do...
    http://www.atypicalhomeschool.net/wordpress-plugins/author_profile.php.txt
    Right click, save as. Have problems, let me know.

  21. suleiman
    Member
    Posted 17 years ago #

    thanks andrea, I actually tried downloading (both using right click and navigating to the page) and came up with the following error both times:

    Fatal error: Call to undefined function: add_action() in /home/......./public_html/wordpress-plugins/author_profile.php.txt on line 59

  22. andrea_r
    Moderator
    Posted 17 years ago #

    Whups, sorry about that. Thry this:
    http://www.atypicalhomeschool.net/wordpress-plugins/author_profile.txt
    Save it and rename it as a .php file. (not sure what happened the first time)

    I didn't write it though. Aaron @ http://info.cultureofcomplaint.com did it.

  23. suleiman
    Member
    Posted 17 years ago #

    it should be noted that a key issue with this plugin is that it displays the profile of the blog owner only when a registered user isn't signed on, in which case it displays the registered users' profile to the registered user, even when he/she isn't browsing on his/her own blog.

    A slightly major downside. :(

  24. CoreyCampbell
    Member
    Posted 17 years ago #

    How can I get this to display in the sidebar. It won't display anything.

    I've been adding:

    <?php
    if (isset($_GET['author_name'])){
    	$curauth = get_userdatabylogin($author_name);
    	$authid = $author_name;
    } else {
    	$curauth = get_userdata(intval($author));
    	$authid = intval($author);
    }
    
    ?>
    
    <div id="profilebox" style="min-height: <?php author_image_dimensions(author_image_path($authid, false, 'absolute'), 'height', true); ?>px;">
    
    <?php author_image_tag($authid, 'align=right'); ?>
    
    <h2><?php _e($curauth->first_name); ?> <?php _e($curauth->last_name); ?></h2>
    
    <p><b>E-Mail: </b> <?php _e($curauth->user_email); ?>
    <p><b>Yahoo IM: </b><?php _e($curauth->yim); ?>
    <p><b>AIM: </b><?php _e($curauth->aim); ?>
    <p><b>Jabber: </b><?php _e($curauth->jabber); ?>
    <p><b>Web Page: </b><a href="<?php _e($curauth->user_url); ?>"><?php _e($curauth->user_url); ?></a>
    <p><b>Registered Since: </b><?php _e($curauth->user_registered); ?>
    <p><b>Profile: </b><?php _e($curauth->description); ?>
    
    </div>
    
    

    to the side bar

  25. CoreyCampbell
    Member
    Posted 17 years ago #

    Well I got the image to show up.

    <?php global $blog_id;?>
        <img src="/wp-content/avatars/<?php echo $blog_id ?>.jpg" class="avatar-img" width="200" />

    But this only works if the User ID and Blog ID match... anyone have any ideas?

  26. drmike
    Member
    Posted 17 years ago #

    Shouldn't the tag be attached to the user account? Blogs can have more than one author...

  27. suleiman
    Member
    Posted 17 years ago #

    doc, in my version of the widget the tag is attached to the user.

    try it out, it's bundled with the WPMU Avatars release.

  28. drmike
    Member
    Posted 17 years ago #

    Oh, ok. Need coffee....

  29. CoreyCampbell
    Member
    Posted 17 years ago #

    Wait what version do you have suleiman? Did you get it to work? I need the profile picture to be displayed on the sidebar according to the user ID

  30. suleiman
    Member
    Posted 17 years ago #

    i did indeed cory, and have bundled it all into a WPMU Avatars Pack.

    Download it here: http://suleiman.hadithuna.com/wpmu-avatar-pack-release/

About this Topic

  • Started 17 years ago by ergate
  • Latest reply from CoreyCampbell