Webmastersite.net
Register Log In

Toplist problem

Comments on Toplist problem

Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 06, 2006 - 4:24 AM:

Ok this is my toplist for random links but i would like to show only links that have field=tutimageattach filed what do i need to put in config?

I tryed this
<!-- BEGIN TOPLIST 8 -->
<CONFIG>links,rand(),5,ascending,fieldname = 'tutimageattach',,,0,0,0,0,0,0</CONFIG>
<img src="https://www.webmastersite.net/forums/download.php?id={LINKID}&field=tutimageattach" class="tutorialavatar">
<!-- END TOPLIST 8 -->

and this and it is not working
<!-- BEGIN TOPLIST 5 -->
<CONFIG>links,rand(),5,ascending,tutimageattach,,,0,0,0,0,0,0</CONFIG>
<!-- END TOPLIST 5 -->

The field=tutimageattach is custom field file type.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 06, 2006 - 1:53 PM:

The condition you should be typing is tutimageattach != ''
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 07, 2006 - 12:49 AM:

Trying this but its not working

<CONFIG>links,rand(),1,descending,tutimageattach != '',,,0,0,0,0,0,0</CONFIG>
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Dec 07, 2006 - 7:16 AM:

You have created a toplist of links, but you should have created a toplist of attachemnts by the looks of things??

Go to your toplist generator and select attachments at the top before setting all of the other conditions.
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 07, 2006 - 7:47 AM:

The problem is that i have a link custom field and not the attachment the filed is file field and this should be working i just don't know how to write right condition for toplist to show only links that have that file field filed. Maybe Paul will help when he get the chance.
Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Dec 07, 2006 - 3:59 PM:

Custom field attachments should still be in the table actually, you can make an attachments toplist with the condition field='tutimageattach'

I don't see why the link version isn't working though.
Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 08, 2006 - 12:16 AM:

No that does not work either! I tryed this

<CONFIG>attachments,rand(),1,descending,field='tutimageattach',,,0,0,0,0,0,0</CONFIG>


and its not working is this maybe a bug?

Damir
Forum Regular

Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia

Total Topics: 46
Total Comments: 136
Damir
Posted Dec 08, 2006 - 7:09 AM:

ok i figured it out i have a working version now!! nodnodnodsticking out tonguesticking out tonguesticking out tonguesticking out tongue
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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