For a client site I didn't want users to search due to privacy concerns but there needed to be a way of connecting with their friends.
So I came up with this little bit of code to share with you.
It needs a custom code module. I used the one from Joomlaspan.com called mod_customcode.
Assuming your SEF url to the profile is:
www.domain.com/my-profile/username
Place the following code in the module:
[code:1]<form id="form1" name="openlocation" action="
www.domain.com/my-profile/" method="post" onSubmit="document.openlocation.action='
www.domain.com/my-profile/'+ document.openlocation.href.value;" >
<p>
<input type="text" id="edit2" name="href" size="20" width="100px;" value="">
<input type="submit" id="butn1" name="button" value="Find" ></p>
</form>[/code:1]
When a username is entered it will direct the user to the profile without searching.
Post edited by: wintercorn, at: 2010/05/05 23:12