0 Members and 1 Guest are viewing this topic.

Sending letters to members - when the #NickName# is used
« on: March 09, 2018, 11:18:35 PM »
This may be a bug depending on what you expect #NickName# to translate to. I expected it to be the Username (used to login) but it is actually the first name of the user. #UserId# actually translates to Username.

On /admin/sendletter.php (line 267) I would suggest changing the following

Code: [Select]
$message1=str_replace('#NickName#', $user['firstname'], $message1);
To

Code: [Select]
$message1=str_replace('#NickName#', $user['username'], $message1);


PHPStorm, MAMP Pro, Sequel Pro
Currently converting my 2.1.6 site to osDateEvo 1.2

*

Pharg

  • *****
  • 3,092
    • OsDateFourm
  • osDate Version: osDateEvo v1.3
Re: Sending letters to members - when the #NickName# is used
« Reply #1 on: March 10, 2018, 03:04:09 AM »
Hi arievaul,

Thanks for the bug share, will look into it.
Regards,
Pharg ( Phill )

REMEMBER: ALWAYS BACKUP BEFORE YOU MAKE ANY CHANGES!!

osDateEvo v1.3 | PHP: 5.3.42 & PHP: 7.1.15 | MySQL: 5.5.35