WSN Links
Featuresspacer Showcasespacer Reviewsspacer Demosspacer Purchasespacer Manualspacer Support

Register | Forgot Password
Introduction to Toplists
Introduction to Toplists
By Paul

Toplists are lists of data from your directory, ordered and formatted in the manner of your choosing. Your admin panel includes a toplist generator to help you make toplists. Go to Admin Panel -> Templates -> Toplist Gernerator and answer its questions.

Nevertheless, you may wish to understand in more depth how the feature works. Here's an example:
<!-- BEGIN TOPLIST 1 -->
<CONFIG>links,id,5,ascending,votes>5,0,0,1</CONFIG>
content
<!-- END TOPLIST 1 -->


The example config line for toplist 1 above makes a toplist of links ordered by their rating, showing 10 links in descending order, excluding any links which have less than 5 votes, not skipping past any of these defined results, and not showing unvalidated items. You don't need to understand the CONFIG line, just use the toplist generator.

If you want more than one toplist on the same page, they must all use unique numbers. For example the 2nd one could use the number 2 in the beginning and end declaration... and the third could use 3, et cetera. If they're on different pages this doesn't matter and you can just use 1. Please note that the wrapper is considered to be a part of every page.

Note the power of the filtering condition option. With it you can filter to only the toplist of links owned by a particular member, for example, using the condition ownerid={MEMBERID}. You could also show top links for only a particular category, using catid={CATID}.

If you want a numbered list (for example, a top 10), use {NUMBER} where you want the number displayed.

Be careful to check after changing a toplist to be sure it worked. If you make a little mistake, you'll end up with errors on the page... thus, always be prepared to change it back and don't assume that you couldn't have made a typo. Of course it won't cause any problems that can't be fixed by simply changing/removing the toplist, but it's not good for visitors to see such errors.

You can dyamically alter a toplist by supplying terms in the url of the page or in a form post. For a toplist numbered 1, you could use &field[1]=votes to change the field we are ordering by to be votes regardless of what is specified in the config line in the template. Options: type[1], thefield[1], number[1], order[1], thecondition[1], thestart[1], thecolumns[1], theunval[1], thehidden[1], thealbums[1]. (On the 'edit' pages, to avoid a conflict you need to use thefield[1] instead.)

Note that you can use toplists in the emails which you send from the 'email members' or 'email image submitters' options in your admin panel.

Rating:


3.6/5 based on 5 votes. The median rating is 4.

Submitted: 09/25/03 (Edited 05/04/08)

Description: Tips on proper use of this powerful feature.

Views: 2963 views. Averaging 2 per day.
In the most recent 30 day period, there've been 9 views.

Previous Article

Home    |    Features    |    Showcase    |    Reviews    |    Demos    |    Purchase    |    Manual    |    Support