Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: natasa (NT) - helmikuu 08, 2014, 05:55:02 AP

Otsikko: List of topics on member profile Summary
Kirjoitti: natasa (NT) - helmikuu 08, 2014, 05:55:02 AP
Hello!
It would be nice to have a list of all (or last 10-20) topics
of member when I go to his Profile -> Summary.

(It can be put in Simple Portal custom PHP block, for example,
or wherever on profile Summary page)

How can I accomplish that?
Thanks!

(this is for SMF 2.0.x version)

Otsikko: Re: List of topics on member profile Summary
Kirjoitti: margarett - helmikuu 09, 2014, 06:36:29 AP
You can access that after you reach the profile (not on the "landing page" as you migh want...)

Or you can maybe use this
http://custom.simplemachines.org/mods/index.php?mod=3809
Otsikko: Re: List of topics on member profile Summary
Kirjoitti: natasa (NT) - helmikuu 10, 2014, 01:13:35 AP
I know that margarett, thanks, but I need something 'for dummies'.
What about list under the member name:

'[Add To Buddy List]
Send PM
Show Posts
Show Stats '

is there a way to change 'Show Posts' to 'Show Topics' or
to add 'Show Topics'?
Otsikko: Re: List of topics on member profile Summary
Kirjoitti: margarett - helmikuu 10, 2014, 04:18:30 AP
Have to check but I guess it should be possible. I'll give it a peek ;)
Otsikko: Re: List of topics on member profile Summary
Kirjoitti: margarett - helmikuu 10, 2014, 09:08:52 AP
So, easy as it gets :P

Themes/default/languages/Profile.english.php
find:
$txt['showTopics'] = 'Topics';
Replace with:
$txt['showTopics'] = 'Show Topics';

Themes/defaull/Profile.template.php
Find:
<a href="', $scripturl, '?action=profile;area=showposts;u=', $context['id_member'], '">', $txt['showPosts'], '</a><br />
Add before:
<a href="', $scripturl, '?action=profile;area=showposts;sa=topics;u=', $context['id_member'], '">', $txt['showTopics'], '</a><br />
Otsikko: Re: List of topics on member profile Summary
Kirjoitti: natasa (NT) - helmikuu 11, 2014, 08:06:42 AP
Thanks margarett, it is working  :laugh: .