Im sure there is a easier way to do this, but im no coder and just made this on the fly.. therefore support will be limited to my basic understanding..
This hack is simply html and tables. You will have to edit the image name for your advertisers.
- upload contents of the upload folder to your xenforo root
- Appearance / Templates / Create New Template..
- Template Name: advertisements
-------------------------------------------------------------------
add:
<div class="section">
<div class="secondaryContent">
<h3>Advertisements</h3>
<table border="1" cellpadding="1" cellspacing="1" style="height: 230px; width: 230px;">
<tbody>
<tr>
<td style="text-align: center;">
<a href="http://your_advertisers_url.com" target="_blank"><img alt="" src="http://your-site.com/styles/default/xenforo/advertisements/advertise.jpg" /></a></td>
<td style="text-align: center;">
<a href="http://your_advertisers_url.com" target="_blank"><img alt="" src="http://your-site.com/styles/default/xenforo/advertisements/advertise.jpg" /></a></td>
</tr>
<tr>
<td style="text-align: center;">
<a href="http://your_advertisers_url.com" target="_blank"><img alt="" src="http://your-site.com/styles/default/xenforo/advertisements/advertise.jpg" /></a></td>
<td style="text-align: center;">
<a href="http://your_advertisers_url.com" target="_blank"><img alt="" src="http://your-site.com/styles/default/xenforo/advertisements/advertise.jpg" /></a></td>
</tr>
</tbody>
</table>
<br /> </div>
</div>
------------------------------------------------------------------
- Open forum_list template and add..
PHP Code:
<xen:include template="advertisements" />
The images are 115 x 115px and will need to be added as you ad actual advertisements, as well as the names of the new images in the file path.
Hopefully i haven't forgot anything.
Change Log:
V1.00 released 2-15-2011
orginal thread
http://xenforo.com/community/threads...7/#post-185778
Bookmarks