<!-- BEGIN MYLINKGROUP LINKS --> <blink><b>Extra special type of listing: <a href="{TRACKLINKURL}">{LINKTITLE}</a></b> </blink> <br /> <!-- END MYLINKGROUP LINKS -->
If so I can't get them to show. I think this would be useful if you'd like to show a "featured" link type on the front page.
I guess this can be achieved by generating a top list.
The other thing is can you show image attachment thumbnails in top lists?
I've been trying something like:
<!-- BEGIN TOPLIST 10 --> <CONFIG>links[,]id[,]5[,]ascending[,]type='featured'[,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,][,][,]</CONFIG> <li>
<div class="thumbnail"> <!-- BEGIN 1 LINK ATTACHMENTS --> <img src="http://www.website.com/thumbnail.php?id={LINKID}&attachid={ATTACHID}&thumbwidth=100&thumbheight=75"> <!-- END 1 LINK ATTACHMENTS -->
It's random in WSN Classifieds (due to having been used that way in the standard templates for a while -- may change it to nonrandom in 6.0) but no longer random in the other scripts because random sorts are very slow on large databases. It shows the oldest attached image.
Pagination takes you to a technically separate page that contains all the same content except it has the next group of results from that toplist.
0/5
1
2
3
4
5
Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.
Comments on Link Types on main index
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
eg.
in "main.tpl":
If so I can't get them to show. I think this would be useful if you'd like to show a "featured" link type on the front page.
I guess this can be achieved by generating a top list.
The other thing is can you show image attachment thumbnails in top lists?
I've been trying something like:
But it doesn't seem to get the "attachid".
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
You use a toplist to show links on the index, yes. To show a thumbnail, <IF {LINKTHUMBURLBOOL}><img src="{LINKTHUMBURL}" /></IF>
For 5 featured listings:
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
So does {LINKTHUMBURLBOOL} pull random images? Or rather just the one if there are multiple ones uploaded?
Also, a question on pagination, to make this a multi-page toplist. Does pagination take you to a separate page?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
It's random in WSN Classifieds (due to having been used that way in the standard templates for a while -- may change it to nonrandom in 6.0) but no longer random in the other scripts because random sorts are very slow on large databases. It shows the oldest attached image.
Pagination takes you to a technically separate page that contains all the same content except it has the next group of results from that toplist.