Advertisement:

Author Topic: Adding Show Topics  (Read 361 times)

Offline smmin

  • Newbie
  • *
  • Posts: 3
Adding Show Topics
« 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

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 47,666
Re: Adding Show Topics
« Reply #1 on: May 24, 2017, 05:05:40 AM »
which version of SMF are you using?

Offline smmin

  • Newbie
  • *
  • Posts: 3
Re: Adding Show Topics
« Reply #2 on: May 24, 2017, 05:53:32 AM »
i am using 2.0.14

Online br360

  • Lead Support Specialist
  • SMF Hero
  • *
  • Posts: 1,936
    • GenXcommunity
Re: Adding Show Topics
« Reply #3 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:
Code: [Select]
<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
Code: [Select]
<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:
Code: [Select]
$txt['showTopics'] = 'Topics';
Change that to
Code: [Select]
$txt['showTopics'] = 'Show Topics';
« Last Edit: May 24, 2017, 07:50:29 PM by br360 »

Offline smmin

  • Newbie
  • *
  • Posts: 3
Re: Adding Show Topics
« Reply #4 on: May 25, 2017, 08:23:13 AM »
great!!! Thanks a lot, have a nice week bro  :D