Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Profile: Discussions Started
lech
✭
Just tossing this out there as it's often seen on other forums and sometimes, a useful feature. Seeing as how we have access to our own discussions which we started (public of course) perhaps others viewing say my profile could in turn see what discussions i've started just for the hell of it. Might make for a nifty extension if not a core feature.
Thoughts?
0
This discussion has been closed.
Comments
Here you go. Probably worth checking i havent done anything too stupid but it's only a couple lines of code (longest couple of lines i've ever written though).
See it in action here
if ($Context->SelfUrl == 'account.php') { if (!$AccountUser) { $UserID = ForceIncomingString("u", 0); if ($UserID == 0) $UserID = $this->Context->Session->UserID; if ($UserID > 0) { $UserManager = $Context->ObjectFactory->NewContextObject($Context, "UserManager"); $AccountUser = $UserManager->GetUserById($UserID); } if ($AccountUser) $Panel->AddString('<ul class=\'LinkedList\'><li><a class=\'PanelLink\' href=\'search/?PostBackAction=Search&Type=Discussions&Advanced=1&btnSubmit=Search&AuthUsername='.$AccountUser->Name.'\'>'.$Context->Dictionary["DiscussionsStartedByUser"].'</a></li></ul>', 1); }