Skip to:
Content
Pages
Categories
Search
Top
Bottom

none of the e-mails is mentioning the users name ?

  • Avatar of abcde666
    abcde666
    Participant

    @erich73

    Hey Paul,

    within Welcome-Pack, none of the e-mails is mentioning the users name (username or Display-Name), like saying e.g.:

    Hello Herbert !
    Hello Frank !

    How can I put the users name (username or display-name) into the e-mails which are being sent by Welcome-Pack ?

    Thanks a lot for help.
    Erich

Viewing 3 replies - 1 through 3 (of 3 total)
  • The email section controls only BuddyPress emails; Welcome Pack doesn’t send out any directly by itself.
    This sort of text replacement/customisation will be available in a future version of Welcome Pack when BuddyPress 1.3 is out (I have some code in 1.3 that I need to do this properly).

    Avatar of abcde666
    abcde666
    Participant

    @erich73

    yeah I understand.

    Is there not some kind of placeholder for the username or Display-name already build into BuddyPress which could be used in your Welcome-Pack ?

    Yes and no. Let me try to explain. Off the top of my head, I know of 4 ways to change emails in BuddyPress/WordPress:

    1) Change the core.
    2) Replace entirely a particular mail-sending function, via plugin.
    3) Override a particular mail-sending function, via plugin hooks/filters.
    4) Use the localisation/translation system (.po/.mo files, etc) to change the text of the email.

    Idea 1 is bad.
    Idea 2 won’t work in BuddyPress (it would in core WordPress, but it would break compatibility with other, similar plugins).
    Idea 3 is the best way, but until BuddyPress 1.3 at least, there are not enough built-in functions and hooks to change what I need to.

    Therefore, I have done Idea 4. I “add” a .mo translation for the relevant strings via code (so no actual .mo needed). I consider this to be a very neat implementation, but I have to keep it up-to-date with each BuddyPress release or it won’t replace the strings.
    The long term plan is to transition to Idea 3, via contributions to the core BuddyPress code.

Viewing 3 replies - 1 through 3 (of 3 total)

The forum ‘Welcome Pack’ is closed to new topics and replies.