WordPress.org

Ready to get started?Download WordPress

Forums

WP-FB-AutoConnect
[resolved] Change button label (8 posts)

  1. freefrench
    Member
    Posted 1 year ago #

    You removed the wpfb_output_button filter in 2.5.1. I was using it to translate the text according to language selected, how can I do it now?

    http://wordpress.org/extend/plugins/wp-fb-autoconnect/

  2. justin_k
    Member
    Plugin Author

    Posted 1 year ago #

    Oh wow - I didn't think anyone else was actually using that, sorry.

    The change was because my original free/premium design of just overwriting the entire tag was really messy, and I'd planned to redo it up a bit in a future version - perhaps use HTML5 rather than xfbml and document.write().

    I just submitted an update (2.5.3) that adds a new filter (renamed to reflect the fact that it ONLY applies to the text, not the whole entire tag) :)

  3. freefrench
    Member
    Posted 1 year ago #

    Great! And what is the name of this new filter?

  4. justin_k
    Member
    Plugin Author

    Posted 1 year ago #

    ...Ummm, I don't see why you don't just open the file and look, but it's wpfb_button_text... :P

  5. freefrench
    Member
    Posted 1 year ago #

    Ok but it seems this filter applies only to free version. How can I do with Premium version?

  6. justin_k
    Member
    Plugin Author

    Posted 1 year ago #

    ...Just do it in the options. There's no need to use a filter with the premium version, never has been.

  7. freefrench
    Member
    Posted 1 year ago #

    Please read what I wrote. I used this filter to change the button label according to language. So I need a programmatic way to change it.

  8. justin_k
    Member
    Plugin Author

    Posted 1 year ago #

    Ohh, *according* to language - I thought you meant you were just setting it to the language of your site.

    Why not just:
    set_option($opt_jfbp_buttontext, "yourtext")

    in wp_head or something, based on the current language...? It's equivalent to doing it in the options, but programmatic...

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.