Author Topic: Conditional Toplists  (Read 24686 times)

0 Members and 1 Guest are viewing this topic.

Offline EonBlue

  • Newbie
  • *
  • Posts: 33
    • View Profile
Conditional Toplists
« on: December 09, 2008, 12:38:14 PM »
Like in Smart Traffic Trader.

Ex: show trade in toplist if prod > 120%

etc.

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1963
    • View Profile
    • Pretty Girls from your city for night
Re: Conditional Toplists
« Reply #1 on: December 10, 2008, 12:03:41 AM »
please write all conditions you would like to have :)

Offline EonBlue

  • Newbie
  • *
  • Posts: 33
    • View Profile
Re: Conditional Toplists
« Reply #2 on: December 10, 2008, 08:17:52 AM »
Custom conditions using the TP variables - just like in the dynamic skim feature.

So for example - show trade if:

- clicks/out > 1
and/or
- clicks/uniques > 1.2
and/or
- out/in < 1.5

etc., etc.

Offline Andrew

  • Full Member
  • ***
  • Posts: 114
    • View Profile
Re: Conditional Toplists
« Reply #3 on: December 21, 2008, 10:00:56 PM »
ip0li,

you already have provided the ability to tie arbitrary php code to the skim calculation - perhaps you could use the same principle here and allow some sort of arbitrary php evaluation per toplist row?  that way, all the 'standard' trade value variables would/could be available as conditions

I already use php in my toplist include files to do things like supress empty trades nicely (eg, on a totally new site I might have a top 40 bllock but fewer than 40 trades so i want to nicely supress the empty slots).  of course that php is executed for every page load - it would certainly be useful if i could limit it to execution once every toplist build.

Offline ip0li

  • mgSearkGD
  • Administrator
  • Hero Member
  • *****
  • Posts: 1963
    • View Profile
    • Pretty Girls from your city for night
Re: Conditional Toplists
« Reply #4 on: December 22, 2008, 02:16:55 AM »
thnx andrew, we will look into it! I believe it will be done exactly as U said ;)

Offline oil

  • Sr. Member
  • ****
  • Posts: 288
    • View Profile
Re: Conditional Toplists
« Reply #5 on: January 22, 2009, 04:37:28 PM »
hmm good idea from eonblue