skshost Posted April 2, 2007 Share Posted April 2, 2007 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.. 0 Quote Link to comment Share on other sites More sharing options...
PPH Posted April 2, 2007 Share Posted April 2, 2007 <hr /> [url="[AffiliateLinkCode]"]<img src=http://www.mydomain.com/images/banner/banner-468x60.gif width="468" height="60" border="0">[/url] <(a href="[AffiliateLinkCode]")><(img src=http://www.mydomain.com/images/banner/banner-468x60.gif width="468" height="60" border="0")><(/a)> <hr /> [url="[AffiliateLinkCode]"]<img src=http://www.mydomain.com/images/banner/banner-2-468x60.gif width="468" height="60" border="0">[/url] <(a href="[AffiliateLinkCode]")><(img src=http://www.mydomain.com/images/banner/banner-2-468x60.gif width="468" height="60" border="0")><(/a)> <hr /> 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted April 2, 2007 Share Posted April 2, 2007 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"> <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"></textarea> Do the same for all banners 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted April 2, 2007 Author Share Posted April 2, 2007 Good suggestions, but I think I'll do some kind of foreach with the images, since I have so many. 0 Quote Link to comment Share on other sites More sharing options...
ramystyle Posted April 3, 2007 Share Posted April 3, 2007 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"> (Without </textarea> at the end).. Only when you click save.. weird... 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted April 3, 2007 Author Share Posted April 3, 2007 Where are you clicking "save"? In the affiliates template file itself? 0 Quote Link to comment Share on other sites More sharing options...
ramystyle Posted April 3, 2007 Share Posted April 3, 2007 In the admin area, Configuration, General configuration, Affiliate tab, Save Changes... Sorry.. I meant Save Changes instead of Save 0 Quote Link to comment Share on other sites More sharing options...
joe123 Posted April 3, 2007 Share Posted April 3, 2007 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"> (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 ! 0 Quote Link to comment Share on other sites More sharing options...
skshost Posted April 5, 2007 Author Share Posted April 5, 2007 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. 0 Quote Link to comment Share on other sites More sharing options...
uriel Posted March 19, 2010 Share Posted March 19, 2010 (edited) 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 Edited March 19, 2010 by uriel more Info 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.