Jump to content

Show Affiliate Image


skshost

Recommended Posts

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..

Link to comment
Share on other sites

 

8)

 

 

<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 />

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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 !

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 2 years later...

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 by uriel
more Info
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated