WordPress.org

Ready to get started?Download WordPress

Forums

WP Biographia
[resolved] How to hide the bio box from posts by a particular user (13 posts)

  1. Carlotta.
    Member
    Posted 2 years ago #

    Hi, great plugin! I was looking for a plugin like that for months :D
    One request: I don't want to display bio in posts by a particular user.
    How could I do?
    Thank You.

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

  2. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Carlotta,

    Thanks for the great feedback! Unfortunately at the moment it's not possible to exclude certain users from displaying the Biography Box on their posts. I'll certainly take a look at this for a future version though.

    -Gary

  3. daveszt
    Member
    Posted 2 years ago #

    Vicchi,

    Thanks for an awesome plugin. Just to continue the theme, being able to remove the Author Box for a specific user ID would also be fantastic for me. Would love to see it in a future version.

    Thanks.

    Dave

  4. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Carlotta and Dave,

    You'll be pleased to know (at least I hope you'll be pleased) that v2.1 of WP Biographia will have the ability to suppress the display of the Biography Box for individual users on posts, on pages or on both posts and pages. This can be done from a suitably permissioned user's profile as well as centrally from the plugin's settings page.

    Actually, the code is already written and running on my local test system and a beta of v2.1 will be up on GitHub later today at http://vicchi.github.com/wp-biographia/.

    The code still needs a little bit of CSS and jQuery tweaking to make it hang together but the functionality is all there and it seems to work with every test case I've thrown at it.

    I still need to update the readme and screenshots as well as ensuring that nothing break during the upgrade process but I hope to have the new version ready to release by the end of this week, assuming there's no hidden gotchas that I haven't found yet.

    Once the beta of v2.1 is up on GitHub, feel free to download and play with it, as long as you're happy with living life on the bleeding edge and you're comfortable with installing plugins manually. If not, then just hold fire for a few days more and v2.1 should be up on the official WordPress plugin repository for automatic update.

    Thanks for your interest, feedback and support; I really appreciate it. A lot.

    -Gary

  5. daveszt
    Member
    Posted 2 years ago #

    Fantastic! Thanks Gary. I think I'll wait for it to be pushed through to live on WordPress but thanks again for making such a fab plugin.

    Dave

  6. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    I've just pushed v2.1 of WP Biographia to the WordPress SVN repository. It should be showing up as an update in the Plugins Dashboard page soon.

  7. Carlotta.
    Member
    Posted 2 years ago #

    Hi vicchi, thank you a lot :)
    I'm trying it on http://starbooks.it/ but when a try to select the users who should not display the Biography Box, appears this message 'Fatal error: Call to a member function log() on a non-object in /home/starbook/domains/starbooks.it/public_html/wp-content/plugins/wp-biographia/includes/wp-biographia-admin.php on line 694'.
    My problem?

  8. daveszt
    Member
    Posted 2 years ago #

    Hmm, just installed it and I have the same problem as Carlotta -

    Fatal error: Call to a member function log() on a non-object in /homepages/23/d310607419/htdocs/HeyUGuys_V2/wp-content/plugins/wp-biographia/includes/wp-biographia-admin.php on line 694

    D

  9. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Dave and Carlotta,

    Oh, I am a total and utter idiot. I broke my own rule of software deployment and tested and pushed v2.1 from my debug environment and not from my production environment. I hang my head in shame.

    So what happened was that wp-biographia-admin.php had a single line of debugging code left in, which worked fine in my debug environment as the debugging plugin was still installed and active. This plugin is not in my production environment and if I'd tested in this environment I would have spotted this problem.

    So I've removed this from the code, re-tested (in the production environment), and pushed v2.1.1 to SVN and it's up in the repository for download round about now ... this should fix the problem.

    I will write myself a plugin release checklist and make sure I stick to it in future. The only saving grace is that this lesson has given me an idea for a blog post on the perils of plugin development. Not that it helps you in wasted time on this; for that I can only apologise and thank you for your patience.

  10. daveszt
    Member
    Posted 2 years ago #

    Gary!

    Thanks so much for doing that change. It works perfectly!

    Now, I promise I'll leave you alone soon but i'm not in need of moving the author box below the post tags and maybe even below the comments. Is there an easy way to do that?

    Thanks.

    Dave

  11. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    In the current way in which the plugin works, WP Biographia appends the Biography Box to the tail (at least by default) of the post content and so it'll appear whenever the theme's template calls the the_content() WordPress API function.

    In most templates, the code to output the post tags and the comments appear after the post content has been output.

    It may be possible in a future version of the plugin to change the way in which the plugin outputs the Biography Box, but for now that'd need quite a bit of work. I'm not saying it won't happen but I'd need to go away and do some homework and see what would need to be done to do this, if indeed it's even possible.

    Even the wp-biographia short-code isn't a workaround as that only affects the post content (as far as I know).

    You could edit your theme to call the wp_biographia_display function directly from the theme's template but it's a dirty hack and I haven't even tested whether this is possible or not. My gut feel says it should be, but that's no substitute for actually testing it out!

    So the short answer to your question is, sadly, no, there's no easy way.

    On the positive side, I'm glad that v2.1.1 fixed your problem!

    -Gary

  12. daveszt
    Member
    Posted 2 years ago #

    Thanks Gary. Really appreciate the quick, concise and brilliant replies. Our theme uses the Genesis framework and pulls in hooks and various other things. I'm not developer and really struggle to get my head around how all this works but I think for now i'm going to have to revert back to the author box that comes with the framework even though it doesn't have your great links underneath the boxes.

    I'll keep updating versions that you bring out for when you get it working (but please dont do it just for me!)

    Thanks again and Happy Christmas!

    Dave

    P.S. If you do freelance / probono work, let me know as I am too thick to work out how to do so many things on WordPress when it needs coding to fix things!! My contact details are on HeyUGuys.co.uk.

    THANKS!

  13. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    If you're able to share the theme I can have a look for you to see how easy (or not) it'd be to do what you want, on the assumption that you'd be happy to have the theme hacked around. Feel free to ping me by email ... my contact details are all over at http://www.garygale.com/.

    -Gary

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic