Webmastersite.net
Register Log In

toplist - catid

Comments on toplist - catid

babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Mar 15, 2006 - 10:37 AM:

I have a toplist to be based on cat id 18 but it's not working and includes all cats. What's wrong with the following config?

<CONFIG>links,rand(),1,catid=18</CONFIG>
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Mar 16, 2006 - 9:49 AM:

That is a category #18 toplist. If you're not seeing it, perhaps the whole toplist is not actually running in the spot you're looking and you're seeing something else... or you have 2 config lines, or some such.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Mar 16, 2006 - 10:57 AM:

The toplist is working but is including ALL categories, not just ID 18. This is the full code I have....

<center>
<IF {SWITCH_MAINTOPLIST}>
<div class="box"><b><font size="2">Featured Canaan Dog</font></b><br />
<br />
<!-- BEGIN TOPLIST 1 -->
<CONFIG>links,rand(),1,catid=18</CONFIG>
<IF {LINKFILEFIELD}>
<!-- BEGIN 1 LINK ATTACHMENTS -->
<a href="{LINKDETAILSURL}"><img src="thumbnail.php?id={LINKID}&amp;attachid={ATTACHID}" /></a>
<!-- END LINK ATTACHMENTS -->
<OTHERWISE>
<a href="{LINKDETAILSURL}"><img src="templates/default/images/nophoto.gif" /></a></IF>
<br />
<a href="{LINKDETAILSURL}">{LINKTITLE}</a>
<!-- END TOPLIST 1 -->
</div>
</IF>
</center>
AlexKats


Usergroup: Customer
Joined: Apr 15, 2005
Location: Russia

Total Topics: 3
Total Comments: 10
Posted Mar 16, 2006 - 4:23 PM:

Similarly, could not make toplist for category, to mine all complexity in function rand(), if to make toplist on popularity - all works
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Mar 18, 2006 - 12:46 PM:

After wasting 20 minutes on it I used the toplist generator and it worked perfectly as normal. Your syntax is wrong, please use the toplist generator for creating toplists like I do.
babrees
Expert

Usergroup: Customer
Joined: Aug 19, 2005
Location: England

Total Topics: 391
Total Comments: 1303
babrees
Posted Mar 19, 2006 - 7:26 AM:

Thanks Paul.

After several days of trying and umpteen goes over about an hour at the toplist generator (which I didn't realise was there!!!) I finally managed to get it working (although not with your filefield=1 in another thread www.webmastersite.net/forum...orums/comments.php?id=6182 - I've given up on that one)


Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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