Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Options

How to Display Additional User Fields on the WriteComment() Function (div class meta)

edited February 2012 in Vanilla 2.0 - 2.8

I've added two new user fields successfully for State and County. The information goes through registration successfully, saves in the database, and displays on the userinfo.php view.

What I'm having trouble with is displaying this information in the WriteComment() function in helper_functions.php, so that it shows up in <div class="Meta"> for each post. I tried duplicating the lines of code used for author and type, tracing back to UserBuilder and adding the variables there, and adding to the SafeData query in the UserQuery function. I can't seem to find out how I can make sure these two fields are available in WriteComment to be displayed.

Sign In or Register to comment.