Restrict the Search Module to a Member's Own Posts





2
Date Submitted Mon. Sep. 18th, 2006 5:06 AM
Revision 1 of 1
Helper nothingless
Tags expressionengine | forcodegrrl
Comments 0 comments
Insert the below code just below the opening search form tags to restrict the search to a member's own posts if they are not a Super Admin.
{if group_id != "1"}<input type="hidden" class="input"  name="member_name" value="{screen_name}" />
{if:else}<p>You are logged in as a Super Admin, so all entries will be visible to you.</p>{/if}
 

Comments

There are currently no comments for this snippet.

Voting

Votes Down