[ic] How do I set up an affiliate image to display on the page??

Mike Heins interchange-users@icdevgroup.org
Tue Jul 2 00:56:02 2002


Quoting Ed LaFrance (edl@newmediaems.com):
> At 06:49 PM 6/29/2002 -1000, you wrote:
> >Does anyone know how to display this on a customer page after following
> >an affiliate's link to the catalog?  This is actually what I wanted to
> >do, but both would be a good thing.
> 
> In your message below, I'm not sure what you mean by checking if an 
> affiliate is "logged in" - the affiliate table is not a userdb-style table 
> and won't function like one without some modification.;

Actually, there is an affiliate profile, I think. If you access
[page affiliate/login] you will be able to log in. 

> 
> To see if an inbound link has an affiliate code and show the image for that 
> affiliate, you could do something like:
> 
> [if type=data term="affiliate::active::[data session source]" op="==" 
> compare=1]
> [and type=data term="affiliate::image::[data session source]"]
>          <img src="[data base=affiliate field=image key='[data session 
> source]']">
> [/if]

Yes, absolutely. For extra speed, you could do:

[if type=data term="affiliate::active::[data session source]"]
     <img src="[either][data base=affiliate field=image key='[data session source]'][or]bg.gif[/either]">
[/if]

-- 
Mike Heins
Perusion -- Expert Interchange Consulting    http://www.perusion.com/
phone +1.513.523.7621      <mike@perusion.com>

Software axiom: Lack of speed kills.