WSN PHP Scripts

top list
How do I make a top list

Details Discussion (9) Print
top list
shibby2373
Member

Usergroup: Customer
Joined: Mar 03, 2009

Total Topics: 6
Total Posts: 17
quote post #1 - Permalink
Posted 06/24/12 - 2:56 PM:
Subject: top list
How do I make a top list that has the latest 10 links added as well as thumbshot images for each one?
Paul
developer
Avatar

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

Total Topics: 67
Total Posts: 7741
quote post #2 - Permalink
Posted 06/25/12 - 3:14 PM:

Admin Panel -> Templates -> Toplist Generator -> make those selections, use
<div>
<IF {SWITCH_THUMBSHOTS}><div class="thumbshot">{LINKTHUMBSHOT}</div></IF>
<a href="{LINKDETAILSURL}">{LINKTITLE}</a> - {LINKDESCRIPTION}<div class="clear"></div>
</div>
as the display code. This is the resulting template code to place in your desired template at Admin -> Templates -> Manage Templates:
<!-- BEGIN TOPLIST 6884 -->
<CONFIG>links[,]time[,]10[,]descending[,][,][,]0[,]0[,]0[,]0[,][,]0[,]0[,][,]0[,][,][,]</CONFIG>
<div>
<div class="thumbshot">{LINKTHUMBSHOT}</div>
<a href="{LINKDETAILSURL}">{LINKTITLE}</a> - {LINKDESCRIPTION}<div class="clear"></div>
</div>
<!-- END TOPLIST 6884 -->
shibby2373
Member

Usergroup: Customer
Joined: Mar 03, 2009

Total Topics: 6
Total Posts: 17
quote post #3 - Permalink
Posted 06/25/12 - 9:12 PM:

one of the issues I'm having is getting it to link to the image instead. Which I think I figured out but I am trying to get 5 or 10 haven't decided yet with just the image and linking to the image for that link. And I don't want the links ascending. I want them side by side.

Edited by shibby2373 on 06/25/12 - 9:26 PM
Paul
developer
Avatar

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

Total Topics: 67
Total Posts: 7741
quote post #4 - Permalink
Posted 06/27/12 - 1:29 PM:

To link the image, put an a href tag around it:
<div class="thumbshot"><a href="{LINKDETAILSURL}">{LINKTHUMBSHOT}</a></div>

"Side by side" sounds like you want a two column table. Select that you want two columns per row in the toplist generator if you want that.
shibby2373
Member

Usergroup: Customer
Joined: Mar 03, 2009

Total Topics: 6
Total Posts: 17
quote post #5 - Permalink
Posted 06/28/12 - 5:47 AM:

The problem with that is it creates a table and I want the linked images side by side. So one row with 7 linked images no description or anything else.
shibby2373
Member

Usergroup: Customer
Joined: Mar 03, 2009

Total Topics: 6
Total Posts: 17
quote post #6 - Permalink
Posted 06/28/12 - 9:01 AM:

I tried just removing the word ascending from the code but it does it anyways.
Paul
developer
Avatar

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

Total Topics: 67
Total Posts: 7741
quote post #7 - Permalink
Posted 06/30/12 - 2:42 PM:

A table is side by side. I can't imagine what "side by side" can mean other than a two column table. Can you draw a picture of what you mean?

Removing the word ascending from the config line should break everything entirely -- there are only two logically possible sort orders, ascending and descending, and I presume you want descending based on what you said which is why I provided descending above.
shibby2373
Member

Usergroup: Customer
Joined: Mar 03, 2009

Total Topics: 6
Total Posts: 17
quote post #8 - Permalink
Posted 07/01/12 - 3:00 PM:

http://fan-sites.org/hosted-sites/ The top is an example of how i would like it to display.
shibby2373
Member

Usergroup: Customer
Joined: Mar 03, 2009

Total Topics: 6
Total Posts: 17
quote post #9 - Permalink
Posted 07/02/12 - 6:49 PM:

I got it. You were correct on the columns I just didn't set the right amount of columns.
 
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
Search thread for
Download thread as


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