if you want to link to list of users for example to:
-specific users account types (company not person)
-users by question in profile (from specific region itp...)
its a problem,
any idea how to cerate a button that sends that query?
if you want to link to list of users for example to:
-specific users account types (company not person)
-users by question in profile (from specific region itp...)
its a problem,
any idea how to cerate a button that sends that query?
i should:
-sniff the javasript in eg. Firefox firebug DOM
-identify the query
-write a javascipt button sending that parameters
?
the actual form is: ow_system_plugins/base/controllers/user_search.php ?
would it be possible to modify and link to new form php file?
hi,
i'll check and let you know.
you have to send POST data to search form - it submits to itsself (action="")
if you want to search users by account type:
-go to search page (users/search) and check in output html code the vale of that account type, it should look like this:
<option value="xxxxxxxxxxxxxxxxxxxxxxxxxx">Your account type</option>
than create php file, containing:
<?php echo "Searching...";?>
<form name="MainSearchForm" method="post" action="/users/search" >
<input type="hidden" name="MainSearchFormSubmit" ><input type="hidden" name="accountType" value="xxxxxxxxxxxxxxxxxxxxxxxxxxx"><input type="hidden" name="form_name" value="MainSearchForm" >
<script language="JavaScript">document.MainSearchForm.submit();</script></form>
(dont forget to replace xxxxxxx with proper value)
place that file in some directory eg. your-directory-name in oxwall root direcotry
(to make it executabe you have to add
additional condition in .htaccess in root oxwall directory:
RewriteCond %{REQUEST_URI} !/your-directory-name/
)
to link to your custom search result page just link to that newly created php file,
that's it, if you want to add some other custom parameters,
use firebug to sniff the POST request and modify the redirection file.
if something is not celar plese dont hesitate to ask,