Webmastersite.net
Register Log In

Show Thumbshot or Affiliate Ad

Title Show Thumbshot or Affiliate Ad
Description How to show one or the other.
Message Text On the linkbit template... this code shows the thumbshot:
<IF {SWITCH_THUMBSHOTS}><td style="vertical-align: top;"><div class="thumbshot">{LINKTHUMBSHOT}</div></td></IF>
and I had added this code to show the affiliate ads:
<IF {LINKAFFILIATECODEBOOL}>{LINKAFFILIATECODE}</IF>
but that makes for a very crowded linkbit when the listing is an affiliate ad with two images being displayed. When that happens, the thumbshot is always a 'coming soon' image anyway due to the affiliate url. So, with a little luck, I modified the code to be the following and now if the listing is an affiliate ad that will show, otherwise it shows the thumbshot.
<IF {LINKAFFILIATECODEBOOL}><td style="vertical-align: top;"><div class="thumbshot">{LINKAFFILIATECODE}</div></td><OTHERWISE><IF {SWITCH_THUMBSHOTS}><td style="vertical-align: top;"><div class="thumbshot">{LINKTHUMBSHOT}</div></td></IF></IF>
Hope this helps others!
Rating
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5
0/5 based on 0 votes.
Ownership hai
Views 217 views. Averaging 0 views per day.
Similar Topics
Submission Date Nov 26, 2010 - 6:44 AM