I want to allow OG users to search across all groups even if they are not members of those groups, but then deny access in viewing the contents of the returned results for the groups they do not belong.

The OG user would then request the author of the node for access by using a private message.

Some pointers would be appreciated.

Thanks
Stephen

Comments

spjsche’s picture

Just for clarity, the returned results would only be the Title, Content Type, Author and Date/Time created.

This will alert the searcher that something of that nature already does exist in the system.

spjsche’s picture

Having done a little investigation, it looks like the search results is dependant on the users subscriptions prior to the query getting issued.

I would like to capture when a user is performing a search, so that I could then force the system to search the whole site, but unfortunately all that is returned when a user is performing an action is "view, update, prepare, submit, etc" but not a search.

Could someone shed a bit of light.

Thanks
Stephen

sampelo’s picture

idea

spjsche’s picture

Managed it myself by theming some of the functions available in the search module.

lias’s picture

Would you mind sharing what you themed in the search module? Did you put this in your template.php file?

spjsche’s picture

This function is modified within the template.php file to do exactly what I wanted.

function phptemplate_search_item($item, $type)

I have tried to cut and paste the whole function here but it is wrapping wrongly and not displaying correctly.

Thanks
Stephen