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

Advertisements in Sidebar

Discussion in 'XenForo Questions and Support' started by Dav, Oct 17, 2010.

  1. Dav

    Dav Active Member


    Could someone please tell me how i put a advertisement in the sidebar below the forum statistics box.

  2. kkm323

    kkm323 Well-Known Member

  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> forum_list

    Add this code:

    	<div class="section">
    		<div class="secondaryContent">
    ...as shown below:

    <xen:container var="$head.canonical"><link rel="canonical" href="{xen:link 'canonical:index'}" /></xen:container>
    <xen:if is="{$xenOptions.boardDescription}"><xen:container var="$head.description">
    	<meta name="description" content="{$xenOptions.boardDescription}" /></xen:container></xen:if>
    <xen:if is="{$renderedNodes}"><xen:include template="node_list" /></xen:if>
    	<xen:edithint template="sidebar.css" />
    	<xen:include template="sidebar_online_users" />
    	<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}:</dt>
    					<dd>{xen:number $boardTotals.users}</dd></dl>
    				<dl><dt>{xen:phrase latest_member}:</dt>
    					<dd><a href="{xen:link members, $boardTotals.latestUser}" class="username">{$boardTotals.latestUser.username}</a></dd></dl>
    	<div class="section">
    		<div class="secondaryContent">
    Decent60 and Sola like this.
  4. Dav

    Dav Active Member

    thanks for this
  5. fattony69

    fattony69 Well-Known Member

    Sorry to bump, but I did this on my forum and it only shows up for guests, not members. How do I fix this so everyone can see it?
  6. Brogan

    Brogan XenForo Moderator Staff Member

    The sidebar contents are the same for guests and members, apart from the member avatar at the top which is replaced with the "Sign Up" button.

    Are you sure you don't have the content wrapped in a conditional?
  7. Andy.N

    Andy.N Well-Known Member

    Anyone know how to put 4 banner of 125x125 size on the sidebar? How to space them evenly on a 2x2 matrix on a block right above Members Online block.
  8. FredC

    FredC Well-Known Member

    Are you referring to something along these lines?
    Andy.N likes this.
  9. Andy.N

    Andy.N Well-Known Member

    Yes sir.
  10. FredC

    FredC Well-Known Member

Share This Page