Webmastersite.net
Register Log In

Filter in toplist, conditional syntax
How create this ?

Comments on Filter in toplist, conditional syntax

befeleme
Experienced

Usergroup: Customer
Joined: Aug 27, 2005
Location: Czech Republic

Total Topics: 48
Total Comments: 82
Posted Feb 25, 2006 - 5:06 AM:

Hallo,

I have this toplist on main page:

<!-- BEGIN TOPLIST 2 -->
<CONFIG>links,lastedit,3,descending</CONFIG>
{LINKMYCUSTOM}
<!-- END TOPLIST 2 -->

and I need display in this toplist only links with any inserted text in custom link field (name field : mycustom). In manual I find example for displayed only regular categories in toplist by use
<CONFIG>categories,time,5,descending,type='regular',,</CONFIG>

When I use "analogous" code with above
<!-- BEGIN TOPLIST 2 -->CONFIG>links,lastedit,3,descending,mycustom,,</CONFIG>
{LINKMYCUSTOM}
<!-- END TOPLIST 2 -->

my toplist not works.

But I use this code:
<!-- BEGIN TOPLIST 2 -->
<CONFIG>links,lastedit,3,descending</CONFIG>
<IF {LINKMYCUSTOM}>{LINKMYCUSTOM}</IF>
<!-- END TOPLIST 2 -->

toplist works o.k.!!

My questions are:

1. Is possible use conditional syntax in toplist without any difficulty?
2. Is any easy way for create my toplist with use similar code as manual?
For example:
<!-- BEGIN TOPLIST 2 -->
<CONFIG>links,lastedit,3,mycustom contains text,,</CONFIG>
{LINKMYCUSTOM}
<!-- END TOPLIST 2 -->

and others.

Thank you for help!

Paul
developer

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

Total Topics: 61
Total Comments: 7868
Paul
Posted Feb 25, 2006 - 2:45 PM:

Use a mysql condition the same as in phpmyadmin. mycustom != ''
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



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