Problema al guardar código publicitario

  • Autor Autor Gypaete
  • Fecha de inicio Fecha de inicio
G

Gypaete

Beta
¡Usuario con pocos negocios! ¡Utiliza siempre saldo de Forobeta!
¡Buenas!

Veréis, en mi Blog, intento poner este código:

PHP:
<a href="http://track.adjal.com/aff_c?offer_id=1708&aff_id=18464&file_id=115536" target="_blank"><img src="http://media.adjal.com/brand/files/adjal/1708/test-ci-336x280.gif" width="336" height="280" border="0" /></a><img src="http://track.adjal.com/aff_i?offer_id=1708&aff_id=18464&file_id=115536" width="1" height="1" />

Que es el código de la publicidad, y al darle a guardar, me sale este error:

"The reference to entity "aff_id" must end with the ';' delimiter."

Y verdaderamente no tengo ni idea de lo que es. Agradezco su ayuda. 🙂
 
Lo que miro es que blogger lo lee como caracteres especiales los que empiesan con & y que no estan cerrados con " ; "
Estos:
&aff_id -> Si arreglas este el siguiente error sera "file_id" hasta que no encuentre ningun '&'.
&file_id
'&' aff_id=18464 '&' file_id=115536

Remplaza todos los '&' agregando &amp;

Ejemplo:
Tu codigo es este:
Insertar CODE, HTML o PHP:
<a href="http://track.adjal.com/aff_c?offer_id=1708&aff_id=18464&file_id=115536" target="_blank"><img src="http://media.adjal.com/brand/files/adjal/1708/test-ci-336x280.gif" width="336" height="280" border="0" /></a><img src="http://track.adjal.com/aff_i?offer_id=1708&aff_id=18464&file_id=115536" width="1" height="1" />

Cambiado:

Insertar CODE, HTML o PHP:
 <a href="http://track.adjal.com/aff_c?offer_id=1708&amp;aff_id=18464&amp;file_id=115536" target="_blank"><img src="http://media.adjal.com/brand/files/adjal/1708/test-ci-336x280.gif" width="336" height="280" border="0" /></a><img src="http://track.adjal.com/aff_i?offer_id=1708&amp;aff_id=18464&amp;file_id=115536" width="1" height="1" />


Recuerda que en los 2 enlaces que tiene tu codigo, contienen &, entonces remplaza todos los '&' de tu codigo por &amp;
----------- Si no funciona---

Agrega un gadget de HTML/JavaScript y pegalo ahi.
 
convierte ese codigo a XML si lo vas a agregar directamente desde el editor HTML de blogger 🙂 ...

este sería tu codigo:
Insertar CODE, HTML o PHP:
&lt;a href=&quot;http://track.adjal.com/aff_c?offer_id=1708&amp;aff_id=18464&amp;file_id=115536&quot; target=&quot;_blank&quot;&gt;&lt;img src=&quot;http://media.adjal.com/brand/files/adjal/1708/test-ci-336x280.gif&quot; width=&quot;336&quot; height=&quot;280&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;img src=&quot;http://track.adjal.com/aff_i?offer_id=1708&amp;aff_id=18464&amp;file_id=115536&quot; width=&quot;1&quot; height=&quot;1&quot; /&gt;

use esto para pasar de html → XML ► HTML to XML
 
¡Gracias!

Ya lo he resuelto. :encouragement:
 
Atrás
Arriba