Jump to content

[RESOLVED] Affiliate Links issue


Recommended Posts

I don't know if this issue is new or old and carried over. I am trying to modify the affiliate links section under General Config on the Affiliates Tab. I want the customer to see their affiliate link in a Text Area so I use the following code:

 

<img src="http://localhost/img/affiliate/468x60B1.gif" border="0"><br />
<textarea rows="3" cols="80" readonly>
<(a href="[AffiliateLinkCode]")>
<(img src="http://localhost/img/affiliate/468x60B1.gif" border="0")>
<(/a)>
</textarea>

 

This displays a banner, then a text area with the code that the customer can select and paste on their site. Problem is, when I click save the trailing </textarea> gets stripped off. This causes the footer to not display properly on the page. It seems the first save applies the correct html code but if you go back to modify the affiliate link, the </textarea> is missing. I don't know if this applies to other types of html code or not.

Link to comment
Share on other sites

It's not possible to use textarea HTML code within the textarea. You should follow the example @ http://wiki.whmcs.com/Affiliates#Affiliate_Linking_Code

 

Matt

 

It works just fine as far as display... But it doesn't save the </textarea>. I don't see what you mean about a textarea in a textarea. That would be really dumb on my part. I know you can't embed a textarea in another textarea.

Link to comment
Share on other sites

I don't see what you mean about a textarea in a textarea. That would be really dumb on my part. I know you can't embed a textarea in another textarea.
I think you may be misunderstanding, what I understood was that where you are typing this code in is a text area, therefore you can not utilize the textarea command.
Link to comment
Share on other sites

I think you may be misunderstanding, what I understood was that where you are typing this code in is a text area, therefore you can not utilize the textarea command.

 

That doesn't make sense though since when I submit the data it stores it in the database just fine. The problem is when you go back to the page to view your affiliate code, the trailing </textarea> is missing. If you are filling that text area with data from the database it should work fine.

Link to comment
Share on other sites

That doesn't make sense though since when I submit the data it stores it in the database just fine. The problem is when you go back to the page to view your affiliate code, the trailing </textarea> is missing. If you are filling that text area with data from the database it should work fine.

you can store anything in the database , that does not mean it's correct.

the simple html rule says :

The tag:"textarea" is not allowed within: "textarea" It is only allowed within: div, applet, blockquote, body, caption, center, fields etc etc.....

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • 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