Index Advertisements for MyBB

Ashley S

Paragon
Joined
Jun 7, 2010
Messages
2,074
Reaction score
34
FP$
501
Hello guys.
Ive just wrote up a quick Index Advertisement code for you guys that use MyBB for a promotion forum.

Add this code below {$forums} in your index template.
This way it will add the code above the Board Statistics.

Code:
<div onclick="MyAdvertisements.do_click(2);"><table border="0" cellspacing="1" cellpadding="5" class="tborder"> 
<thead> 
<tr> 
<td class="thead" colspan="6">  
<div><strong>Index Advertisements</strong><br /><div class="smalltext"></div></div><tr class="bg1">
</td> 
</tr> 
</thead> 
   <tbody style="" id="boardstats_e"> 
<tr>
      <td class="trow2" align="center" width="25%"><a href="http://LINK" target="_blank"><img src="http://image" border="0" width="88" height="31"></a></td>  
      <td class="trow2" align="center" width="25%"><a href="http://LINK" target="_blank"><img src="http://image" border="0" width="88" height="31"></a></td> 
      <td class="trow2" align="center" width="25%"><a href="http://LINK" target="_blank"><img src="http://image" border="0" width="88" height="31"></a></td> 
      <td class="trow2" align="center" width="25%"><a href="http://LINK" target="_blank"><img src="http://image" border="0" width="88" height="31"></a></td> 
   </tr> 
<tr> 
      <td class="trow2" align="center">Open Slot</td>  
      <td class="trow2" align="center">Open Slot</td> 
      <td class="trow2" align="center">Open Slot</td> 
      <td class="trow2" align="center">Open Slot</td>  
 </tr>  
   </tbody> 
   </table> 
<br></div>
<!-- start: index_boardstats -->
<table border="0" cellspacing="0" cellpadding="5" class="tborder">
<thead>
<tr>

If you need any help with any other codes, or adding anything to this code.
Then please let me know.

Thank you.
 
People can also create a new template file for this so the index file is not cluttered.
 
Optimus Fluffy said:
People can also create a new template file for this so the index file is not cluttered.

+1 on this, I do the same in my xenforo designs.
 
I usually create PHP files and include them wherever they need to be with the PHP plugin I have.

That is what I have done with the drop down menubar.
 
Optimus Fluffy said:
People can also create a new template file for this so the index file is not cluttered.
By default with MyBB you can,but they cannot be called upon unless you have the php plugin installed.

Which is one thing I dislike about MyBB.
 
Back
Top Bottom