WordPress.org

Ready to get started?Download WordPress

Forums

WP Biographia
[resolved] Pull from Different Profile (3 posts)

  1. selym
    Member
    Posted 2 years ago #

    I use WPSymposium plugin which has sort of its own profile, so I was wondering if there's a way to pull data for this from that instead. I prefer to keep all users 100% out of the backend admin area, and unfortunately all of the Author box plugins naturally pull from the wp-admin profile.

    Just curious...

    Thanks,
    Sel

    http://wordpress.org/extend/plugins/wp-biographia/

  2. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Sel,

    The short answer is that WP Biographia uses the WordPress user system and API to gain access to a blog's users and to enhance their profiles with the extensions that WP Biographia adds.

    There's no reason why WP Biographia couldn't be modified to work with WP Symposium but from looking at this plugin's code, WP Biographia can't work out of the box with WP Symposium.

    There's several reasons for this. Firstly whilst WP Symposium still uses the standard WordPress user accounts, via the wp_users table in the back-end database, it layers its own class functionality on top of wp_users and uses the standard WordPress API only for the base user profile information.

    If you wanted WP Biographia to support WP Symposium you'd need to modify WP Biographia to use WP Symposium's analog of the following API calls and WordPress classes ...

    • WP_User_Query
    • delete_user_meta
    • get_user_meta
    • update_user_meta
    • count_user_posts
    • get_author_posts_url

    ... there's probably a few more to add to that list, but this is off of the top of my head.

    Additionally, as WP Biographia uses the standard WordPress avatar system (it looks like WP Symposium provides its own, non plugged version) you'd need to either provide WP Symposium with a plugged version of get_avatar() or modify WP Biographia to use WP Symposium's avatar system.

    Like I said, none of this is technically impossible, but it would need a reasonable amount of code changes in both plugins to allow them to function well together, and even more code changes to allow them to optionally interwork together.

    If you want to do this, then feel free to go ahead. WP Biographia's source is freely available for forking on GitHub at https://github.com/vicchi/wp-biographia.

    I'd be happy to advise and give limited help, but I hope you can appreciate that I just don't have enough spare time to be able to make these (substantial) code changes in a future release of WP Biographia, at least not for the foreseeable future. Of course, if loads of people clamour in with "me too" then I'll happily look at this again!

    -Gary

  3. selym
    Member
    Posted 2 years ago #

    Thanks for taking the time for such a detailed reply Gary. I don't have the ability to write such a change myself. I was just rather curious if it were possible. It wasn't anything absolutely necessary for me, but just an attempt to gussy up a users posts. If I were implementing a multi-user blog, I wouldn't mind authors using the back end (WP admin area), but with a social network type of situation, I think it's important to keep users outside of the back end, so for now I'm stuck within the confines of WPSymposium.

    Thanks again for taking the time to explain things.

    Sel

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic