Jump to content

Affiliate Banner Code


Si

Recommended Posts

Hi everyone,

This is a sample of what I've placed into the affiliate code section of my WHMCS. I know it says on the form that I have to make < as <( but when I do that, the code doesn't work at all.

 

I want to show my affiliates a range of banners, with the personalised code underneath for them.

 

This is what I'm currently using:

 

<p align="center">
[img=http://mysite.com/images/banners/234X60.gif]</p>

<p align="center"><font size="2">Code for the Banner Above</font></p>


 <p align="center">
 <textarea rows="4" name="S5" cols="74"><a href="[AffiliateLinkCode]" target="_blank">
[img=http://mysite.com/images/banners/234X60.gif]</a></textarea></p>

<p align="center"></p>

<p align="center">
[img=http://mysite.com/images/banners/125X125.gif]</p>

<p align="center"><font size="2">Code for the Banner Above</font></p>


 <p align="center">
 <textarea rows="4" name="S6" cols="74"><a href="[AffiliateLinkCode]" target="_blank">
[img=http://mysite.com/images/banners/125X125.gif]</a></textarea></p>

<p align="center"></p>

<p align="center">
[img=http://mysite.com/images/banners/120X90.gif]</p>

<p align="center"><font size="2">Code for the Banner Above</font></p>


 <p align="center">
 <textarea rows="4" name="S7" cols="74"><a href="[AffiliateLinkCode]" target="_blank">
[img=http://mysite.com/images/banners/120X90.gif]</a></textarea></p>

<p align="center"></p>

 

Strangely, when I first upload the code, it works, and is also viewable in the client area. But when I view it again later, it only shows the first banner and code.

 

Anyone tell me what I'm doing wrong and what I need to change please?

 

Thanks

 

Si

Link to comment
Share on other sites

Using the manual notes I updated my code and all is working fine now. I have 7 banners and I inserted textarea boxes under each banner to contain the code. If it helps anyone else, here is the code I used. (Obviously, replace mysite.com with your own etc).

 

[url="[AffiliateLinkCode]"][img=http://mysite.com/images/banners/728X90.gif][/url]


CODE FOR THE BANNER ABOVE:

<textarea rows="4" name="S6" cols="74"><(a href="[AffiliateLinkCode]")><(img border="0" src="http://mysite.com/images/banners/728X90.gif" alt="Click for great value hosting")><(/a)></textarea>



[url="[AffiliateLinkCode]"][img=http://mysite.com/images/banners/468X60.gif][/url]


CODE FOR THE BANNER ABOVE:

<textarea rows="4" name="S6" cols="74"><(a href="[AffiliateLinkCode]")><(img border="0" src="http://mysite.com/images/banners/468X60.gif" alt="Click for great value hosting")><(/a)></textarea>



[url="[AffiliateLinkCode]"][img=http://mysite.com/images/banners/468X60-01.gif][/url]


CODE FOR THE BANNER ABOVE:

<textarea rows="4" name="S6" cols="74"><(a href="[AffiliateLinkCode]")><(img border="0" src="http://mysite.com/images/banners/468X60-01.gif" alt="Click for great value hosting")><(/a)></textarea>



[url="[AffiliateLinkCode]"][img=http://mysite.com/images/banners/468X60-02.gif][/url]


CODE FOR THE BANNER ABOVE:

<textarea rows="4" name="S6" cols="74"><(a href="[AffiliateLinkCode]")><(img border="0" src="http://mysite.com/images/banners/468X60-02" alt="Click for great value hosting")><(/a)></textarea>



[url="[AffiliateLinkCode]"][img=http://mysite.com/images/banners/234X60.gif][/url]


CODE FOR THE BANNER ABOVE:

<textarea rows="4" name="S6" cols="74"><(a href="[AffiliateLinkCode]")><(img border="0" src="http://mysite.com/images/banners/234X60.gif" alt="Click for great value hosting")><(/a)></textarea>



[url="[AffiliateLinkCode]"][img=http://mysite.com/images/banners/125X125.gif][/url]


CODE FOR THE BANNER ABOVE:

<textarea rows="4" name="S6" cols="74"><(a href="[AffiliateLinkCode]")><(img border="0" src="http://mysite.com/images/banners/125X125.gif" alt="Click for great value hosting]"><(/a)></textarea>



[url="[AffiliateLinkCode]"][img=http://mysite.com/images/banners/120X90.gif][/url]


CODE FOR THE BANNER ABOVE:

<textarea rows="4" name="S6" cols="74"><(a href="[AffiliateLinkCode]")><(img border="0" src="http://mysite.com/images/banners/120X90.gif" alt="Click for great value hosting")><(/a)></textarea>


 

Si

Link to comment
Share on other sites

  • 3 weeks later...

Thanks Matt. Working now. Its a pity about the textarea as some people copy and paste directly into WYSIWYG clients and this obviously produces errors for them.

 

If there was a workaround someone can come up with, that would be cool.

 

Si

Link to comment
Share on other sites

Why does it produce an error exactly?

 

Matt

 

Hi Matt,

It doesn't produce an error as such, but simply strips the code out. From the 2nd piece of code I posted above, after I post it all into the affiliate code section, this is all that is left when the page reloads.

 

[url="[AffiliateLinkCode]"][img=http://mysite.com/images/banners/728X90.gif][/url]


CODE FOR THE BANNER ABOVE:

<textarea rows="4" name="S6" cols="74"><(a href="[AffiliateLinkCode]")><(img border="0" src="http://mysite.com/images/banners/728X90.gif" alt="Click for great value hosting")><(/a)>

 

Si

Link to comment
Share on other sites

  • WHMCS CEO

No, why does it product an error when your affiliates copy and paste it into a WYSIWYG editor? Copying from a textarea or copying from the page, it makes absolutely no difference and won't cause any errors if your link code is correct.

 

Matt

Link to comment
Share on other sites

No, why does it product an error when your affiliates copy and paste it into a WYSIWYG editor? Copying from a textarea or copying from the page, it makes absolutely no difference and won't cause any errors if your link code is correct.

 

Matt

 

When you copy and paste text from a html page, and then insert into a WYSWYG program, it inserts html characters. (I know this may vary on different WYSIWYG programs, but it does it in Frontpage, which is what a lot of my customers use).

 

To get around it, we have to tell them to copy and paste into notepad first, then copy and paste from notepad.

 

Si

Link to comment
Share on other sites

  • 4 weeks later...

I managed to get 3 banners to be displayed, with a textarea under each banner to display the banner code:

 

http://www.d9hosting.com/clients/affiliates.php

 

I had the same problems with the code being stripped but after a bit of trial and error I got it, it involved moving backwards and forwards in the browser and adding/re-adding banners but I got there in the end.

 

This is the code currently showing in my admin area:

 

<center><a href="[AffiliateLinkCode]"><img src="http://d9hosting.com/v2/images/banners/d9hostingbanner1.jpg"></a><p> 
<textarea cols="75"><a href="[AffiliateLinkCode]"><img src="http://d9hosting.com/v2/images/banners/d9hostingbanner1.jpg"></a>

 

Unfortunately only the 1st banner code shows, so it won't be much help for you. But at least you know it's possible.

 

Dan

 

BTW, the client area I linked to is still under construction. I'm aware some of the links are dead :-)

Link to comment
Share on other sites

I was trying to figure this out as well. The instuctions say use <( instead of < and )> instead or >

 

Once I did that it worked well.

 

So change:

 

<center><a href="[AffiliateLinkCode]"><img src="http://d9hosting.com/v2/images/banners/d9hostingbanner1.jpg"></a><p>

<textarea cols="75"><a href="[AffiliateLinkCode]"><img src="http://d9hosting.com/v2/images/banners/d9hostingbanner1.jpg"></a>

 

 

To

 

<(center)><(a href="[AffiliateLinkCode]")><(img src="http://d9hosting.com/v2/images/banners/d9hostingbanner1.jpg")><(/a)><(p)>

<(textarea cols="75")><(a href="[AffiliateLinkCode]")><(img src="http://d9hosting.com/v2/images/banners/d9hostingbanner1.jpg")><(/a)>

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