Welcome, Guest
Username Password: Remember me

Getting 'name' to display in User Construction Email?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Getting 'name' to display in User Construction Email?

Getting 'name' to display in User Construction Email? 1 year, 9 months ago #1

  • geoffd
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 0
Hi

I have edited the text for 'User Construction Email' and replaced:

Hi [username]

with:

Hi [name]

I expected this to say e.g. Hi Geoff Drake, instead the email contains Hi [name]

Is this the expected behaviour? I assumed that all fields entered by the user would be available in the email (I set 'available fields' to all).

How can I get the full name of the user to be displayed?

Cheers
Geoff

Re:Getting 'name' to display in User Construction Email? 1 year, 8 months ago #2

  • hubhub
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi geoffd,

I've the same problem.

Did you find a solution ?

Hubhub

Re:Getting 'name' to display in User Construction Email? 1 year, 8 months ago #3

  • hubhub
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi geoffd,

I've the same problem.

Did you find a solution ?

Hubhub

Re:Getting 'name' to display in User Construction Email? 1 year, 8 months ago #4

  • hubhub
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 11
  • Karma: 0
Hi,

I've just found a solution.

You have to add in the file :
administrator\components\com_cckjseblod\helpers\cckonprepare_sendemail.php

the following lines :

$body = str_replace( '[name]', $items['name']->value, $body );
$body = str_replace( '[firstname]', $items['firstname']->value, $body );

just after this line :
$body = str_replace( '[username]', $items['username']->value, $body );

This works for the first e-mail (user construction Email) but I couldn't find the solution for the following emails (validation for users).

Hubhub

Re:Getting 'name' to display in User Construction Email? 1 year, 8 months ago #5

  • geoffd
  • ( User )
  • OFFLINE
  • Fresh Boarder
  • Posts: 19
  • Karma: 0
Hi Hubhub

Thanks for posting a reply, I will take a look at it.

We changed the way that our users registered and the need for this has gone away, so I did not investigate further.

Cheers
Geoff
  • Page:
  • 1
Time to create page: 0.21 seconds