#1 (permalink)  
Old 01-31-2008, 06:14 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default Increasing Search Results

Hi
Is there anyway to increase the returned search results. Currentley returns 10
results back, want it to display 50. any ideas? have searched the forum, and looked through search.php
Reply With Quote
  #2 (permalink)  
Old 01-31-2008, 06:24 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

if you looked in search.php then you found what you were looking for

'maxResults' => 10,
Reply With Quote
  #3 (permalink)  
Old 01-31-2008, 06:31 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

nope not there, i did look honestly....

Im running one of the svn versions, and im seriouslly struggling with remedial tasks. It seems the svn version differs a lot , i moved over for the addtional features but im considering rolling back. I wasting a lot of time and getting fed-up .


Last edited by echo@; 01-31-2008 at 06:38 PM. Reason: No need to post code
Reply With Quote
  #4 (permalink)  
Old 01-31-2008, 06:37 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

SVN is beta, so you take the changes Dody has made and you experiment on your own.

$links_obj->pg_size = ($search_max_rows) ? $search_max_rows : $max_rows;

That's probably the key to what you want, find where $search_max_rows is stored and you probably have your answer.
Reply With Quote
  #5 (permalink)  
Old 01-31-2008, 06:44 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

OK thank you
Im just going to revert back,

I remeber upgrading to the svn version because of the problems with the captca, the advise was to upgrade to the svn version.

Last edited by echo@; 01-31-2008 at 07:01 PM. Reason: remembered
Reply With Quote
  #6 (permalink)  
Old 01-31-2008, 07:15 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

downgraded to 5.4.0 and modified the search.php, the value 'maxResults' => 10 existed, so changed the value to 50 and it still displays 10.

OMG
Reply With Quote
  #7 (permalink)  
Old 01-31-2008, 08:09 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

Is it 10 total or 10 per page? Read the code to find out. I only searched for "10" and that's what I found and posted.
Reply With Quote
  #8 (permalink)  
Old 01-31-2008, 11:44 PM
FSGDAG's Avatar
Moderator
 
Join Date: May 2007
Location: NJ, United States
Posts: 977
FSGDAG is on a distinguished road
Default

I know I keep saying this, and there is a chance it has nothing to do with it, but when you make a code change, and you dont see the results of those changes right away, make sure you clear the cache. For blocks and html pages its /template_c. For rss its /cache

Sometimes you might even need to clear your browser cache too
__________________
FSGDAG | IndexU Hosting | Owner
Website | NiceCoder Script Hosting and More! | Blog
General Directory | Deep Links Directory | Bidding Directory
Reply With Quote
  #9 (permalink)  
Old 02-01-2008, 04:31 AM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

Searched the search.php for 10 originally, only other string i can find is $start_num = $p * 10;, but this has nothing to do with it.
yep i always clear my cache when i cant figure the problem.
Reply With Quote
  #10 (permalink)  
Old 02-01-2008, 02:12 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

You don't need to bump posts just so they can be at the top. If someone has an answer then they'll provide it. Otherwise you need to search the code to find what you're looking for.
Reply With Quote
  #11 (permalink)  
Old 02-01-2008, 02:37 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

Seems i have to or else it gets cleared from the newposts area and then forgotten for time.

increasing the search results should be a simple one to answer, really it should be a setting in the backend, I have done everything i can, search the forum intensely, and the user guide (if you would call it that)

Its either I ask hard questions to anwser or you just dont like me for whatever reasons.


I am new to this script and i want to use it, i am trying hard to learn it via trial and error, (spending alot of time checking problems before i post for help)

Most the time instead of the answer i get a reply like this ??? How is this suppose to help? come on,




If the user guide existed answering mundane questions for passionate users would be seriously reduced.


Every time i think im getting two steps forward i go three steps back,
I really like the potential of this script but its like im hunting around in the dark looking for the light switch??

don't take this criticism to heart as is not meant to offend, all criticism is good criticism.

Maybe dody knows the answer

Reply With Quote
  #12 (permalink)  
Old 02-01-2008, 03:23 PM
Bruceper's Avatar
Nicecoder Team
 
Join Date: Jun 2002
Location: Winnipeg Canada
Posts: 4,008
Bruceper is on a distinguished road
Default

It's got nothing to do with "liking you" or anyone else.

People want support, that's all fine and dandy and I'm here to offer it. But when people want to modify the script or get custom coding for free that's when I stop and offer a few seconds of help (such as my above post regarding 'maxResults' => 10,) because I nor anyone else on this forum wants to take out 15 minutes of their day to provide people with free programming.

Sure you say "well it's just a few minutes", but then there's another 6,110 members on this forum that want "just a few minutes" and soon the whole day is taken up with people thinking that "a few minutes" of my (or anyone else's) time is worth nothing.

As for support, I'm paid to do it. But I support the script as it was released and not modifications to the script. Perhaps if I was paid more (a whole lot more) I'd be more than happy to sit here all day and figure out everyone's issues.

I understand you're new to the script, that's great. We all were at one time and no one handed us anything either. Most of us got hints or tips because those people didn't want to take their whole day out to give free support.

So in my second post in the thread, I pointed out where the results were coming from and left it to you to find out where that variable was coming from. It's not hard at all if you use the tools I've posted on the forum and read the sticky threads that are here.

As for the guide i've put more than 40 hours into it and now I've needed to stop because Dody has told me of a number of changes in the new version which completely obliterates about 25% of what i've done already. I'm not putting another minute into it until the new version is final and released

As for criticism I never take any as offense. And I hope you understand that when I say "you" in this post I'm referring to a LOT more people than just you.

Its possible if Dody has the time he will answer, but he's the programmer and it's his job to do programming and not support.

BUT I will admit that I goofed up in my answer. I COMPLETELY forgot that the search results number limit was in setting.php as shown below.

$search_max_rows = 10; // maximum link/page in search page

IF I had told you the right info in the first place this wouldn't have happened and I admit it's my mistake. But I still hold true to what I say that users on the forum need to expect to wait and learn on their own with guidance, rather than having things handed to them.
Reply With Quote
  #13 (permalink)  
Old 02-01-2008, 03:43 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

You are a god brucekeeper thank you. I really appreciate this.
I did not know this would be a mod , i just thought it was a setting so i appologise for wasting your time. Tho if there was a cribsheet for settings like this i would not of wasted everyones time. So far i am aware of the wiki user guide which is not very helpfull at the moment, has the work you have done gone public ? URL?

I really dont try upseting people, you must understand

If i could get my new directory out the door quicker and generate some reasonable add money you would be the first i would donate to, really i would of liked to of done a donation for new year gone, but have been brassic.

Have you thought of adding a paypall donation to the fourms??
Reply With Quote
  #14 (permalink)  
Old 02-01-2008, 04:02 PM
Active Member
 
Join Date: Nov 2004
Posts: 1,828
inspireme is on a distinguished road
Default

those "donate a beer" mods are good for forums like this, if someone lieks apost they can donate a smalla mount to the poster for a beer, cool idea, maybe get a few people posting more support.
__________________
Some interesting INDEXU bits :http://www.indexu.co.uk
Main IndexU sites : | Campsite Directory | Tourist Guide | Places2B | AfterDirectory <-- Half price submission using coupon DP50 (from just $11 premium, and $10 basic permanent )
Reply With Quote
  #15 (permalink)  
Old 02-01-2008, 04:04 PM
echo@'s Avatar
Active Member
 
Join Date: Oct 2007
Location: UK Essex
Posts: 473
echo@ is on a distinguished road
Default

exactly, maybe a kitty
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clustered search results stevestar005 Blocks and Modification 4 01-28-2008 01:40 PM
Search Results Problem barnkin v5.x 3 05-18-2004 03:03 AM
search error: php results hdesign v5.x 0 04-16-2004 02:40 PM
The categories in the search results hani v5.x 1 01-07-2002 09:23 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 05:17 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate