WordPress.org

Ready to get started?Download WordPress

Forums

WP Biographia
[resolved] Biographical Info formatting issue + Avatar + Exclude Posts (23 posts)

  1. WebEndev
    Member
    Posted 2 years ago #

    When putting line breaks in the User Profile Biographical Info http://screencast.com/t/8DPktmZXKn, it is not reflected in the biography output http://screencast.com/t/uyQX5AXef.

    Can the plugin be modified to allow for breaks?

    Second, I noticed that when the avatar resizes, the surrounding height and width do not change with it (CSS).
    It also appears that the Mail link does not work (I use Gmail, and it does not open a mail message window when clicked).

    Lastly, when I do Exclude Posts (via Post ID), and use the Genesis Featured Widget Amplified plugin, it is not excluded from those posts.

    Continuing to love the plugin - it's better than anything out there.

    Thanks!

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

  2. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Line breaks in the user's biography are, by default, stripped out by the WordPress wp_filter_kses filter. This is in item 7 in the FAQ. Adding the following to your theme's functions.php ...

    remove_filter('pre_user_description', 'wp_filter_kses');

    ... should allow line breaks to be honoured. This might be a configurable feature in the plugin at some point in the future.

    The issue you've seen where the CSS doesn't resize in line with the avatar image has been fixed and will be in v2.2 of the plugin which should be released this week.

    As GMail is a web-app running inside a browser, most operating systems don't support URL schemes such as mailto for handlers inside web-apps, which is why you're seeing this not work as you might expect. But there's a work-around to allow this; see http://support.google.com/mail/bin/answer.py?hl=en&answer=10966

    I've never come across the Genesis Featured Widget plugin and as Genesis is a premium theme (in other words, I'd have to pay to be able to test this), plugin clashes or unexpected behaviour are really difficult to test out. But I'll have a look at the plugin's code and see if there's anything immediately apparent. Would you be willing to try testing some beta code if I am able to work out what's going on?

    -Gary

  3. WebEndev
    Member
    Posted 2 years ago #

    Hi Gary,

    remove_filter('pre_user_description', 'wp_filter_kses');

    ... should allow line breaks to be honoured. This might be a configurable feature in the plugin at some point in the future.

    Great!

    The issue you've seen where the CSS doesn't resize in line with the avatar image has been fixed and will be in v2.2 of the plugin which should be released this week.

    Great again! :)

    Would you be willing to try testing some beta code if I am able to work out what's going on?

    Most definitely I would beta test. Also - Travis Smith is a developer and die hard Genesis guy. He might be able to tip you to the problem.

    Thanks for the fast response!

  4. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Most definitely I would beta test. Also - Travis Smith is a developer and die hard Genesis guy. He might be able to tip you to the problem.

    Thanks for the beta test offer; I really appreciate that.

    Travis contributed a whole slew of code into v2.0 of WP Biographia so I'll definitely get in touch with him if I run into a roadblock on the Genesis plugin. I'll look at this as soon as I get v2.2 out of the door and into the WordPress SVN repository.

    -Gary

  5. WebEndev
    Member
    Posted 2 years ago #

    Great Gary, thanks much.

  6. WebEndev
    Member
    Posted 2 years ago #

    FYI -
    wp_filter_kses actually removes all HTML from the profile description. This might not be the best idea, as users can get some things horribly wrong from time to time. So I added the below to provide some filtering for protection.

    remove_filter('pre_user_description', 'wp_filter_kses');
    add_filter('pre_user_description', 'wp_filter_post_kses');
    add_filter('pre_user_description', 'wptexturize');
    add_filter('pre_user_description', 'wpautop');
    add_filter('pre_user_description', 'convert_chars');
    add_filter('pre_user_description', 'balanceTags', 50);
  7. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Oooh. That's nice and really helpful. I'll add this information into the readme. Thanks!

    -Gary

  8. Travis Smith
    Member
    Plugin Contributor

    Posted 2 years ago #

    Bruce,

    It would be better, even cleaner, to use the new (in 1.8) genesis_formatting_kses() function, so...
    add_filter ( 'pre_user_description' , 'genesis_formatting_kses' );

    This would make it much easier for you to control and be consistent on your site.

    Gary, we could consider rolling the plugin's own with a filter for theme developers to short-circuit or apply their theme kses/allowedtags.

    Thanks,

    Travis

  9. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Travis,

    Nice to hear from you again; let's try and get this into the next version of the plugin. Ping me on email and we can work out the best approach?

    In other news, v2.2 of WP Biographia is ready to roll and I'll be pushing it to the WordPress SVN repository this morning London time.

    -Gary

  10. WebEndev
    Member
    Posted 2 years ago #

    Hi Travis,
    I did not realize that was a new feature in Genesis 1.8. That's great!

    Gary,
    Looking forward to 2.2 version
    Thanks!

  11. WebEndev
    Member
    Posted 2 years ago #

    Hi Gary,

    Love the new features in 2.2. Nice job.

    I have one issue. When setting "Exclude Posts (via Post ID)", the posts are not being excluded. I have tested several times.
    Here are the plugin settings: http://screencast.com/t/QGW9ggTHo3h

    I have tested in on the Genesis framework, and also on the Twenty Eleven (v1.3) theme.

    Thanks

  12. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    That's odd ... I specifically test for post exclusions prior to releasing and I've just tested this out on my local live mirror and on my live site and excluding the Biography Box via Post ID works for me ...

    Using http://www.vicchi.org/2011/12/20/wp-biographia-hits-v2-1-in-time-for-christmas/ as an example, this is Post ID 2284 ...

    Without any post exclusions, the Biography Box displays as configured ...

    http://www.screencast.com/users/Vicchi/folders/WordPress%20Screen%20Grabs/media/4d42719f-f847-44b5-84c4-a89ca7bd164c

    With Post ID 2284 entered into the Exclude Posts setting, the Biography Box is suppressed ...

    http://www.screencast.com/users/Vicchi/folders/WordPress%20Screen%20Grabs/media/d6b34fa3-5e50-4d6c-9f85-b74bc6ecca33

    I'm using a child theme based on TwentyTen (not "raw") TwentyTen ... I'll go back and check this with both TwentyTen and with TwentyEleven to see if I can duplicate it.

    -Gary

  13. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Post exclusions are working for me on "raw" TwentyTen ...

    http://www.screencast.com/t/meyw0PwKGA

    ... and on TwentyEleven too ...

    http://www.screencast.com/t/ZJoUTji8VjjS

    ... not too sure what's going on here for you?

    -Gary

  14. WebEndev
    Member
    Posted 2 years ago #

    Huh... me either :)

    Would you be willing to look at it on a development site? I can give you admin login credentials. It might take me a bit to upload the site though.

  15. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Sure. Only too happy to. The day's drawing on here so I'll probably not get a change to look at this until tomorrow, once you've got everything in place.

    Ping me by email with details, off of the forums (for obvious reasons!) ... contact details are over at http://www.garygale.com/.

    One other thing, are you OK with me uploading a couple of development plugins so I can get some debugging/logging messages going to see what's going on?

    -Gary

  16. WebEndev
    Member
    Posted 2 years ago #

    Hi Gary,

    Will you need FTP on the development plugins?

    I'll email you once I get the site set up.

    Thanks!

  17. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    FTP or SCP, whichever is easiest for you to set up (and more importantly to take down afterwards!).

    -Gary

  18. WebEndev
    Member
    Posted 2 years ago #

    Hi Gary,

    I have emailed you the credentials. Thanks much for looking at this!

  19. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Credentials arrived safe and sound.

    -Gary

  20. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Just to wrap this topic up ... turns out that WebEndev and myself are talking about two differing types of post exclusions.

    The current version of WP Biographia is designed to exclude single posts by Post ID, in other words when the Single Post Template is being used and thus, the is_single() API call returns true. This type of exclusion is working as designed.

    What WebEndev is asking for is a global post exclusion facility that acts on all the other ways a post can be displayed, so that's via the front page or via post archives.

    I'll take this as a feature request and add this into the next release, which will be forthcoming in a few week's time.

    -Gary

  21. WebEndev
    Member
    Posted 2 years ago #

    Thanks much Gary. Glad we got this all sorted out. This will be a nice addition to an already great plugin.

    Can't wait for the next release to see the other new features!

  22. Naser
    Member
    Posted 2 years ago #

    Hello Vicchi and WebEndev,
    I need to add nofollow to URL's author description. I tried the above method and it worked, but as specified above, allowing all html tags can be a problem, can you let me know a filter which only allows adding of rel="nofollow" attribute within author description?

    Thanks in advance.

  23. vicchi
    Member
    Plugin Author

    Posted 2 years ago #

    Hi Naser,

    Is this within the author's biography text or on one of the author's contact links?

    If the latter, then this is supported natively within the plugin. If the former then a little more detail would help, but I don't think this will be easily accomplished.

    -Gary

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic