PDA

View Full Version : Keep search term in search field after submit


Neticus
01-18-2006, 04:51 PM
Just basic code to help make user experience easier.

When a search term is searched it disappears from the search field after submit. To keep search term in the search field use this:


In top_bar.tpl place this:

Content visible to registered users only.


Find:

Content visible to registered users only.


Place this code after class="text" :

Content visible to registered users only.

Now search term will stay in the search field after submit, allowing user to modify terms without re-typing the full sentence again.

And thats all folks :)


- Neticus

Edited to give post appropriate title no code has been changed.

vegabond
01-21-2006, 09:26 AM
Thanks for this good mod :D

Neticus
01-21-2006, 02:09 PM
No probs.

igotdreams
02-24-2006, 06:02 AM
In 3.0.2 it looks like this;

Content visible to registered users only.

Change to;

Content visible to registered users only.

Boby
02-24-2006, 06:10 AM
Why not use a variable that is allready set?

Content visible to registered users only.

Boby

Neticus
02-24-2006, 03:17 PM
Content visible to registered users only.

Ahh I see, in your demonstration there is no need for any other code but to put

Content visible to registered users only.

in the appropriate place.

Less code same effect. Much better :)

Thanks
Net.

bobby9101
04-13-2006, 08:59 PM
Content visible to registered users only.
that doesn't work for me :-(