Go Back   PHP Link Directory Forum > PHP Link Directory (phpLD) > Support (Version 2)

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.

Closed Thread
 
topic widgets
Old 01-03-2006   #1
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default Redirecting empty search queries

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
Neticus is offline  
Old 01-05-2006   #2
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default

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?
Neticus is offline  
Old 02-21-2006   #3
clubracer
 
Join Date: Feb 2006
Posts: 133
Default

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.
clubracer is offline  
Old 02-21-2006   #4
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default

No, but like you i need it for v3.02 Ive posted query in supporters forum :)
Neticus is offline  
Old 02-21-2006   #5
clubracer
 
Join Date: Feb 2006
Posts: 133
Default

good job!
clubracer is offline  
Old 02-21-2006   #6
Boby
Supporter
Moderator
 
Boby's Avatar
 
Join Date: Dec 2005
Location: Cluj-Napoca/Sighisoara (Romania)
Posts: 4,524
Default

Hello!

This is just a quick fix!

Edit index.php and find the following code line:
Code:
Content visible to registered users only.
It's the first line of code, just right after the the looong comment.

Insert this right after the found line:
Code:
Content visible to registered users only.
I suggest you also stop searches for a keyword shorter than 3 chars. This can cause problems on huge databases.
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:
Content visible to registered users only.
Just my 2 cents :wink:

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-21-2006   #7
clubracer
 
Join Date: Feb 2006
Posts: 133
Default

THNX Boby!

your search update is working on v3.0.2
clubracer is offline  
Old 02-21-2006   #8
Boby
Supporter
Moderator
 
Boby's Avatar
 
Join Date: Dec 2005
Location: Cluj-Napoca/Sighisoara (Romania)
Posts: 4,524
Default

Code:
Content visible to registered users only.
You are welcome!

Code:
Content visible to registered users only.
Actually it's working on both, phpLD2 and phpLD3

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-21-2006   #9
Kevuk2k
 
Join Date: Jan 2006
Location: Global
Posts: 564
Default

Code:
Content visible to registered users only.
You are welcome!

Code:
Content visible to registered users only.
Actually it's working on both, phpLD2 and phpLD3

Boby[/quote]

Boby, it is because of you and the work you do for this site together with the main man that I am proud to be part of phplinkdirectory. You do things without question, you should be proud of yourself. Well done mate.

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:
Kevuk2k is offline  
Old 02-21-2006   #10
Boby
Supporter
Moderator
 
Boby's Avatar
 
Join Date: Dec 2005
Location: Cluj-Napoca/Sighisoara (Romania)
Posts: 4,524
Default

Code:
Content visible to registered users only.
Thank you, again! Well, I really like this script and if I am helping to develop this, I want it to run for all of our users.

Code:
Content visible to registered users only.
I need some luck! 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.

Code:
Content visible to registered users only.
I see you are doing well on your directory, I like the icons. :lol:

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-21-2006   #11
Kevuk2k
 
Join Date: Jan 2006
Location: Global
Posts: 564
Default

Code:
Content visible to registered users only.
Thank you, again! Well, I really like this script and if I am helping to develop this, I want it to run for all of our users.

Code:
Content visible to registered users only.
I need some luck! 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.

Code:
Content visible to registered users only.
I see you are doing well on your directory, I like the icons. :lol:

Boby[/quote]

Hi Boby, sad you failed the first. The icons only work with the 'enable re-write set to yes'

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 06:34 PM.
Kevuk2k is offline  
Old 02-21-2006   #12
Boby
Supporter
Moderator
 
Boby's Avatar
 
Join Date: Dec 2005
Location: Cluj-Napoca/Sighisoara (Romania)
Posts: 4,524
Default

Code:
Content visible to registered users only.
Yes, that would be good
This way we can separate different problems.

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-21-2006   #13
Kevuk2k
 
Join Date: Jan 2006
Location: Global
Posts: 564
Default

Code:
Content visible to registered users only.
Yes, that would be good
This way we can separate different problems.

Boby[/quote]

Just Have Boby. Will of course reward for work. :wink:

Kev
Kevuk2k is offline  
Old 02-22-2006   #14
Neticus
Supporter
 
Neticus's Avatar
 
Join Date: Dec 2005
Posts: 484
Default

Thanks for the solution Boby. Big help!
Neticus
Neticus is offline  
Old 02-24-2006   #15
igotdreams
 
Join Date: Feb 2006
Location: Orlando, Florida
Posts: 12
Default

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/
igotdreams is offline  
Old 02-24-2006   #16
anon
Supporter
 
anon's Avatar
 
Join Date: Feb 2006
Location: As far from you as humanly possible!
Posts: 2,860
Default

Code:
Content visible to registered users only.
You are welcome!

Code:
Content visible to registered users only.
Actually it's working on both, phpLD2 and phpLD3

Boby[/quote]

Boby, it is because of you and the work you do for this site together with the main man that I am proud to be part of phplinkdirectory. You do things without question, you should be proud of yourself. Well done mate.

[/quote]

Agreed 100%

Both David And Bobby are awesome! They are always there to offer support and help out.
anon is offline  
Old 05-17-2006   #17
crawlr
 
Join Date: May 2006
Posts: 25
Default

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 06:35 PM.
crawlr is offline  
Old 05-17-2006   #18
anon
Supporter
 
anon's Avatar
 
Join Date: Feb 2006
Location: As far from you as humanly possible!
Posts: 2,860
Default

Code:
Content visible to registered users only.
Well, for starters, look at the date when this mod was made. (e.g. PRE 3.04)

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

Last edited by David; 03-06-2008 at 06:35 PM.
anon is offline  
Old 05-17-2006   #19
crawlr
 
Join Date: May 2006
Posts: 25
Default

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?
crawlr is offline  
Old 05-23-2006   #20
bobby9101
 
bobby9101's Avatar
 
Join Date: Sep 2005
Posts: 677
Default

doesn't work with 2.0
at ;east 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.