ironcross77
New Member
- Messages
- 456
- Reaction score
- 0
- Points
- 0
I made a search and found no such thread. But if this is a duplicate post please delete it and admins/mods please :crying: do not warn me.
To put the ad on the top of the forum open the index.template.php file in a test editor. The file is located in the Themes/<themename>/ directory.
Find the following piece of code:
Replace it with this:
Works for most of the templates.
To put the ad on the top of the forum open the index.template.php file in a test editor. The file is located in the Themes/<themename>/ directory.
Find the following piece of code:
Code:
// --></script>
</head>
<body>';
// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '
<div id="headerarea" style="padding: 12px 30px 4px 30px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">';
// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';
Replace it with this:
Code:
// --></script>
</head>
<body>
<script type="text/javascript" src="http://www.complete-free-host.com/banner.js"></script>';
// Because of the way width/padding are calculated, we have to tell Internet Explorer 4 and 5 that the content should be 100% wide. (or else it will assume about 108%!)
echo '
<div id="headerarea" style="padding: 12px 30px 4px 30px;', $context['browser']['needs_size_fix'] && !$context['browser']['is_ie6'] ? ' width: 100%;' : '', '">';
// The logo and the three info boxes.
echo '
<table cellspacing="0" cellpadding="0" border="0" align="center" width="100%" style="position: relative;">
<tr>
<td colspan="2" valign="bottom" style="padding: 5px; white-space: nowrap;">';
Works for most of the templates.