Search topics on profile, how?

master412160

Seasoned Veteran
Joined
Dec 5, 2009
Messages
3,718
Reaction score
4
FP$
1,428
Total posts:1,923 | Search Posts | Search Topics
(0.26% of all posts / 3.45 posts per day)


Is this a mod? How can I get this to on my phpbb board?

I tried finding such a mod but didn't find it.
 
It doesn't take much editing.

Open memberlist.php
Find:
Code:
		'U_SEARCH_USER'	=> ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$user_id&sr=posts") : '',
Add after on a new line:
Code:
    'U_SEARCH_USER_T'   => ($auth->acl_get('u_search')) ? append_sid("{$phpbb_root_path}search.$phpEx", "author_id=$user_id&sr=topics&sf=firstpost") : '',
Open /styles/prosilver/template/memberlist_view.html
Find:
Code:
				<dd>{POSTS} <!-- IF S_DISPLAY_SEARCH -->| <strong><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></strong><!-- ENDIF -->
Inline Find:
Code:
<strong><a href="{U_SEARCH_USER}">{L_SEARCH_USER_POSTS}</a></strong>
Inline add after:
Code:
 | <strong><a href="{U_SEARCH_USER_T}">{L_SEARCH_USER_TOPICS}</a></strong>
Open language/en/memberlist.php
Find:
Code:
	'SEARCH_USER_POSTS'		=> 'Search user’s posts',
Replace with:
Code:
	'SEARCH_USER_POSTS'		=> 'Search Posts',
Add after on a new line:
Code:
  'SEARCH_USER_TOPICS'      => 'Search Topics',
 
Back
Top Bottom