Adding code to index.template adds a "1"

Started by thekodols, December 04, 2009, 03:40:51 PM

Previous topic - Next topic

thekodols

Hello,

So, I tried adding a custom navigation bar to the forum. Everything worked fine except it added a "1" and a line break before the whole forum as well. Added pictures to better explain. Where is it coming from? And how do I change or remove that?

Code I changed from:
<body>';
to:
<body>', include("../static/navigation.php") ,' ';

cme1st2302

Could you please attach the navigation.php file that you are including so I can see where it is coming from.

Chris
SMF Version: 1.1.11
SimplePortal Version: 2.3.2

Admin

He who waits for perfect conditions sees nothing!!
If you need help adding a button or tab PM me!!

thekodols

Here it is, though I doubt it's to blame since adding just text would produce the same outcome.

<div id="woot_navigation">
<a href="/">/</a>
<a href="/blog">blog</a>
<a href="/irc">irc</a>
<a href="/links">links</a>
</div>

thekodols

Figured it out, kind of.

I was putting my code within a function that I have no idea about that ends on the next line after body. Just had to put the code after the function ended.

Anyway, thanks for the quick response (:

Advertisement: