View Full Version : Show Affiliate Image
skshost
04-02-07, 08:44 AM
I provide affiliates an images as part of their affiliate code, as I expect many do. I wished to also show the affiliate the image, or an example of the code, so I used this in addition to the normal $affiliatelinkcode on affiliates.php...
{$affiliatelinkscode|replace:'<':'<'|replace:'>':'>'}
Now if I can figure out a way to seperate and use multiple images to give affiliates more options of banners, etc..
8)
<hr />
<img src=http://www.mydomain.com/images/banner/banner-468x60.gif width="468" height="60" border="0"> ([AffiliateLinkCode])
<(a href="[AffiliateLinkCode]")><(img src=http://www.mydomain.com/images/banner/banner-468x60.gif width="468" height="60" border="0")><(/a)>
<hr />
<img src=http://www.mydomain.com/images/banner/banner-2-468x60.gif width="468" height="60" border="0"> ([AffiliateLinkCode])
<(a href="[AffiliateLinkCode]")><(img src=http://www.mydomain.com/images/banner/banner-2-468x60.gif width="468" height="60" border="0")><(/a)>
<hr />
A much nicer and easier way to show the image and the affiliate code :
<img src=https://www.domain.com/banners/468x60banner.jpg width="468" height="60" border="0"> ([AffiliateLinkCode])
<span>Copy and paste the code below to add this banner to your webpages:</span>
<textarea name="textarea" cols="55" rows="5"><img src=https://www.domian.com/banners/468x60banner.jpg width="468" height="60" border="0"> ([AffiliateLinkCode])</textarea>
Do the same for all banners
skshost
04-02-07, 11:22 PM
Good suggestions, but I think I'll do some kind of foreach with the images, since I have so many.
ramystyle
04-03-07, 04:06 AM
joe123,
Thanks for the code. Have you ever noticed that after clicking SAVE, the part that writes "</textarea> " disappears ?
the end of your code shows like this:
<textarea name="textarea" cols="55" rows="5"><img src=https://www.domian.com/banners/468x60banner.jpg width="468" height="60" border="0"> ([AffiliateLinkCode])
(Without </textarea> at the end)..
Only when you click save..
weird...
skshost
04-03-07, 04:21 AM
Where are you clicking "save"? In the affiliates template file itself?
ramystyle
04-03-07, 04:52 AM
In the admin area, Configuration, General configuration, Affiliate tab, Save Changes...
Sorry.. I meant Save Changes instead of Save :)
joe123,
Thanks for the code. Have you ever noticed that after clicking SAVE, the part that writes "</textarea> " disappears ?
the end of your code shows like this:
<textarea name="textarea" cols="55" rows="5"><img src=https://www.domian.com/banners/468x60banner.jpg width="468" height="60" border="0"> ([AffiliateLinkCode])
(Without </textarea> at the end)..
Only when you click save..
weird...
you are right , things don't look good because ot the use of <textarea> inside a <textarea> , it breaks the code . i wonder if there is a work around this !
skshost
04-05-07, 02:38 AM
I think you'd need something like this:
<(textarea name="textarea" cols="55" rows="5")><(a href="[AffiliateLinkCode]")><(img src=https://www.domian.com/banners/468x60banner.jpg width="468" height="60" border="0")><(/a)>
"<( & )>" need to be udes, but either way I'd suggest making these changes in the affiliate template file itself.
skshost - where is this affiliate template ? affiliates.tpl ?
if yes can anyone give us a few pointers in the right direction to change this file ? (a non coder version) - please :-)
All I really need :
Banner 1
Linking code (if this could be displayed a bit neater than at the moment)
Banner 2
Linking Code (if this could be displayed a bit neater than at the moment)
At the bottom of banners - a LINK to a static page explaining - how to use & Promote The affiliate program
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.