Search users Posts from topic

Tips & Tricks to use on your phpBB3 Forum.
Post Reply
User avatar
LDM
Site Admin
Site Admin
Posts: 1794
Joined: Thu May 29, 2008 6:51 pm

Search users Posts from topic

Post by LDM » Fri Oct 24, 2008 2:18 pm

Changes post count into a link showing all of that users posts.

If using prosilver or prosilver based style..
Open styles/prosilver/template/viewtopic_body.html

Find:

Code: Select all

<!-- IF postrow.POSTER_POSTS != '' --><dd><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->


Replace with:

Code: Select all

<!-- IF postrow.POSTER_POSTS != '' and U_MCP --><dd><strong>{L_POSTS}:</strong> <a href="search.php?keywords=&terms=all&author={postrow.POST_AUTHOR}">{postrow.POSTER_POSTS}</a></dd><!-- ELSE --><dd><strong>{L_POSTS}:</strong> {postrow.POSTER_POSTS}</dd><!-- ENDIF -->


If using with Subsilver2 or Subsilver2 based style..
Open styles/subsilver2/template/viewtopic_body.html

Find:

Code: Select all

<!-- IF postrow.POSTER_POSTS != '' --><br /><b>{L_POSTS}:</b> {postrow.POSTER_POSTS}<!-- ENDIF -->


Replace with:

Code: Select all

<!-- IF postrow.POSTER_POSTS != '' and U_MCP --><br /><b>{L_POSTS}:</b> <a href="search.php?keywords=&terms=all&author={postrow.POST_AUTHOR}">{postrow.POSTER_POSTS}</a><!-- ELSE --><br /><b>{L_POSTS}:</b> {postrow.POSTER_POSTS}<!-- ENDIF -->


Don't forget to refresh template files in admin after uploading file.

craig1985
Forum Member
Forum Member
Posts: 3
Joined: Tue Nov 17, 2009 12:54 am

Re: Search users Posts from topic

Post by craig1985 » Tue Oct 19, 2010 7:04 pm

On my Forum this works perfectly for me with the aerored theme, however members can not see the link to show all the posts. Is there any way to do it so they can

Post Reply