Si Posted October 18, 2007 Share Posted October 18, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Si Posted October 18, 2007 Author Share Posted October 18, 2007 Just found the answer to my question here: http://www.whmcs.com/forums/viewtopic.php?t=3594 Matt is ahead of the game again. 0 Quote Link to comment Share on other sites More sharing options...
Si Posted October 18, 2007 Author Share Posted October 18, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Si Posted November 4, 2007 Author Share Posted November 4, 2007 Nope, I think this is a bug. the code keeps getting stripped down to showing just one banner. Does anyone have more than one banner displayed on their affiliate page? Could you share the code please? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted November 4, 2007 WHMCS CEO Share Posted November 4, 2007 You can't use text areas code within a text area. Follow the manual example where it doesn't use text areas to display it! Matt 0 Quote Link to comment Share on other sites More sharing options...
Si Posted November 4, 2007 Author Share Posted November 4, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted November 4, 2007 WHMCS CEO Share Posted November 4, 2007 Why does it produce an error exactly? Matt 0 Quote Link to comment Share on other sites More sharing options...
Si Posted November 4, 2007 Author Share Posted November 4, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted November 4, 2007 WHMCS CEO Share Posted November 4, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
Si Posted November 4, 2007 Author Share Posted November 4, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
D9Hosting Posted November 29, 2007 Share Posted November 29, 2007 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 0 Quote Link to comment Share on other sites More sharing options...
rshenderson Posted November 29, 2007 Share Posted November 29, 2007 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)> 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.