Still having the exact same problem as described in this locked topic:
CGUserDirectory's search - how to display "no results"?
and posted in this closed bug report:
If search won't find anything the content is empty
With CGUserDirectory 1.4.5 and CMS Made Simple 1.11.11 I use the following tag to output a form to search for users:
Code: Select all
{CGUserDirectory action='search' resultpage='search-a-blogger' summarytemplate='SearchList'}Code: Select all
<__script__ type="text/javascript">
function emptyField() {
var field = document.getElementById("{$actionid}ud_username").value;
return (field == '') ? false : true;
}
</__script>
<form id="{$actionid}moduleform_1" method="post" action="{root_url}/blog/search-a-blogger" class="cms_form" enctype="multipart/form-data" onSubmit="return emptyField();">
<div class="hidden">
<input type="hidden" name="mact" value="CGUserDirectory,{$actionid},do_search,0" />
<input type="hidden" name="m{$actionid}returnid" value="74" />
<input type="hidden" name="{$actionid}summarytemplate" value="SearchList" />
</div>
<input type="text" name="{$actionid}ud_username" id="{$actionid}ud_username" class="text" />
<input type="hidden" name="{$actionid}ud_allany" value="any" />
<input type="submit" name="{$actionid}ud_submit" class="submit" value="> Zoek" />
</form>
