WebmasterSite.net

Link Types on main index
Is it possible to list link types on main index?

Version: 5.1.36
URL:

PrintPrint


Link Types on main index
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 45
Total Posts: 111
quote post #1
Posted 06/08/10 - 9:38 AM:

eg.

in "main.tpl":


<!-- 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 -->

</div>

<div class="info">
<a href="{LINKDETAILSURL}">{LINKTITLE}</a>
<span class="cat">Category: <a href="{CATURL}">{CATNAME}</a></span>

</div>



But it doesn't seem to get the "attachid".


Edited by tradenet on 06/09/10 - 11:30 AM
Paul
developer
Avatar

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

Total Topics: 65
Total Posts: 7614
quote post #2
Posted 06/09/10 - 9:29 PM:

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:

<!-- BEGIN TOPLIST -->
<CONFIG>links[,]id[,]5[,]ascending[,]type='featured'[,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,][,][,]</CONFIG>
<li>
<div class="thumbnail">
<IF {LINKTHUMBURLBOOL}><img src="{LINKTHUMBURL}" /></IF>
</div>
<div class="info">
<a href="{LINKDETAILSURL}">{LINKTITLE}</a>
<span class="cat">Category: <a href="{CATURL}">{CATNAME}</a></span>
</div>
<!-- END TOPLIST -->
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 45
Total Posts: 111
quote post #3
Posted 06/10/10 - 5:49 AM:

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?

Edited by tradenet on 06/10/10 - 6:21 AM
Paul
developer
Avatar

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

Total Topics: 65
Total Posts: 7614
quote post #4
Posted 06/14/10 - 10:15 AM:

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.

Edited by Paul on 06/14/10 - 10:17 AM
 
Search thread for
Download thread as


Sorry, you don't have permission to post. Log in, or register if you haven't yet.