Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » problem with insert counter to the site

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

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

Page: 1
Go to End
Author Topic: 1276 Views
  • fiord
    Avatar
    Community Member
    79 Posts

    problem with insert counter to the site Link to this post

    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>
    ---------------------------------------------------------------------------------------------------^

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: problem with insert counter to the site Link to this post

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

  • fiord
    Avatar
    Community Member
    79 Posts

    Re: problem with insert counter to the site Link to this post

    but when I write instead

    &

    =>

    &amp;


    then the counter does not load on homepage
    ((
    counter must be at the bottom of page

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: problem with insert counter to the site Link to this post

    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)

    1276 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.