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.

Archive

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


Reply

4 Posts   1361 Views

Avatar
fiord

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

I register on the http://top.bigmir.net/counters/ (id=16794891)
And get counter HTML code   
When I add the code in the template page.ss
On the Site I see next

Помилка синтаксичного аналізу XML: неправильний
Адреса: http://planeta-ua.net.ua/
Рядок 213, символ 100:<a href="http://www.bigmir.net/" target="_blank"><img src="http://c.bigmir.net/?v16794891&s16794891&t2" width="88" height="31" alt="bigmir)net TOP 100" title="bigmir)net TOP 100" border="0" /></a>
---------------------------------------------------------------------------------------------------^

Avatar
Willr

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.

Avatar
fiord

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

but when I write instead

&

=>

&amp;


then the counter does not load on homepage
((
[url=http://www.planeta-ua.com.ua/site/]counter must be at the bottom of page[/url]

Avatar
Willr

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 Page.ss file. This will stop SilverStripe sending the template as 'pure' xml (which is the most strictest)