I've had some time to think about this one, and I'd be surprised if theymos accepts the above patch; there are already four links in that area, and adding a fifth one for something that's not really necessary is a pretty tough sell.
I think a smarter way to do this would be to remove the link for per-user statistics (they've been disabled anyway), add the link for the topic list (which is what OP is asking for), remove the redundant line break that currently leaves a gap at the bottom of that area (might as well clean things up, while I'm here), and then rearrange things so that the last three links are all on one line.
That way, instead of that area looking like this:
It would look like this:
For my money, that's a strict improvement (i.e. it's tidier, it takes up less vertical space, and it replaces an effectively dead link with a useful one).
Here's the updated patch:
--- /var/www/baseline/Themes/default/Profile.template.php 2007-02-03 15:55:14.000000000 +0000
+++ /var/www/modified/Themes/default/Profile.template.php 2023-06-04 02:48:35.000000000 +0000
@@ -69,25 +69,25 @@
{
global $context, $settings, $options;
echo '
</td>
</tr>
</table>';
}
// This template displays users details without any option to edit them.
function template_summary()
{
- global $context, $settings, $options, $scripturl, $modSettings, $txt;
+ global $context, $settings, $options, $boardurl, $scripturl, $modSettings, $txt;
// First do the containing table and table header.
echo '
<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor">
<tr class="titlebg">
<td width="420" height="26">
<img src="', $settings['images_url'], '/icons/profile_sm.gif" alt="" align="top" />
', $txt['summary'], ' - ', $context['member']['name'], '
</td>
<td align="center" width="150">', $txt[232], '</td>
</tr>';
@@ -307,26 +307,25 @@
// Finally, if applicable, span the bottom of the table with links to other useful member functions.
echo '
<tr class="titlebg">
<td colspan="2">', $txt[597], ':</td>
</tr>
<tr>
<td class="windowbg2" colspan="2">';
if (!$context['user']['is_owner'] && $context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $context['member']['id'], '">', $txt[688], '.</a><br />
<br />';
echo '
- <a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPosts">', $txt[460], ' ', $txt[461], '.</a><br />
- <a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=statPanel">', $txt['statPanel_show'], '.</a><br />
+ <span>Show the <a href="', $scripturl, '?action=profile;u=', $context['member']['id'], ';sa=showPosts">posts</a>, <a href="', $scripturl, '?action=profile;threads;u=', $context['member']['id'], ';sa=showPosts">topics</a> or <a href="', $boardurl, '/gettopics.php?user=', $context['member']['id'], '">topic list</a> of this person.</span>
<br />
</td>
</tr>
</table>';
}
// Template for showing all the posts of the user, in chronological order.
function template_showPosts()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;