MyBB Community Forums

Full Version: Template (Global - Every Page)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey recently i added "Get A Free Account @DotMRT.Co.CC" on my forum:
Link: http://dotmrt.co.cc

I only added this on the template of my theme (Index)

But as you can see the "Get A Free Account @DotMRT.Co.CC" only come on my forum when the user is on the index.php page...

I want the user to see this kind of a view:

[Image: untitled12.png]


+ i also want the user to see this on every page they visit...
Please tell how to achieve this/
Well if you put it in the index template it's not going to show anywhere else... put it in the header template under <navigation> and it'll show on all pages.
No <navigation> here:

<br /><br /><div align="left"><div class="logo"><a href="{$mybb->settings['bburl']}/index.php"><img src="images/Transparent/headerlogo.png" alt="{$mybb->settings['bbname']}" title="{$mybb->settings['bbname']}" /></a></div></div><center><div id="df_forum_hd"></div>        <div id="df_forum_bd"><a name="top"></a><br /><div id="container">        <div id="header">          <div class="menu">				<ul><li><a href="{$mybb->settings['bburl']}/portal.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/portal.png" alt="" title="" />portal</a></li><li><a href="{$mybb->settings['bburl']}/index.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/home.png" alt="" title="" />Forums</a></li>					<li><a href="{$mybb->settings['bburl']}/search.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/search.png" alt="" title="" />{$lang->toplinks_search}</a></li>					<li><a href="{$mybb->settings['bburl']}/calendar.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/calendar.png" alt="" title="" />{$lang->toplinks_calendar}</a></li><li><a href="{$mybb->settings['bburl']}/memberlist.php"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/memberlist.png" alt="" title="" />{$lang->toplinks_memberlist}</a></li>					<li><a href="{$mybb->settings['bburl']}/misc.php?action=help"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/help.png" alt="" title="" />{$lang->toplinks_help}</a></li><li><a href="{$mybb->settings['bburl']}/misc.php?action=syndication"><img src="{$mybb->settings['bburl']}/{$theme['imgdir']}/rss.png" alt="" title="" />Rss</a></li>				</ul>			</div><hr class="hidden" />                            {$welcomeblock}                    </div>        <hr class="hidden" />        <br class="clear" />        <div id="content">            {$pm_notice}            {$bannedwarning}            {$bbclosedwarning}            {$unreadreports}
You're not using default templates then, if you put your code at the bottom there i'll be in the same place I meant.
Oh i think i figured it out Toungue
its working now:
http://dotmrt.co.cc