Gossamer Forum
Home : Products : Gossamer Links : Discussions :

For limit the number of new links

Quote Reply
For limit the number of new links
Hi,

To find new links in certain categories, I use:

../cgi-bin/search.cgi?isNew=YES;sb=ID&so=DESC&catid=XXX

How can I limit the number of new links shown? For example, what should I add for a maximum of 10 links?

Thanks in advance,

joseML
Quote Reply
Re: [JoseML] For limit the number of new links In reply to
Not 100% sure - but try mh=10 (max hits)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] For limit the number of new links In reply to
Hi,

All is OK when I use mh=10 here:

../cgi-bin/search.cgi?isNew=YES;sb=ID&so=DESC&catid=XXX;xml_feed=1&mh=10

But does not work here:

../cgi-bin/search.cgi?isNew=YES;sb=ID&so=DESC&catid=XXX&mh=10


Thanks Andy for your answer

Last edited by:

JoseML: Mar 17, 2010, 4:09 AM
Quote Reply
Re: [JoseML] For limit the number of new links In reply to
Hi,

Not sure - maybe something built into the search script. Would need GT to give a reply on that one :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [JoseML] For limit the number of new links In reply to
Hi Jose,

I am not sure how you would go about adding the feature by editing the core files, however there is a way around it.

Situation:
Search for the term "Red Widgets". Search Results 125. Results per Page 10. You wish to display only first 100 search results.

Possible Solution:
For the pagination (Previous - Next) links on search results page, you can use condition like if nh=10 then no Next Button/Link.

Also for results display you can use condition and display Results: 81 - 90 of 100 (e.g. for page 9) by using condition, where if total search results are more than 100, it will display max results at 100, and if they are less than 100, it will display total search results.

Hope this helps.

P.S.. Andy suggested somewhat similar solution for a feature on Software Devil and above is just a modified version of it. I have the code somewhere here, in case you can't find it.

Vishal
-------------------------------------------------------
Quote Reply
Re: [Andy] For limit the number of new links In reply to
Hi Andy,

>>Would need GT to give a reply on that one :<<

Sorry, but I don't understand.

My GT is Version: 3.2.0 (I have not made changes)

Cheers,

JoseML
Quote Reply
Re: [SWDevil.Com] For limit the number of new links In reply to
Hi Vishal,

Thanks for your answer but I need show only the first 10 links (for example), not all links in pages with 10 links each.

Thanks again.

JoseML