Login Page not found after server migration.
Installation and Configuration
Try turning off the custom login page from the ACP. It looks like you're not using the default one so probably the skin is over-riding it then not working properly.
{foreach $_item as $_i}
.... .stuff
{/foreach}
{foreach $_item as $_i}
{if $_i@iteration % 2 == 0}
PUT YOUR ADVERT IN HERE
{/if}
.... .stuff
{/foreach}