1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Image inside sidebar

Discussion in 'Styling and Customization Questions' started by Matthew2D, Jan 29, 2012.

  1. Matthew2D

    Matthew2D Active Member

    Hello. How would I put an image inside the sidebar area where the text is?

    Thanks.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Edit this template:

    Admin CP -> Appearance -> Templates -> forum_list

    Add the red code:

    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>
    
     
    Skylined likes this.
  3. Matthew2D

    Matthew2D Active Member

    That didn't work..
     
  4. Jake Bunce

    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.
     
  5. Matthew2D

    Matthew2D Active Member

    [​IMG] Sorry if its small...do you see where the text is; Member's Online Now? I want to put an image in that area. With the text on top of the image.
     

    Attached Files:

  6. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    That would be this template:

    Admin CP -> Appearance -> Templates -> sidebar_online_users
     

Share This Page