Little bit of a tip here, if you are going to be editing core files you should keep a list of the files you edited and comment your edits. Instead of this:
Code: Select all
'S_NEW_USER_MESSAGE' => ($user->data['user_posts'] == 0) ? true : false,
Use this:
Code: Select all
//My Mod - Added for user message
'S_NEW_USER_MESSAGE' => ($user->data['user_posts'] == 0) ? true : false,
In templates you make comments like this:
Code: Select all
<!-- IF 0 -->My Mod - Put you comment text here<!-- ENDIF -->
<!-- IF S_USER_LOGGED_IN and S_NEW_USER_MESSAGE -->
//HTML to pe parsed for users with 0 post count
<!-- ENDIF -->
When there is new release phpBB has a changed files package that just includes files that have changed since last release.
https://www.phpbb.com/downloads/#changedfiles
Compare your list to the changed files, if any files you have edited exist in the changed files package you will need to merge your edits into the new files. You can use a tool like Winmerge or there is file comparison tool in Notepad++ that will allow you to compare the files. When you are making the file comparison as lng as you have commented everything you'l know exactly what you have edited in and why.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”
Attributed - Thomas Edison