Updates from April, 2010 Toggle Comment Threads | Keyboard Shortcuts

  • Paul Gibbs 12:46 pm on April 23, 2010 Permalink | Reply
    Tags: ,   

    Welcome Pack 2.0.2 

    Due out this evening (23rd April), Welcome Pack 2.0.2 will contain a pair of fixes which will correct the filenames of the bundled localisation files, and fix a bug where the text in the email selection menu wasn’t showing the translated text.

    Slava kindly contributed the above bug fixes and has sent in a Russian translation, which is cool; thanks very much.

    Ray suggested that the username and group name lists should be sorted alphabetically rather than by user ID, which I agree with, so that will also be in the new version.

     
    • Mate 12:05 pm on May 6, 2010 Permalink | Reply

      Dear paul!

      I have a problem with the welcome pack. Once I installed, I changed the “new message” part of the e-mail section. I would like to reset the default. Therefore I removed and reinstalled it, but it kept the changed version.

      Please help, if you can!

      Thanks in advance!

      Mate Varga (Hungary)

    • Paul Gibbs 12:39 pm on May 6, 2010 Permalink | Reply

      Hi Mate
      That’s a good idea for a new button in the next version. In the interm, delete the ‘welcomepack’ record in your wp_options (or wp_1_options, etc) database table. This will clear all the settings.

  • Paul Gibbs 9:22 am on April 17, 2010 Permalink | Reply
    Tags:   

    Welcome Pack 2.0.1 coming today [updated] 

    Welcome Pack 2.0.1 will be released today. It will fix a bug with the email dropdown box not working correctly on some upgrade installs, and will optimise memory usage for loading the configuration pages on sites with many thousands of users.

    [update] It’s available now from your WP Admin Plugins page.

     
  • Paul Gibbs 12:56 pm on April 13, 2010 Permalink | Reply
    Tags:   

    Welcome Pack 2.0 released 

    The other day, I released version 2.0 of my Welcome Pack plugin for BuddyPress. The big new feature is the ability to customise the text of the default emails that BuddyPress sends.

    For those new to Welcome Pack, check out this intro video:
    http://vimeo.com/moogaloop.swf?clip_id=10852413&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1

    I haven’t had huge amounts of feedback yet, which probably means I didn’t break anything — always a good sign. There has been a report on the BuddyPress forums from someone running into difficulty with Welcome Pack on a site with over three thousand users; I’m waiting for some feedback from the person concerned and will probably do a minor patch to resolve it.

     
    • Guillaume 3:22 pm on April 14, 2010 Permalink | Reply

      Hi,

      Great plugin !

      My problem is when I want to customise the default emails sent by BuddyPress, I have empty list whithout any email title..

      I’m using BP 1.2.3 translated in french (as WPMU). I’ve tested with english language : same bug.

      Any idea ?

      Excuse my english !

      Thanks, Guillaume.

      PS, I’ve post this problem here : http://wordpress.org/support/topic/387433?replies=1

      • DJPaul 8:20 pm on April 14, 2010 Permalink | Reply

        Hi Guillaume
        Thanks for posting. I’ll investigate, I probably will need some more details from you.

        Regards
        Paul

    • Tim 11:01 pm on April 24, 2010 Permalink | Reply

      The Welcome Pack is great – but as admin I seem to be getting a copy of the Welcome email every time someone joins!

      Messages are reaching new joiners, as I’ve checked with a test account.

      • Paul Gibbs 12:19 pm on April 26, 2010 Permalink | Reply

        Thanks for this; I’ve fixed it in Welcome Pack 2.0.3

  • Paul Gibbs 8:27 pm on April 8, 2010 Permalink | Reply
    Tags: ,   

    Hijacking WordPress Internationalisation 

    As part of a new feature I am developing for the next release of my Welcome Pack plugin for BuddyPress, I needed a really smart way of dynamically adding my own translations for strings at page-load time; creating a stand-alone .mo file to load the strings wasn’t a great solution, for reasons of requiring people to know how to configure file permissions on the server, having to figure out how to write a .mo file (I wish they were as easy as XML, but they aren’t), and — honestly — doing it that way feels like such a hack.

    (More …)

     
    • Ray 6:18 am on May 14, 2010 Permalink | Reply

      Hey Paul,

      Was meaning to reply to this the other day, but got sidetracked!
      Just tried it and it does what I want it to do, except for one instance.

      I’m trying to override a string that BP uses on an AJAX request (in my case, when a private message is sent, BP outputs a message).

      I’ve tried overriding the string by hooking into the “init” action, but not sure if this is the correct action I should be hooking into.

      Here’s the full function:


      function ray_override_l10n() {
      global $l10n;

      $mo = new MO();

      $l10n['buddypress'] = &$mo;

      if ( isset( $l10n['buddypress'] ) ) {
      $l10n['buddypress']->entries['There was an error sending that message, please try again']->translations[0] = 'You are not friends with the person(s) you are attempting to send a message to. Your message has not been sent.';

      $l10n['buddypress']->entries['There was a problem sending that reply. Please try again.']->translations[0] = 'You are not friends with the person(s) you are attempting to send a message to. Your message has not been sent.';
      }
      }
      add_action( 'init', 'ray_override_l10n' );

      Any ideas?

      • Paul Gibbs 7:18 am on May 14, 2010 Permalink | Reply

        For Welcome Pack’s email feature, I use the above technique and have it hooked in like so:

        add_action( 'init', 'dpw_load_dynamic_i18n', 9 );

        Have a look dpw_load_dynamic_i18n() in Welcome Pack’s core.php. It is a bit hard to read as there’s a pair of nested FOR loops, but would suggest you use MO->add_entry() etc rather than write directly to the arrays. I think I switched to doing that after I wrote the above post.

    • Ray 8:10 am on May 14, 2010 Permalink | Reply

      Paul, thanks for the moment of clarity!
      Of course it has to do with setting the priority for the init action! *slaps head*

      Thanks also for the add_entry() tidbit, I’ll look into that!

c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel
Follow

Get every new post delivered to your Inbox.