WordPress.org

Support

Support » Plugins and Hacks » WP Biographia » [Resolved] [Plugin: WP Biographia] Biographical Info formatting issue Avatar Exclude Posts

[Resolved] [Plugin: WP Biographia] Biographical Info formatting issue Avatar Exclude Posts

Viewing 15 replies - 1 through 15 (of 22 total)
  • Plugin Author vicchi

    @vicchi

    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

    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!

    Plugin Author vicchi

    @vicchi

    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

    Great Gary, thanks much.

    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);
    Plugin Author vicchi

    @vicchi

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

    -Gary

    Plugin Contributor Travis Smith

    @wpsmith

    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

    Plugin Author vicchi

    @vicchi

    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

    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!

    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

    Plugin Author vicchi

    @vicchi

    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

    Plugin Author vicchi

    @vicchi

    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

    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.

    Plugin Author vicchi

    @vicchi

    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

    Hi Gary,

    Will you need FTP on the development plugins?

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

    Thanks!

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘[Resolved] [Plugin: WP Biographia] Biographical Info formatting issue Avatar Exclude Posts’ is closed to new replies.
Skip to toolbar