I'm trying to put this condition at user_profile.htm. . I want the forum to detect who is online, if it is the user shown in the profile page, then it will appear a button; otherwise it won't.
So, I tried with that condition, but it didn't work. Any suggestions?
User_profile.htm allows you to preview the user's profile. I want to add an additional feature on this page; for example a button, but I don't want it to be visible for other people that see that user profile page, just the owner of the account. So, I've been trying to use the code that I mentioned before on this post in many different ways, I get the id using this code: user.id and session.userId, so if I could just make the comparison between these two numbers I could be able to do it. But the problem is that I get this error:
FreeMarker template error (DEBUG mode; use RETHROW in production!)...............
I'm sure that it is because of some sort of permission. Could you help me with this?
You didn't post the actual error message, but the user object is named "u" rather than "user" in that template, so I'm guessing that is at least part of the problem.
And just to be sure, you're using the latest source from https://sourceforge.net/projects/jforum2/, yes? That is the latest version with all the bug and security fixes.