Restrict the Search Module to a Member's Own Posts
2
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}
{if:else}<p>You are logged in as a Super Admin, so all entries will be visible to you.</p>{/if}






There are currently no comments for this snippet.