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.
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.
Comments on Toplist problem
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
The condition you should be typing is tutimageattach != ''
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
Trying this but its not working
Forum Regular
Usergroup: Customer
Joined: Nov 27, 2006
Total Topics: 187
Total Comments: 465
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.
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
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.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
No that does not work either! I tryed this
and its not working is this maybe a bug?
Forum Regular
Usergroup: Customer
Joined: Jan 25, 2005
Location: Croatia
Total Topics: 46
Total Comments: 136
ok i figured it out i have a working version now!!