Image inside sidebar

Jake Bunce

XenForo moderator
Staff member
Edit this template:

Admin CP -> Appearance -> Templates -> forum_list

Add the red code:

Rich (BB code):
<xen:sidebar>
	<xen:edithint template="sidebar.css" />
	
	<xen:hook name="forum_list_sidebar">
		<xen:include template="sidebar_online_users" />
		
		<!-- block: forum_stats -->
		<div class="section">
			<div class="secondaryContent statsList" id="boardStats">
				<h3>{xen:phrase forum_statistics}</h3>
				<div class="pairsJustified">
					<dl class="discussionCount"><dt>{xen:phrase discussions}:</dt>
						<dd>{xen:number $boardTotals.discussions}</dd></dl>
					<dl class="messageCount"><dt>{xen:phrase messages}:</dt>
						<dd>{xen:number $boardTotals.messages}</dd></dl>
					<dl class="memberCount"><dt>{xen:phrase members_count}:</dt>
						<dd>{xen:number $boardTotals.users}</dd></dl>
					<dl><dt>{xen:phrase latest_member}:</dt>
						<dd><xen:username user="$boardTotals.latestUser" /></dd></dl>
					<!-- slot: forum_stats_extra -->
				</div>
			</div>
		</div>
		<!-- end block: forum_stats -->
		
		<xen:include template="sidebar_share_page">
			<xen:set var="$url">{xen:link canonical:index}</xen:set>
		</xen:include>

		<div class="section">
			<div class="secondaryContent">
				<img src="path/to/image.gif" />
			</div>
		</div>
		
	</xen:hook>
</xen:sidebar>
 

Jake Bunce

XenForo moderator
Staff member
It works in my testing. What page's sidebar are you talking about? My instructions are for the index page.
 

Jake Bunce

XenForo moderator
Staff member
That would be this template:

Admin CP -> Appearance -> Templates -> sidebar_online_users
 
Top