My threads dropdown - need code


Well-known member
I'm going to create a My Threads tab on the menu bar. Under it will be "threads I started" and "threads I posted in"

What would be the code behind those two commands? Thanks.


Well-known member
You could install my plugin, enable 1 tab, and check 'use dropdown'.
Then edit the template for the dropdown, and edit the <li> to point to the links you want with the title you want.
Actually I think I did install your plugin (beautiful!). What I'm asking for, though, is what code I would use to generate

1. a list of all threads *started* by the user in question
2. a list of all threads in which the user posted



In the case, if you're using my plugin, find the template, like: xenfans_extra_tabs_dropdown_one

and before </ul> on a new line, add:

<xen:if is="{$visitor.user_id}">
<li><a href="{xen:link search/member, '', 'user_id={$visitor.user_id}', 'content=thread'}">{xen:phrase your_threads}</a></li>
<li><a href="{xen:link search/member, '', 'user_id={$visitor.user_id}', 'content=post'}">{xen:phrase your_posts}</a></li>
<li><a href="{xen:link search/member, '', 'user_id={$visitor.user_id}', 'content=profile_post'}">{xen:phrase your_profile_posts}</a></li>
Change links and phrases accordingly.

Did a quick test, seemed to have worked:

Screen shot 2011-11-23 at 1.18.45 AM.png