TutorialMS Community Forum

Full Version: Space for banners
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can someone tell me how to add a banner in the spot with the red line in the image below? I put the red line where I want the banner to go thanks!

[Image: 33y57ys.jpg]
In the "header" template find:
Code:
    <div id="navbarcontainer">
        <div id="navbar">
            <if condition="$config[MOD_REWRITE_ON] == 1"><a href="$config[HTTP_SERVER]"><img name="home" alt="Home" src="$config[HTTP_SERVER]images/nav/home.jpg" border="0" /></a><a href="$config[HTTP_SERVER]tutorials/"><img name="tutorials" alt="Tutorials" src="$config[HTTP_SERVER]images/nav/tutorials.jpg" border="0" /></a><a href="$config[HTTP_SERVER]help/"><img name="help" alt="Help" src="$config[HTTP_SERVER]images/nav/support.jpg" border="0" /></a><a href="$config[HTTP_SERVER]submit/"><img name="submit" alt="Submit" src="$config[HTTP_SERVER]images/nav/submit.jpg" border="0" /></a><a href="$config[HTTP_SERVER]contact_us/"><img name="contact" alt="Contact Us" src="$config[HTTP_SERVER]images/nav/contact.jpg" border="0" /></a><else /><a href="$config[HTTP_SERVER]"><img name="home" alt="Home" src="$config[HTTP_SERVER]images/nav/home.jpg" border="0" /></a><a href="$config[HTTP_SERVER]tutorials.php"><img name="tutorials" alt="Tutorials" src="$config[HTTP_SERVER]images/nav/tutorials.jpg" border="0" /></a><a href="$config[HTTP_SERVER]help.php"><img name="help" alt="Help" src="$config[HTTP_SERVER]images/nav/support.jpg" border="0" /></a><a href="$config[HTTP_SERVER]submit.php"><img name="submit" alt="Submit" src="$config[HTTP_SERVER]images/nav/submit.jpg" border="0" /></a><a href="$config[HTTP_SERVER]contact_us.php"><img name="contact" alt="Contact Us" src="$config[HTTP_SERVER]images/nav/contact.jpg" border="0" /></a></if>
        </div>
    </div>
Add the following imediately after:
Code:
<div id="container"><p align="center">
<a target="_blank" href="http://www.usertutor.net/">
<img border="0" src="http://imagesak.securepaynet.net/aaa/hosting/0/hdr_sh_revised.gif" width="565" height="80"></a></p></div>
Excuse the shameless plug :oops: but it's a tester for a banner image.
No problem and thanks its working good so far! :geek:
Any way to get this to only show on the main index? it shows on the tutorial page too.... :|
To have it only show on the index page, open global.php and add these lines (anywhere):

Code:
if(isset($index_page)) {
$glob['is_index'] = true;
}else{
$glob['is_index'] = false;
}

Now, to follow up on what utjames said you just need to wrap it in if statements, so replace it with this:

Code:
<if condition="$glob[is_index]">
<div id="container"><p align="center">
<a target="_blank" href="http://www.usertutor.net/">
<img border="0" src="http://imagesak.securepaynet.net/aaa/hosting/0/hdr_sh_revised.gif" width="565" height="80"></a></p></div>
</if>
Thanks!!!
Reference URL's