s0ct0j0c
21-04-2011, 07:41 PM
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 (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 (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 (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 (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..
<xen:include template="advertisements" />
http://xenforomods.info/attachments/capture_02132011_134727-jpg.6964/?embedded=1
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. http://xenforomods.info/styles/default/xenforo/smilies/wink.png
Change Log:
V1.00 released 2-15-2011
orginal thread
http://xenforo.com/community/threads/sidebar-advertisements.12247/#post-185778
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 (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 (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 (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 (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..
<xen:include template="advertisements" />
http://xenforomods.info/attachments/capture_02132011_134727-jpg.6964/?embedded=1
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. http://xenforomods.info/styles/default/xenforo/smilies/wink.png
Change Log:
V1.00 released 2-15-2011
orginal thread
http://xenforo.com/community/threads/sidebar-advertisements.12247/#post-185778