Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Mods and contribution Discussion

Mods and contribution Discussion This forum is only for discussion of modding phpLD. For specific mod releases, please see the appropriate forum.

Closed Thread
 
topic widgets
Old 01-18-2006   #1
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default Keep search term in search field after submit

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:

Code:
Content visible to registered users only.

Find:

Code:
Content visible to registered users only.

Place this code after class="text" :

Code:
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.
Neticus is offline  
Old 01-21-2006   #2
vegabond
 
vegabond's Avatar
 
Join Date: Aug 2005
Location: Dhaka, Bangladesh
Posts: 857
Default Thanks

Thanks for this good mod
__________________
Web Mustang ~ Allthelink ~ OS Designer - phpLD Templates ~ Templates Pedia
vegabond is offline  
Old 01-21-2006   #3
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default

No probs.
Neticus is offline  
Old 02-24-2006   #4
igotdreams
 
Join Date: Feb 2006
Location: Orlando, Florida
Posts: 12
Default

In 3.0.2 it looks like this;

Code:
Content visible to registered users only.
Change to;

Code:
Content visible to registered users only.
igotdreams is offline  
Old 02-24-2006   #5
Boby
Supporter
Moderator
 
Boby's Avatar
 
Join Date: Dec 2005
Location: Cluj-Napoca/Sighisoara (Romania)
Posts: 4,524
Default

Why not use a variable that is allready set?

Code:
Content visible to registered users only.
Boby
__________________
Please do *not* contact me for support on phpLD!! I can hardly find time to give support for my own mods, for anything else I won't.
  • My phpLD Mods
  • I am *not* a phpLD staff member, so please do *not* ask me to grant permissions, sales stuff, for access to the private supporter forums or phpLD download area.
  • Before you report your problems, make sure it happens with the *default* package and not your highly modified code. Don't forget to use the search feature and do not *bump* threads to soon (allow at least 24h).
Boby is offline  
Old 02-24-2006   #6
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default

Code:
Content visible to registered users only.
Ahh I see, in your demonstration there is no need for any other code but to put

Code:
Content visible to registered users only.
in the appropriate place.

Less code same effect. Much better

Thanks
Net.
Neticus is offline  
Old 04-13-2006   #7
bobby9101
 
bobby9101's Avatar
 
Join Date: Sep 2005
Posts: 677
Default

Code:
Content visible to registered users only.
that doesn't work for me :-(
__________________
Please check your sig links
bobby9101 is offline  
Closed Thread

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
topic widgets



All times are GMT +1. The time now is 05:59 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.