Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

Showing only half of links

Quote Reply
Showing only half of links
I just noticed that Links is only showing half of my sites. On the front page a category will show (10) but when you go to that category it is only showing 5 listings. It does the same in the admin when you modify, etc. The total is right but the showing isn't. It wasn't like this before and I don't remember making any changes. Any suggestions appreciated!
Quote Reply
Re: Showing only half of links In reply to
Is spanning turned on to only 5 links per page and you maybe accidently removed the Next X entires from your templates?

--mark
Quote Reply
Re: Showing only half of links In reply to
No, it also happens in the admin.
Quote Reply
Re: Showing only half of links In reply to
Strange. For a test I set the span to only 5 and I just rebuilt and now have the "Next" link but still listing only half. For example, for a category that has 14 listings the first page will list only 5 and the second lists 2 for a total of 7.

When I reset span to 10 it again will only list a total of 7 links and no "Next".


[This message has been edited by Ted Monk (edited April 13, 2000).]
Quote Reply
Re: Showing only half of links In reply to
Can we see an example?? How about a link to your directory?

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Showing only half of links In reply to
Upon further investigation it appears that I was wrong in my description of the problem.

The amount of links that are showing is correct. It is the $numlinks amount that is incorrect.

For example, $numlinks is showing (10) when there are actually only (5) listings. (Should have realized this when I did the test above Frown )

I apologize for the confusion... it has been a long week... Smile

All suggestions welcomed! TIA
Quote Reply
Re: Showing only half of links In reply to
Again...a link to your directory would help us to see the problem...

Wink

If you choose not to link your directory, then we cannot really help you. We are not mind readers, ya know.

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Showing only half of links In reply to
There's really nothing to see. Looks like any other installation of Links other than the fact that the $numlinks are showing a number that is twice as much as the actual listing per category. For example, if I have a category called "Entertainment" that has 6 listngs in it, it shows up on the main page as "Entertainment (12)". It does this for every category that is listed.



Quote Reply
Re: Showing only half of links In reply to
Let me explain something and I am done trying to help you...the $numlinks variable contains values of the total links contained in that category plus sub-categories.

Like the following example (taken from my site):

Theories (7) - 4 listed in this category
Foucault (2) - 2 listed in this subcat
Postmodernism (1) - 1 listed in this subcat

This can be seen at:

vlib.anthrotech.com

Does this shed some light on the subject?

Best of luck with your LINKS project.

Regards,



------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Showing only half of links In reply to
No, the $numlinks variable is SUPPOSED to contain the values of the total links contained in that category plus sub-categories, as yours does. Mine doesn't. Mine contains TWICE the values of the total links contained in that category (or at least, that is the number that is being displayed).
Quote Reply
Re: Showing only half of links In reply to
Well, what hacks have you added to the sub site_html_print_cat routine in the site_html_templates.pl?

AND BE SPECIFIC, please.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Showing only half of links In reply to
Fixed! I added the multi-cat mod several months ago but I just noticed the problem above recently. Didn't come to mind until you mentioned "hack". Was a small editing error. Thanks for your help.
Quote Reply
Re: Showing only half of links In reply to
You're welcome. Glad you figured it out...finally.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.