'website' => array (
'field' => 'website',
'type' => 'text',
- 'required' => true,
'use' => 'a'
),
if ($this->filter) {\r
\r
// Determine if there's a specific filter type and value - Default to host:\r
- $query = 'host:"'.$this->website.'"';\r
+ $query = '';\r
+ if (trim($this->website) != '') {\r
+ $query = 'host:"'.$this->website.'"';\r
+ }\r
if ($this->filterType) {\r
if ($this->filterValue) {\r
$query = $this->filterType.':"'.$this->filterValue.'"';\r
}
$websiteNotice = false;
- if (trim($website) != GLM_MEMBERS_HOSTNAME) {
+ if (trim($website) != '' && (trim($website) != GLM_MEMBERS_HOSTNAME)) {
$websiteNotice = true;
$displayNotice = true;
}
$loginNotice = false;
- if (trim($website) == '') {
+ if (trim($login) == '') {
$loginNotice = true;
$displayNotice = true;
}
<a href="{$adminUrl}?page=glm-members-admin-menu-management&glm_action=search">Fix search settings</a>
</h4>
{if $indexNotice}No Index set<br>{/if}
- {if $websiteNotice}No Website set or does not match current site<br>{/if}
+ {if $websiteNotice}Website does not match current site<br>{/if}
{if $loginNotice}No OSS Login set<br>{/if}
{if $keyNotice}No OSS Key set<br>{/if}
<th {if $searchSettings.fieldRequired.website}class="glm-required"{/if}>Website:</th>
<td {if $searchSettings.fieldFail.website}class="glm-form-bad-input glm-form-bad-input-misc"{/if}>
<input type="text" name="website" value="{$searchSettings.fieldData.website}" class="glm-form-text-input-medium">
+ <!-- Leave blank to search all sites in the selected Index. -->
{if $searchSettings.fieldFail.website}<p>{$searchSettings.fieldFail.website}</p>{/if}
</td>
</tr>