Pages: [1]   Go Down
  Print  
Author Topic: Coders any idea?  (Read 164 times)
Pennies4me
Jr. Member
**
Offline Offline

Posts: 59


View Profile WWW
« on: December 16, 2011, 06:01:21 AM »

$ad['class']=="G","$ad[pamount] X.P",
Trying to place this code, into

               <td width=100>".iif($ad['class']=="P","$ad[pamount] Points","$settings[currency]$ad[pamount]")."</td>

To offer 3 incentives to PTSU. I have coded the Admin tools and functions. They work now all i need to do is change the display.
Do i use another iif command? Or just slot the bit of code in between the points and cash? Or is it a different part altogether?

As you can see my PHP knowledge is limited(ish)
Logged

PTC Revolution!
Next Gen. Earnings!
Bonuses to make you smile!
Loyalty Points for you!
Advertisers Save $$$!
Upgrade to an SDR 3
Pennies4me
Jr. Member
**
Offline Offline

Posts: 59


View Profile WWW
« Reply #1 on: December 16, 2011, 11:25:36 AM »

".iif($ad['class']=="P","$ad[pamount] L.P")."".iif($ad['class']=="G","$ad[pamount] X.P","$settings[currency]".number_format($ad[pamount],2))."

Botched it myself...
Seems to work.
Any input is good If i have done it well i will be shocked Smiley
Logged

PTC Revolution!
Next Gen. Earnings!
Bonuses to make you smile!
Loyalty Points for you!
Advertisers Save $$$!
Get a SDR 3 NOW at http://ptcfactory.info

The best and most up to date Aurora script in the market!!
Pages: [1]   Go Up
  Print  
 
Jump to: