x
 
Create New Page
 View Previous Changes    ( Last updated by Derek Allard )

extending View all posts by this member

The “view all posts” option in the membership preferences is a pretty handy tool.  When you submit it, it is really just submitting a search query into EE.

When EE search forms are submitted, the various parameters of the advanced search form are made available, however because the form is predefined, you need to add them in yourself. 

Parameters can be added by editing the search url found in system/themes/profile_themes/default/profile_theme.php and around line 457.  The default search is

<a href="{search_path}"><b>{lang:view_posts_by_member}</b></a

But you can add anything you want to that by adding an ampersand (&). It is important that you don’t include quotes.

For example, to change the results page

<a href="{search_path}&result_path=news/searches"><b>{lang:view_posts_by_member}</b></a

to change the number of results

<a href="{search_path}&results=5"><b>{lang:view_posts_by_member}</b></a

To change more then 1, use several ampersands.  This example will change the results page and the number of results.

<a href="{search_path}&result_path=news/searches&results=5"><b>{lang:view_posts_by_member}</b></a

Category:Members Category:Templates

Category:EE1

Categories: