Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.


Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

problem with insert counter to the site


4 Posts   1361 Views


7 August 2008 at 10:34pm (Last edited: 7 August 2008 10:35pm), Community Member, 79 Posts

I register on the (id=16794891)
And get counter HTML code   
When I add the code in the template
On the Site I see next

Помилка синтаксичного аналізу XML: неправильний
Рядок 213, символ 100:<a href="" target="_blank"><img src="" width="88" height="31" alt="bigmir)net TOP 100" title="bigmir)net TOP 100" border="0" /></a>


7 August 2008 at 10:44pm Forum Moderator, 5511 Posts

it is because the & in the URL of that code isnt valid xhtml. It needs to be &amp; to be valid.


8 August 2008 at 12:21am Community Member, 79 Posts

but when I write instead




then the counter does not load on homepage
[url=]counter must be at the bottom of page[/url]


8 August 2008 at 10:13am Forum Moderator, 5511 Posts

well if &amp; doesnt work then you can try sending the page as not strict xml - removing the <? xml... bit at the top of the file. This will stop SilverStripe sending the template as 'pure' xml (which is the most strictest)