Author Topic: Username in email notification  (Read 2969 times)

0 Members and 1 Guest are viewing this topic.

Offline clubbu

  • Newbie
  • *
  • Posts: 47
    • View Profile
Username in email notification
« on: December 08, 2011, 11:45:23 PM »
Hello,
is possible enter user name when it comes to email notification (upload_notify.html) of the upload of a photo?

For example /lang/english/mail/upload_notify.html


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Username in email notification
« Reply #1 on: December 09, 2011, 02:03:39 AM »
In member.php find:
Code: [Select]
          "file_name" => $new_name,
Insert below:
Code: [Select]
          "user_id" => $user_info['user_level'] == GUEST ? "" : $user_info['user_id'],
          "user_name" => $user_info['user_level'] == GUEST ? $lang['userlevel_guest'] : format_text($user_info['user_name'], 2),
          "user_url" => $user_info['user_level'] == GUEST ? "" : $script_url."member.php?action=showprofile&".URL_USER_ID."=".$user_info['user_id'],
Now you can use {user_id}, {user_name} and {user_url} tags
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)