Webmastersite.net
Register Log In

category toplist dont work for me
results are always the integer 1

Comments on category toplist dont work for me

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 19, 2005 - 8:01 PM:

Have a look at what you wrote:
<!-- BEGIN TOPLIST 20 -->
<!-- END TOPLIST 411 -->

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 21, 2005 - 7:19 PM:

there does not seem to be an easy way to populate a list of categories along with the links within it, using a simple <ul><li></li></ul> approach.

Nested toplists aren't impossible, but it would be murder on the server and your page would take 40 seconds to load.

If you're doing a one-page links page, use link types instead of categories and do toplists of each link type.

indentations were lost in above example

Always use the code tags when posting code.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Nov 23, 2005 - 3:14 PM:

The query is just as intensive wherever you do it from, as far as I can see. You can do it, but it's quite impractical unless you make it be a weekly build of some static resource (kind of like the category selector). Even then I wouldn't be surprised if it timed out if you have many cats/links involved, so perhaps only practical on a dedicated where it can be run as a cron.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.