![]() |
| |||||||
| Support (Version 2) Here is where we provide limited support for version 2. If you are seeking support for version 3 please post in the phpLD 3.0 Support Forum. |
![]() |
| | Thread Tools | Display Modes |
| | #1 |
| Supporter Join Date: Dec 2005 Posts: 487 | When the search button is pressed without any keywords it returns a list of all the featured listings. Where is the code that directs this so that I may direct it to the index page instead? Thnks Neticus |
| |
| | #2 |
| Supporter Join Date: Dec 2005 Posts: 487 | Anybody???? All i need is the name of the file and in that file i presume there is a url code i'll be able to change? |
| |
| | #3 |
| Join Date: Feb 2006 Posts: 132 | you found a workaround on that? on my phpld it shows all the regular links, this is going to bring me in trouble when i get more then 25 links, the page will be way too large. a redirect to the index page (with an empty search query) will do the job. |
| |
| | #4 |
| Supporter Join Date: Dec 2005 Posts: 487 | No, but like you i need it for v3.02 Ive posted query in supporters forum :) |
| |
| | #5 |
| Join Date: Feb 2006 Posts: 132 | good job! |
| |
| | #6 |
| Supporter Moderator Join Date: Dec 2005 Location: Cluj-Napoca/Sighisoara (Romania) Posts: 4,468 | Hello! This is just a quick fix! Edit index.php and find the following code line: Code: require_once 'init.php'; Insert this right after the found line: Code: if(empty($_REQUEST['q'])) {
unset($_REQUEST['q']);
} Let's say you search for "a" or "ar", this can find to many results and your allowed memory will be in short time exhausted. But you can now search for "art" that is allowed by the script and you'll find some results. Code: if(empty($_REQUEST['q']) || strlen($_REQUEST['q']) < 3) {
unset($_REQUEST['q']);
} Boby __________________ wanna say thank you?
|
| |
| | #7 |
| Join Date: Feb 2006 Posts: 132 | THNX Boby! your search update is working on v3.0.2 |
| |
| | #8 | ||
| Supporter Moderator Join Date: Dec 2005 Location: Cluj-Napoca/Sighisoara (Romania) Posts: 4,468 | Quote:
Quote:
Boby __________________ wanna say thank you?
| ||
| |
| | #9 | |||
| Quote:
Good luck with the exams, and how did the maths one go! Bet it was easy :lol: Kev P.S. Almost all on my own I got the front page looking as I wanted, it was your hint that helped. :wink: | ||||
| |
| | #10 | |||
| Supporter Moderator Join Date: Dec 2005 Location: Cluj-Napoca/Sighisoara (Romania) Posts: 4,468 | Quote:
Quote:
I have every day till next week maths exams. Did not passed the first :cry: [no big deal], but I hope to make better for the others.Quote:
Boby __________________ wanna say thank you?
| |||
| |
| | #11 | ||||
| Quote:
I've also found a problem with the links, In for example there are more than 23 links yet when you click on 'next' it reverts to the first page even though it reads in the browser bar. I will post on the forum for you and for others so that at least one of you will find the fix. Cheers, and good luck. Kev Last edited by David; 03-06-2008 at 07:34 PM. | |||||
| |
| | #12 | |
| Supporter Moderator Join Date: Dec 2005 Location: Cluj-Napoca/Sighisoara (Romania) Posts: 4,468 | Quote:
This way we can separate different problems. Boby __________________ wanna say thank you?
| |
| |
| | #13 | ||
| Quote:
Kev | |||
| |
| | #14 |
| Supporter Join Date: Dec 2005 Posts: 487 | Thanks for the solution Boby. Big help! Neticus |
| |
| | #15 |
| Join Date: Feb 2006 Location: Orlando, Florida Posts: 12 | does anyone get the featured listings but no data when conducting searches with version 3.0.2 or earlier???? I am. http://web--site.net/ |
| |
| | #16 | ||||
| Supporter | Quote:
Both David And Bobby are awesome! They are always there to offer support and help out. | ||||
| |
| | #17 |
| Join Date: May 2006 Posts: 17 | Hi, This mod isn't working for me on v3.0.4. Not sure whats wrong, entered the code as specified. Last edited by David; 03-06-2008 at 07:35 PM. |
| |
| | #18 | |
| Supporter | Quote:
secondly, you *are* returning results as per what your pagination says (25 links currently) What you have to do if modify your main.tpl to recognize the search. if you read the 'readme.txt' that came with the upgrade, you'll see in there that Boby has given detail as to what's changed, and what variables have been change too. give that a good look over and see what you can come up with. Rob __________________ DirectoryDump Web Directory | Link Directory | Full of Search Web Directory | Free phpLD Templates Last edited by David; 03-06-2008 at 07:35 PM. | |
| |
| | #19 |
| Join Date: May 2006 Posts: 17 | Yes I knew it was pre 3.0.4. but someone else mentioned it worked w/ 3.0.2. I'm not very "code savvy" -- has anyone else updated this mod? |
| |
| | #20 |
| Join Date: Sep 2005 Posts: 678 | doesn't work with 2.0 at ;east for me __________________ Please check your sig links |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|