View Full Version : Add custom sidebar block

21-04-2011, 07:45 PM
I figured this would be complicated, but it's actually a pretty easy edit to make. http://xenforomods.info/styles/default/xenforo/smilies/biggrin.png I didn't already see a guide for this, so:

1. Make a custom template (any title is fine):
<div class="section">
<div class="secondaryContent">

2. Open template PAGE_CONTAINER and find {xen:raw $sidebar}. Just below that (before the closing div tag), add:
<xen:include template="name_of_your_custom_template" />

That should be it! The block will appear at the bottom of the sidebar. If you want it to appear just below the visitor_panel block, but above the Staff/Members Online Now blocks, move the xen:include tag one line up, above {xen:raw $sidebar}. http://xenforomods.info/styles/default/xenforo/smilies/smile.png

EDIT: I just noticed that this causes it to appear on every sidebar; I'll see if I can change that.