on page with the list of users is a small search-form with just one text-field for searching usernames. I want that form on the search-result-page of cb_advanced_search.
so this is the code for the form on the user-list page:
[code:1]<input type="text" name="search" class="inputbox" size="15" maxlength="100"<?php
if (isset($search)) echo " value=\"".htmlspecialchars($search)."\""; ?> />
<input type="image" src="<?php echo $adminimagesdir; ?>search.gif" alt="<?php echo _UE_SEARCH; ?>" align="top" style="border: 0px;" />[/code:1]
I didn't like the submit-image so I got rid of that and the output now is this working code:
[code:1]<form name="adminForm" method="post" action="http://localhost/mything/index.php?option=com_comprofiler&task=usersList&listid=2&Itemid=31&action=search" >
<input type="submit" class="button" value="zoeken" /></form>[/code:1]
so the above code works on the cb-userslist page. now I put this same code into the search-result-page of cb-advanced-search. I made sure the form is not within a form. when submitted I get a alert with an error:
Session expired and/or cookies are not enabled in your browser.
my cookies are enabled and search works from other page, so I guess it's the session going wrong.
Instead of putting the cb-search form into the cb-advanced-search-page I put part of the cb-advanced-search-form into the cb-advanced-search-results page. No messing with sessions, and it works! now my cb-advanced-search result page looks exactly like the cb-result page.
change Itemid to the menuitem id to make the button selected on the serach-results page.
gebruikersnaam = username (dutch)
uitgebreid zoeken = advanced search (dutch)