Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: smmin on May 24, 2017, 01:48:09 AM

Title: Adding Show Topics
Post by: smmin on May 24, 2017, 01:48:09 AM
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
Title: Re: Adding Show Topics
Post by: Illori on May 24, 2017, 05:05:40 AM
which version of SMF are you using?
Title: Re: Adding Show Topics
Post by: smmin on May 24, 2017, 05:53:32 AM
i am using 2.0.14
Title: Re: Adding Show Topics
Post by: br360 on May 24, 2017, 07:37:20 PM
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';
Title: Re: Adding Show Topics
Post by: smmin on May 25, 2017, 08:23:13 AM
great!!! Thanks a lot, have a nice week bro  :D