The MU forums have moved to WordPress.org

Friends Plug-in: Link to Author ID possible (23 posts)

  1. Xandria
    Member
    Posted 15 years ago #

    I've installed the Friends widget which allows authors to drop their friends list into a sidebar.

    While it shows the person's login name, it links to their website address (if they've actually put it in there) not to their blog or their author-profile.

    I would like to get it to link to a person's author ID number.

    Any thoughts on how to make this happen?

    Thanks kindly in advance for your assistance

  2. xiand0
    Blocked
    Posted 15 years ago #

    There is a file at

    http://nadia.xiando.com/xiando-mu-plugins-2007-08-18.tar.bz2

    This file contains xiando(tm) technology. You can experience the immensity of xiando technology friends list widget at http://eirin.trykker.com/ .. perhaps this technology may help you archive your goal.

    It basically calls list_friends which is a function list_friends($FriendsOfUser, $tagBeginWrap, $tagEndWrap, $bLinkToBlog = true, $ShowPic = true, $pmLink = false, $lilist = false, $picsize = '16', $showname = true) {..}

    The way persons website is figured out is:

    $friendsprimary = get_active_blog_for_user($aFriendList[$i]);

    get_active_blog_for_user will find the users "primary" blog (the first registered if they have more than one) and does not care what website address people put in their profile.

    I fail to understand this "get it to link to a person's author ID number", what .. page / thing do you mean?

    (Note that my friendslist stores friends by their *userid*, where is the friendslist you admit you're using stores their *blogid*, you're not adding a person as your friend, you're adding their blog)

  3. nims
    Member
    Posted 15 years ago #

    can u kindly post the link to friends plugin/widget ?

  4. xiand0
    Blocked
    Posted 15 years ago #

    Widget is in above mentioned file in folder mu-plugins/widgets/myfriends.php

    friendslist is in mu-plugins/friend-list/friend-list.php

    There is no "link" as to any official homepage and or support page, I probably should like.. clean up my code and comment it and release and announce and things like that, but .. I kind of write for me & my WPMU sites & my WPMU clients and have absolutely no problem sharing the code, I just haven't.. you know.. made that much effort to "release" things.

  5. Xandria
    Member
    Posted 15 years ago #

    Just wanted to say thanks so much!!! That's great.

  6. honewatson
    Member
    Posted 15 years ago #

    Does anyone know if this has an add friends button on the actual blog page or can you only add friends through the search friends option?

  7. divrom
    Member
    Posted 15 years ago #

    At the moment, the "Add Friends" is only in the admin area. It may be possible to transport the code to a theme, but after a quick look at the code I'm not gonna bother trying in a hurry.

    After all, this is an admin operation, so shouldn't it stay behind the scenes?

  8. honewatson
    Member
    Posted 15 years ago #

    Hmm I don't think so. People when they see the photo might want to add the friend from the blog like they can in myspace.

  9. honewatson
    Member
    Posted 15 years ago #

    Ok this is in fact very simple.

    If you want an add friends button on a theme template using xiandO's plugin all you need to do is add a link around a button with this url:

    /wp-admin/index.php?page=friend-list.php&addfriend=3

    The number 3 in this url is the user id.

  10. honewatson
    Member
    Posted 15 years ago #

    So in the loop:

    <a href="/wp-admin/index.php?page=friend-list.php&addfriend=<?php the_author_id(); ?>">Add to Friends List</a>

  11. divrom
    Member
    Posted 15 years ago #

    Awesome. I hadn't thought of it in that way. Can you tell I'm not a MySpace user? :-)

    Nice work - and thanks for proving me wrong!

  12. Xandria
    Member
    Posted 15 years ago #

    Ack, I tried to go to the source of the plugin to find more information about it, but whoa... PORN. OK. So here's my question...

    In the search mechanism of the Friends plugin, can the blog name be added to the actual search? For instance, community blogs can't be friended by way of searching through the User Profile. But if one knows the username of the community blog itself, can that be put into the search parameters?

    Also, we're using a slender black admin bar (very cool) at the top of all pages and on a personal blog you can easily add someone as a friend, but this option vanishes on a community blog.

    Thoughts, help? Thanks much.

  13. mvkozyrev
    Member
    Posted 14 years ago #

    Warning: Cannot modify header information - headers already sent by (output started at /home/mvkozyrev/openstory.info/docs/wp-content/mu-plugins/friend-list/friend-list.php:1) in /home/mvkozyrev/openstory.info/docs/wp-includes/pluggable.php on line 440

    Using wpmu 1.3

    What's wrong?

  14. demonicume
    Member
    Posted 14 years ago #

    experience the immensity of xiando

    immensity. are you serious?

    [em tag closed - Mark]

  15. andrea_r
    Moderator
    Posted 14 years ago #

    @mvkozyrev - check for blank lines at the end of files.

  16. mvkozyrev
    Member
    Posted 14 years ago #

    Yes. Thank you. All working (when I checked blank lines, I see that my php-editor doesn't work correctly wiht UTF8 :), so, all trubles fixed).

    But I have new questions:
    1. How to display in adminarea some (10, 20 etc) posts from friend sorted by time (without friendlist options)? Now I see only one post from each friend.

    2. Privates notes from Xiando package doesnt work when WPMU installed to use subcategories for blogs. Is it possible to fix?

  17. suleiman
    Member
    Posted 14 years ago #

    I think it's pretty hilarious that because demonicume forgot to close the italics tag in his post we all get to experience the lower half of this forum in full italicized glory.

    I wonder if I can end the fun?
    </i>

  18. andrea_r
    Moderator
    Posted 14 years ago #

    I already tried. :)

    It's like we're whispering in here...

  19. demonicume
    Member
    Posted 14 years ago #

    my bad dont hate because i'm simple

  20. andrea_r
    Moderator
    Posted 14 years ago #

    just teasing, big guy. ;)

  21. demonicume
    Member
    Posted 14 years ago #

    :-)

  22. suleiman
    Member
    Posted 14 years ago #

    lol...

  23. kane357
    Member
    Posted 14 years ago #

    whats up with the porn link above.

    What happened to this plugin, is it a fake?

About this Topic