I have a phpBB forum that is heavily integrated with Joomla, and thanks to the RocketTheme template that I am using, i have a common menu in a very seamless manner by phpBB being able to use Joomla's menu.
What I want to do is put a menu item for a user's own profile, but in a different way than currently available mods (View Profile
and View My Own Profile
) do it.
Even in a pure Joomla site, the Joomla system has no way to put a username into a menu item, so I cannot use the "un=username" trick, as I have no way to get the username into the menu which would then pass the variable to phpBB. So what I would like to do is have add an additional mode, or an additional parameter for the current viewprofile mode of memberlist.php (Could be like "mode=viewprofile&own=yes", which would then make it assume that "u" is the user's own ID) that always assumes that the profile it is to display is that of the user him or herself.
Essentially, I would like a way to bring up a user's own profile that does not rely on variable input from the URL.
By having something like this, I could simply make a menu item that would say "My profile" and have the link be like:
That way the menu can be entirely static, and phpBB figures out which user to bring up internally, and does not need external input to do so.
Off the top of my head, what I could imagine doing is simply duplicating the code for the viewprofile mode in memberlist.php, and while that would be rather wasteful and overkill (Thus my suggestion of an "own=yes" variable) it would likely work, the only problem is that I have no idea how to make it assume the user id it is to query in the database is the user's own id.
Any help would be greatly appreciated.