[Tutorial] How to add an affiliate box in the index?
- Step 1: Go to your theme's templates. (Admin CP -> Templates & Styles -> Left menu -> Templates -> {YOUR THEME'S TEMPLATE}
- Step 2: Click on "Index page" templates.
- Step 3: Click on "index_boardstats" templates.
- Step 4: Add this code to everything above the original code.
PHP:
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div><strong>Affiliates</strong></div>
</td>
</tr>
</thead>
<tbody>
<tr>
<tr>
<td class="trow1"><span class="smalltext">************Affilate Thing here.************</span></td>
</tr>
<tr>
<td class="tfoot" style="text-align: right">
<span class="smalltext">
<a href="{$mybb->settings['bburl']}/private.php?action=send&uid=(YOUR USER ID}>Click here if you wanna affiliate with us!</a>
</span>
</td>
</tr>
</tbody>
</table>
<br />
- Step 5: Change the text in ************{something here}************