Webmastersite.net
Register Log In

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

Comments on Link Types on main index

tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 54
Total Comments: 127
Posted Jun 08, 2010 - 12:38 PM:

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".
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Jun 10, 2010 - 12:29 AM:

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: 54
Total Comments: 127
Posted Jun 10, 2010 - 8: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?
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Jun 14, 2010 - 1:15 PM:

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.
Search thread for
Download thread as
  • 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.