Adding Show Topics

Started by smmin, May 24, 2017, 01:48:09 AM

Previous topic - Next topic

smmin

Hi all,

First post here. I know theres submenu Show Topics in Profile Info page, but how can I put a Show Topics link under Show Post? Thanks

Illori

which version of SMF are you using?

smmin


br360

#3
I thought there was a mod for this but couldn't find it.

You can add this yourself in your profile.template.php

Find:
<a href="', $scripturl, '?action=profile;area=showposts;u=', $context['id_member'], '">', $txt['showPosts'], '</a><br />
               <a href="', $scripturl, '?action=profile;area=statistics;u=', $context['id_member'], '">', $txt['statPanel'], '</a>


Replace with
<a href="', $scripturl, '?action=profile;area=showposts;u=', $context['id_member'], '">', $txt['showPosts'], '</a><br />
              <a href="', $scripturl, '?action=profile;area=showposts;sa=topics;u=', $context['id_member'], '">', $txt['showTopics'], '</a><br />
               <a href="', $scripturl, '?action=profile;area=statistics;u=', $context['id_member'], '">', $txt['statPanel'], '</a>


Works, but make sure you back up that file first before making any changes ;)

Edit: Also make sure that in your languages/Profile.english.php

Find:
$txt['showTopics'] = 'Topics';

Change that to
$txt['showTopics'] = 'Show Topics';

smmin

great!!! Thanks a lot, have a nice week bro  :D

Advertisement: